Video from IP camera can't find starting number cv::icvExtractPattern
Hello, I have working C++ project for openCV 3.4.7 with GPU and CPU object detection with USB camera. Now I try use IP camera via http request. In openCV version 4.1.1 it's works but in 3.4.7 I get error:
OpenCV(3.4.7) Error: Bad argument (CAP_IMAGES: can't find starting number (in the name of file): https://192.168.1.109:8080/video) in cv::icvExtractPattern, file C:\openCV\opencv-3.4.7\modules\videoio\src\cap_images.cpp, line 246 [ERROR:0] VIDEOIO(cvCreateFileCapture_Images(filename.c_str())): raised OpenCV exception:
OpenCV(3.4.7) C:\openCV\opencv-3.4.7\modules\videoio\src\cap_images.cpp:246: error: (-5:Bad argument) CAP_IMAGES: can't find starting number (in the name of file): https://192.168.1.109:8080/video in function 'cv::icvExtractPattern'
This is camera from android app "IP webcam" and "DroidCam".
I use this camera with python scirpt and via web browser and it works.
I looked for this error but i didn't found any information about it.
Regards, Adrian
I use openCV on windows 10 and I sharing an image from android via ip address.
I need to see the code for c++ and python for
CAP_IMAGES
I don't want to entire code. Just a single code.This code it`s build in opencv 4.1.1 and it's works, but in 3.4.7 not.
Python is almost the same:
Don't use port and add some extension.
to:
Connection via http doesn't work. I was able to run camera only with rtsp protocol.
Addisionaly when I try give address without specifying the port, opencv set default 80.