I change the requirement.txt to include opencv-python-headless to deal with no module named cv2 issue.
Still, when I tried to run the app, it seems cannot access to webcam input.
The error message I received is like below:
error: OpenCV(4.5.1) /tmp/pip-req-build-hj027r8z/opencv/modules/imgproc/src/color.cpp:182: error: (-215:Assertion failed) !_src.empty() in function 'cvtColor' Traceback: File "/usr/local/lib/python3.7/site-packages/streamlit/script_runner.py", line 332, in _run_script exec(code, module.__dict__) File "/app/adas_demo/streamlit.py", line 11, in <module> frame = cv2.cvtColor(frame, cv2.COLOR_BGR2RGB)
Please let me know if you have any idea on it.