本文介绍了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:


  • 生成或重建Android / Linux内核(绝对必须)

  • 允许我将图片/视频上的项重叠(好)

  • 访问视频(最好)

最后一个要求不是必需的,但会很好。

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

我已经探索的选项:


  • USB相机:根据并尝试使用提供的使用相机的代码:。没有工作在最轻微的位。我后来才知道,作者使用的是CM9 mod,但这不是一个选项,因为它不适用于市场上的应用程序。

  • 蓝牙摄像头:和看起来像是最好的选择,但饲料是流式传输到他们的应用程序,他们没有API或SDK,如何一个覆盖在他们的视频供稿?

  • IP摄像头:对我来说这看起来像最有前途的选择,一个IP摄像机视频馈送没有中间人服务器/路由器? 看起来潜在的希望,但它还没有出来,从我可以tell要求你使用他们的应用程序类似于蓝牙相机选项。现在有哪些摄像机可以连接到他们并接收直接视频Feed,以及如何以编程方式进行?

  • 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摄像机是可能的代码在和上获取IP Cam视频流看起来很有前途。

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.

我可以覆盖在另一个应用视频Feed的顶部吗?是否可以直接连接到IP摄像机?任何建议的选择非常感激。

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.

推荐答案

我最终选择了IP摄像机选项,因为它似乎是唯一可行的选项。

I ended up opting for the IP camera option as it seemed to be the only viable option.

我可以购买相机,并移除红外滤镜

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.

我可以使用AndroidAP热点和旧版Android设备将相机连接到ICS 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上我对修改我在SO上找到的代码。

As for getting MJPEG working in an app on ICS I made these modifications to the code I found on SO.

最后,应用程序需要能够打开和关闭AP,但我还没有完成,但是一些开始的代码。

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外部相机选项 - 覆盖在视频流顶部,没有中间人服务器/路由器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-23 02:14