capturing-images-from-webcam-using-opencv-python
capturing-images-from-webcam-using-opencv-python copied to clipboard
Issue when installed in docker image.
- Laptop is Mac.
- Installed docker.
- Created container via ubuntu image.
- Installed dependencies.
- Tried to run this project and get error : "Cant open camera by index 0"
@talktoabu, I believe this issue persist when using a container. The module is probably not allowed to use the camera from within the container.
One workaround is, download the repo as it is and then install it within a Python virtual environment. This way, none of your dependencies will be affected and the module will still run.