在Android Vision API中切换到Camera2

前端之家收集整理的这篇文章主要介绍了在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.

猜你在找的Android相关文章