C++ 摄像头已连接,但什么也没发生,openCV IP网络摄像头Android

C++ 摄像头已连接,但什么也没发生,openCV IP网络摄像头Android,c++,opencv,ip,ip-camera,webcam-capture,C++,Opencv,Ip,Ip Camera,Webcam Capture,交易是这样的,我正在尝试将我的S3接口为网络摄像头,使用android的IP网络摄像头应用程序,然后在软件中制作一个IP网络摄像头,通常地址可能是最后两位数字的更改,该网页为我提供如下选项和信息: "Here is the list of IP Webcam service URLs: http://192.168.1.XX:8080/video is the MJPEG URL." include "opencv2/highgui/highgui.hpp include "opencv2

交易是这样的,我正在尝试将我的S3接口为网络摄像头,使用android的IP网络摄像头应用程序,然后在软件中制作一个IP网络摄像头,通常地址可能是最后两位数字的更改,该网页为我提供如下选项和信息:

"Here is the list of IP Webcam service URLs:  
http://192.168.1.XX:8080/video is the MJPEG URL."
include "opencv2/highgui/highgui.hpp
include "opencv2/imgproc/imgproc.hpp
using namespace cv;
int main(){
    VideoCapture cap("http://192.168.1.XX:8080/video.mjpg"); // connect to an ip-cam ( might need some additional dummy param like: '?type=mjpeg' at the end
    while(cap.isOpened()){
        Mat frame;
        if (!cap.read(frame))
            break;
        imshow("lalala",frame);
        int k = waitKey(10);
        if ( k==27 )
            break;
    }
    return 0;
}
我使用的代码如下所示:

"Here is the list of IP Webcam service URLs:  
http://192.168.1.XX:8080/video is the MJPEG URL."
include "opencv2/highgui/highgui.hpp
include "opencv2/imgproc/imgproc.hpp
using namespace cv;
int main(){
    VideoCapture cap("http://192.168.1.XX:8080/video.mjpg"); // connect to an ip-cam ( might need some additional dummy param like: '?type=mjpeg' at the end
    while(cap.isOpened()){
        Mat frame;
        if (!cap.read(frame))
            break;
        imshow("lalala",frame);
        int k = waitKey(10);
        if ( k==27 )
            break;
    }
    return 0;
}
因此,IP网络摄像头应用程序可以识别连接,但没有任何图像。。。然后它说:


警告:打开文件时出错尝试连接另一个视频流android应用程序。
我使用智能网络摄像头。
打开它

cap.open("http://192.168.1.13:8080/?x.mjpg);