You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Upon running the app from a docker container, the app is unable to find the webcam.
$ docker run -p 5000:5000 human_nod
[ WARN:0@1.352] global cap_v4l.cpp:997 open VIDEOIO(V4L2:/dev/video0): can't open camera by index
[ERROR:0@1.358] global obsensor_uvc_stream_channel.cpp:159 getStreamChannelGroup Camera index out of range
Traceback (most recent call last):
File "web/app.py", line 42, in <module>
socketio.run(app, debug=True)
File "/usr/local/lib/python3.8/site-packages/flask_socketio/__init__.py", line 640, in run
raise RuntimeError('The Werkzeug web server is not '
RuntimeError: The Werkzeug web server is not designed to run in production. Pass allow_unsafe_werkzeug=True to the run() method to disable this error.
Try: docker run -it --rm --device=/dev/video0 -p 5000:5000 my-flask-app
docker: Error response from daemon: error gathering device information while adding custom device "/dev/video0": no such file or directory.
The text was updated successfully, but these errors were encountered:
Upon running the app from a docker container, the app is unable to find the webcam.
Try:
docker run -it --rm --device=/dev/video0 -p 5000:5000 my-flask-app
docker: Error response from daemon: error gathering device information while adding custom device "/dev/video0": no such file or directory.
The text was updated successfully, but these errors were encountered: