Dish_Recognition/tools/main_usb_camera.py

15 lines
381 B
Python
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# coding=utf-8
"""USB 旧入口示例(已建议改用根目录 usb_camera_app.py)。"""
import os
import sys
ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
if ROOT not in sys.path:
sys.path.insert(0, ROOT)
from usb_camera_app import ImageClassifierDemo
from ui.classifier_ui import run_app
if __name__ == "__main__":
run_app(ImageClassifierDemo)