saimj7 / People-Counting-in-Real-Time

People Counting in Real-Time with an IP camera.
MIT License
528 stars 263 forks source link

Issue in real time ip camera tracking #41

Closed AdityaDarke2 closed 2 years ago

AdityaDarke2 commented 2 years ago

Hi, I am getting this error when I run the ip camera command, I hope you reply quickly

Edit: now i am getting this error : [INFO] Starting the live stream.. [ERROR:0@1.079] global D:\a\opencv-python\opencv-python\opencv\modules\videoio\src\cap.cpp (166) cv::VideoCapture::open VIDEOIO(CV_IMAGES): raised OpenCV exception:

OpenCV(4.5.5) D:\a\opencv-python\opencv-python\opencv\modules\videoio\src\cap_images.cpp:253: error: (-5:Bad argument) CAP_IMAGES: can't find starting number (in the name of file): http://192.168.1.7:4747/video in function 'cv::icvExtractPattern'

[ERROR:0@3.641] global D:\a\opencv-python\opencv-python\opencv\modules\videoio\src\cap.cpp (166) cv::VideoCapture::open VIDEOIO(CV_IMAGES): raised OpenCV exception:

OpenCV(4.5.5) D:\a\opencv-python\opencv-python\opencv\modules\videoio\src\cap_images.cpp:253: error: (-5:Bad argument) CAP_IMAGES: can't find starting number (in the name of file): http://192.168.1.7:4747/video in function 'cv::icvExtractPattern'

saimj7 commented 2 years ago

Does it work if you have your url as http://192.168.1.7:4747 instead?