update sensor bench
This commit is contained in:
@@ -1,15 +1,22 @@
|
||||
#!/usr/bin/env python3
|
||||
"""Launch Sensor Bench without installing the package.
|
||||
"""Launch the public Sensor Bench exhibition app without installing the package.
|
||||
|
||||
Usage (from the repository root):
|
||||
python run.py
|
||||
|
||||
Private operator UI:
|
||||
python internal/run_operator.py
|
||||
"""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import os
|
||||
import sys
|
||||
from pathlib import Path
|
||||
|
||||
# Must be set before importing OpenCV / sensor_bench modules that import cv2.
|
||||
os.environ.setdefault("OPENCV_VIDEOIO_MSMF_ENABLE_HW_TRANSFORMS", "0")
|
||||
|
||||
ROOT = Path(__file__).resolve().parent
|
||||
SRC = ROOT / "src"
|
||||
if str(SRC) not in sys.path:
|
||||
|
||||
Reference in New Issue
Block a user