I am trying to use cv2.VideoCapture to capture image from a docker container.
import cv2
vid = cv2.VideoCapture('path\to\video')
ret, frame = vid.read()
In terms of the video file,
I have tried
either mount the file with docker -v
or docker cp to copy the video file into container,
but both with no luck (ret returns False).
Should I add any command when launching the container? Thanks in advance.