Answer the question
In order to leave comments, you need to log in
How to capture opencv VideoCapture video in docker container?
Hello! When I realized that attempts to put OpenCV on the main system would not bring success, I decided to put it on a Docker container using the jjanzic/docker-python3-opencv image. OpenCV got up and works like normal, but does not want to capture video from the camera. When I try to add the flag --device=/dev/video0
. docker says that such a device does not exist, although it exists ( vlc /dev/video0
works)! Later it turned out that docker automatically adds "\" after the path and it turns out /dev/video0\
.
How to deal with it?
PS can someone tell me how to get rid of
Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get http://%2Fvar%2Frun%2Fdocker.sock/v1.29/images/json: dial unix /var/run/docker.sock: connect: permission denied
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question