Android Phone Ip 网络摄像头应用程序不适用于 Java 中的 openCV

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/33709907/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-11 14:57:00  来源:igfitidea点击:

Android Phone Ip webcam app doesn't work with openCV in java

javaopencv

提问by Collins Abitekaniza

I downloaded Ip webcam app to stream a video directly to openCv in java,I tried to connect it using this.videoCapture.open("http://192.168.43.1:8080/video");As recommended in the image below

我下载了 Ip 网络摄像头应用程序以将视频直接流式传输到 java 中的 openCv,我尝试使用this.videoCapture.open("http://192.168.43.1:8080/video");如下图所示进行连接

here

这里

But I'm getting nothing yet it works with this.videoCapture.open(0);using my webcam .I also tried every thing on this linkchanging the url to http://192.168.43.1:8080/video.mjpgand http://192.168.43.1:8080/video.mjpegbut no positive results.

但是我什么也没有得到它this.videoCapture.open(0);使用我的网络摄像头。我也尝试了这个链接上的每件事,将 url 更改为http://192.168.43.1:8080/video.mjpghttp://192.168.43.1:8080/video.mjpeg但没有积极的结果。

回答by Collins Abitekaniza

I got the solution by downloading Droid Cam for Pc and android instead of Ip Webcam.This helped me access my android phone camera easily instead of using url.I Opened the application and used

我通过下载 Droid Cam for Pc 和 android 而不是 Ip Webcam 得到了解决方案。这帮助我轻松访问我的 android 手机摄像头,而不是使用 url。我打开应用程序并使用

this.videoCapture.open(1);

Since it is recognized as webcam at index 1 in my case.

因为在我的情况下它被识别为索引 1 处的网络摄像头。