Android的外接摄像头的选项 - 覆盖在视频流之上,没有中间人的服务器/路由器 [英] Android external camera options - overlay on top of video stream, no middleman server/router

查看:398
本文介绍了Android的外接摄像头的选项 - 覆盖在视频流之上,没有中间人的服务器/路由器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在寻找一种方式来从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:

  • 在不需要生根或重建的Andr​​oid / Linux内核(绝对必须的)
  • 让我上叠加图像/视频项目(好)
  • 访问视频流做图像分析(最好)

没有所需的最后一个要求,但将是很好。

The last requirement isn't required but would be nice.

选项我已经探索了:

  • 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热点和较旧的Andr​​oid设备使用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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆