将 Android 手机连接到 USB 网络摄像头
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/22392007/
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
Connect Android phone to a USB Web camera
提问by Nasir Shiraz
Hi I am looking to connect a usb camera to an android phone I have access to a Galaxy note 1 and a Sony Xperia L, I can power up a USB memory stick with the Note, but not with the Sony, so I guess the note will be the best option for my project, my phone is not rooted.. is it possible without a rooted phone ? any pointers where to start and if anyone knows of some example projects.. thanks
嗨,我想将 USB 摄像头连接到 Android 手机,我可以使用 Galaxy note 1 和 Sony Xperia L,我可以使用 Note 为 USB 记忆棒供电,但不能使用 Sony,所以我猜是注意将是我项目的最佳选择,我的手机没有扎根..没有扎根的手机可能吗?任何指针从哪里开始,如果有人知道一些示例项目..谢谢
回答by Alex Cohn
There is evidence that your task is possible: https://play.google.com/store/apps/details?id=infinitegra.app.usbcamera.
有证据表明您的任务是可能的:https: //play.google.com/store/apps/details?id=infinitegra.app.usbcamera。
I am not sure if this is another successful attempt to tackle this problem: Android 4.0.3. USB Host - communication with a camera. There is an open source project https://github.com/openxc/android-webcamthat claims to do that, but I don't have first-hand experience with it.
我不确定这是否是解决此问题的另一个成功尝试:Android 4.0.3。USB 主机 - 与相机通信。有一个开源项目https://github.com/openxc/android-webcam声称这样做,但我没有第一手经验。
What I know for sure, this is not easy, and not every camera can be supported this way. Anyways, I don't think that OpenCV is a side in this story.
据我所知,这并不容易,而且并非所有相机都能以这种方式支持。无论如何,我不认为 OpenCV 是这个故事的一个方面。
It seems somewhat easier with an IP camera (Android external camera options - overlay on top of video stream, no middleman server/router), if you can afford one. Alternatively, there is a class of "webcams for Android" (e.g. http://www.alibaba.com/product-detail/Optical-zoom-web-camera-HD-CMOS_1327851112.html), but I have found no details about its connectivity to Android host.
如果您负担得起,使用 IP 摄像头(Android 外部摄像头选项 - 覆盖在视频流之上,没有中间人服务器/路由器)似乎更容易一些。或者,有一类“Android 网络摄像头”(例如http://www.alibaba.com/product-detail/Optical-zoom-web-camera-HD-CMOS_1327851112.html),但我没有找到有关它与 Android 主机的连接。
回答by user3155922
Try an application called UsbWebCamera
from the app store.
I am using Galaxy Note 3 android v.4.4 KitKat, I downloaded it directly for free and it's working on my phone and I also tested Galaxy S2 , Tab 7" & Tab 10.1. They are all compatibly working with my old USB camera which I had it since 6 years ago.
尝试UsbWebCamera
从应用商店调用的应用程序。
我正在使用 Galaxy Note 3 android v.4.4 KitKat,我直接免费下载了它,它可以在我的手机上运行,我还测试了 Galaxy S2、Tab 7" 和 Tab 10.1。它们都与我的旧 USB 相机兼容从 6 年前就有了。