Open Gregoriomartjim opened 6 years ago
Hi @Gregoriomartjim.
The path to the video capture which OpenCV will process is being set using the videoCapturePath
field right here:
In order to capture video from your webcam you should pass the device index to the VideoCapture
object, as it's explained here: https://docs.opencv.org/3.0-beta/doc/py_tutorials/py_gui/py_video_display/py_video_display.html#capture-video-from-camera.
If you change that line 37 on PeopleCounter.cpp so the VideoCapture
object receives an integer you can achieve what you want.
I hope this can help you, please let me know if it works for you
Regards
Hello
I been looking where did you select the path for the video but i cant find it, could you tell me where is it? i would like to change this program to have a people counter live from a usb webcam, do you have any idea of how i could do it?
Regards