android 摄像头 ip,摄像头已连接,但没有发生任何事情,openCV-IP摄像头Android

博主尝试将S3作为摄像头接口,通过IPWebCam Android应用创建IP摄像头,并使用OpenCV进行连接。遇到的问题是虽然应用程序显示摄像头已连接,但在尝试读取视频流时无法显示画面,出现错误提示。代码中尝试连接的URL为http://192.168.1.XX:8080/video.mjpg,但未能成功打开。可能是URL或OpenCV配置方面存在错误。

这是处理,我试图将我的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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值