Enable webcam in docker application and access thru AWS ECS
using cv2 we are trying to detect the webcam from internet by leveraging on AWS ECS.
video_capture = cv2.VideoCapture(0) ret, frame = video_capture.read()
we are not getting any error but no webcam is detected when we run it from AWS EC2.
using the below command i executed the docker. still it is not working
sudo docker run -d -p 5000:5000 --privileged -v /dev/video0:/dev/video0 dockimage
We have created docker images in ubuntu VM 16.04