hybridgroup / gocv

Go package for computer vision using OpenCV 4 and beyond. Includes support for DNN, CUDA, OpenCV Contrib, and OpenVINO.
https://gocv.io
Other
6.72k stars 867 forks source link

Auto Detect webcam? #708

Open Dontmindmes opened 4 years ago

Dontmindmes commented 4 years ago

Hey how would i auto detect webcam of my laptop or any other device and take a picture from the webcam? i tried many things but couldn't get it to work

deadprogram commented 4 years ago

Normally 0 indicates the first camera, if there is one available. e.g. gocv.OpenVideoCapture(0).

Hope that helps!