我怎样才能从Android应用程序访问外部的USB摄像头? [英] How can I get access to external USB camera from android app ?

查看:696
本文介绍了我怎样才能从Android应用程序访问外部的USB摄像头?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法从我的应用程序使用Android相机记录API访问USB摄像头和操纵(停止,暂停等)?
如果没有,是否有任何第三方的API?

Is there any way to gain access to USB camera from my applications and manipulate(stop, pause, etc.) with recording using Android Camera API? If no, are there any third party APIs?

推荐答案

还有通过Android相机的API USB摄像头没有一般的访问,我不知道谁将会增加这种支持其特定设备的制造商(虽然我可以根本不知道这件事)。

There's no general access to USB webcams through the Android camera API, and I'm not aware of any manufacturers who would have added such support to their particular devices (although I could simply not know about it).

所以你必须看是否存在第三方库;为充分的可靠性,它们不得不使用用户空间USB和不依赖于恰好配置为允许V4L2访问用户空间应用的内核。 Android的摄像头,例如,依赖于,它不会是因为这样的访问非常强大的是一个有点安全隐患,并可能不是很常见。

So you'll have to see if 3rd-party libraries exist; for full reliability, they'd have to use userspace USB, and not rely on a kernel that happens to be configured to allow V4L2 access to user-space apps. Android-webcam, for example, relies on that, which is not going to be very robust as such access is a bit of a security risk, and will likely not be very common.

这篇关于我怎样才能从Android应用程序访问外部的USB摄像头?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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