kevinam99/capturing-images-from-webcam-using-opencv-python

Issue when installed in docker image.

Opened this issue · 1 comments

  1. Laptop is Mac.
  2. Installed docker.
  3. Created container via ubuntu image.
  4. Installed dependencies.
  5. 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.