我看到在
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.