Android的外接摄像头的选项 - 覆盖在视频流之上,没有中间人的服务器/路由器 [英] Android external camera options - overlay on top of video stream, no middleman server/router
问题描述
我在寻找一种方式来从Android设备接口与外部摄像头。它需要外接摄像头的原因是因为我需要能够修改相机(除去IR滤光片),我无意打破板载手机拍照。
I'm looking for a way to interface with an external camera from an Android device. The reason it needs to be an external camera is because I need to be able to modify the camera (remove IR filter) and I have no desire to break an on-board phone camera.
没关系相机如何连接不管是通过USB,蓝牙,WiFi,或其他一些通信协议,两台设备只需要能够无需中间人服务器/路由器交谈。
It doesn't matter how the camera connects whether it is through USB, bluetooth, WiFi, or some other communication protocol, the two devices just need to be able to talk without having a middleman server/router.
我正在寻找一个解决方案:
I'm looking for a solution that:
- 在不需要生根或重建的Android / Linux内核(绝对必须的)
- 让我上叠加图像/视频项目(好)
- 访问视频流做图像分析(最好)
没有所需的最后一个要求,但将是很好。
The last requirement isn't required but would be nice.
选项我已经探索了:
- USB摄像头:重建Linux内核按<一个href="http://brain.cc.kogakuin.ac.jp/research/usb-e.html">http://brain.cc.kogakuin.ac.jp/research/usb-e.html并试图通过提供code。使用相机:<一href="http://rads.stackoverflow.com/amzn/click/B002X3VEIE">http://www.amazon.com/gp/product/B002X3VEIE/ref=oh_o02_s00_i00_details.没有了半点的工作。后来我才知道,作者使用的CM9mod然而,这真的不是因为它是不实际的,在市场上的应用程序的选项。
- 蓝牙摄像头: Looxcie 和 CountourGPS 一>的样子,不过饲料传输到他们的应用程序的最佳选择,他们有没有API或SDK凭什么一个叠加在他们的视频源?
- IP摄像机:对我来说这看起来像是最有前途的选择,但一个人如何可以访问IP摄像机的视频饲料没有一个中间人的服务器/路由器? 受欢迎产品具有WiFi BACPAC 看起来很有潜力,但还没有出来,从我能告诉您需要使用他们的应用程序类似蓝牙摄像头的选择。什么相机存在允许我连接到它们,并获得直接的视频输入信号,以及如何去有关这个编程?
- USB camera: rebuilt Linux Kernel as per http://brain.cc.kogakuin.ac.jp/research/usb-e.html and tried using provided code using camera: http://www.amazon.com/gp/product/B002X3VEIE/ref=oh_o02_s00_i00_details. Did not work in the slightest bit. I later learned that the author used the CM9 mod however this really isn't an option given that it isn't practical for an app in the market.
- Bluetooth camera: Looxcie and CountourGPS look like the best options however the feed is streamed to their app and they have no API or SDK so how can one overlay on their video feed?
- IP camera: to me this looks like the most promising option but how can one access an IP cameras video feed without a middleman server/router? GoPro HD Hero2 with WiFi BacPac looks potentially promising but it isn't out yet and from what I can tell requires you to use their app similar to the bluetooth camera options. What cameras exist that allow me to connect to them and receive a direct video feed and how do I go about this programmatically?
如果没有中间人连接IP摄像头,可以在code在 Android和MJPEG 和<一href="http://stackoverflow.com/questions/4490707/getting-ip-cam-video-stream-on-android-mjepg">Getting网络摄像机在Android(MJEPG)视频流看起来很有希望。
If connection to an IP camera without the middleman is possible the code at Android and MJPEG and Getting IP Cam video stream on Android (MJEPG) looks promising.
我可以覆盖在另一个应用程序的视频输入上面?是否可以直接连接到IP摄像头?任何建议的选项大大AP preciated。
Can I overlay on top of another apps video feed? Is it possible to connect directly to an IP camera? Any suggested options greatly appreciated.
推荐答案
我最终选择了网络摄像机的选择,因为它似乎是唯一可行的选择。
I ended up opting for the IP camera option as it seemed to be the only viable option.
我能购买这的相机,取出IR滤波器通过除去胶在透镜的基部,然后破IR滤波器出去。
I was able to purchase this camera and remove the IR filter by removing the glue at the base of the lens and then breaking the IR filter out.
我可以将相机连接到ICS使用AndroidAP热点和较旧的Android设备使用ad-hoc网络设置相机(你必须手动设置IP地址等进行临时,它是一个痛苦)
I was able to connect the camera to ICS using the AndroidAP hotspot and to older Android devices using an ad-hoc network setup on the camera (you have to manually set IP addresses, etc for ad-hoc and it's a pain).
至于让MJPEG在一个应用程序工作在ICS我做了<一href="http://stackoverflow.com/questions/10550139/android-ics-and-mjpeg-using-asynctask%20these">these修改到code我发现左右。
As for getting MJPEG working in an app on ICS I made these modifications to the code I found on SO.
最后的应用程序需要能够打开AP和关闭,我还没说完呢,但是的这里是一些code下手。
Lastly the app needs to be able to turn the AP on and off which I have not finished yet but here is some code to start with.
这篇关于Android的外接摄像头的选项 - 覆盖在视频流之上,没有中间人的服务器/路由器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!