微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

在Android Vision API中切换到Camera2

我看到在 android视觉api(示例在这里https://github.com/googlesamples/android-vision)相机(camera1)现在已经不推荐,建议使用camera2.

你有什么想法如何重写CameraSource在android视觉上使用camera2?

提前致谢,

解决方法

请看一看

camera2 with mobile vision? #65

好的,我发现了这一点

There are no near term plans for a camera2 version of the CameraSource class in the official API. However,given how the API is structured,an alternate version of CameraSource Could be written by the developer community that uses camera2. All of the existing APIs for working with frames and detectors are sufficient to support a camera2 implementation as well.

原文地址:https://www.jb51.cc/android/310983.html

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐