computer-vision
computer-vision copied to clipboard
How can I take input from IP cam or from usb cam ?
I'm using Panasonic IP camera model: BL-C131/C111 Logitec USB camera model: C170
I faced this error while trying to run the code using cmd line arg -s 1 instead of 0
(face3) E:\clients\Assets\FR_Infogen_v3\server\Threading>python thread_demo.py -s 1
warning: Error opening file (/build/opencv/modules/videoio/src/cap_ffmpeg_impl.hpp:901)
warning: 1 (/build/opencv/modules/videoio/src/cap_ffmpeg_impl.hpp:902)
I want to aslo know how can I use video stream from IP cam as source.
I haven't used IP cameras myself, but I came across this SO question that suggests you need to provide the URL/IP address of the IP cam: https://stackoverflow.com/questions/49978705/access-ip-camera-in-python-opencv
Let me know if that works.