这是处理,我试图将我的S3作为摄像头接口,使用IP WebCam android应用程序,然后在软件内制作IP摄像头,通常地址是http://192.168.1.XX:8080/greet.html也许最后两位数字的变化,网页给我的选择和信息是这样的:摄像头已连接,但没有发生任何事情,openCV-IP摄像头Android
"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摄像头的应用程序recognice一连接,但没有任何形象...然后它说:
warning: Error opening file <..>
Cannot open the web cam
Process returned -1 <0xFFFFFFF> execution time: 37.259 s
Press any key to continue.
我使用:
Windows 7专业版
打开CV 2.4.4
代码块13.12
USB 2.0摄像头640×480 30fps的,50赫兹和所有标准。
2014-11-03
RoboBox
博主尝试将S3作为摄像头接口,通过IPWebCam Android应用创建IP摄像头,并使用OpenCV进行连接。遇到的问题是虽然应用程序显示摄像头已连接,但在尝试读取视频流时无法显示画面,出现错误提示。代码中尝试连接的URL为http://192.168.1.XX:8080/video.mjpg,但未能成功打开。可能是URL或OpenCV配置方面存在错误。
4806

被折叠的 条评论
为什么被折叠?



