在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性能优化——之控件的优化 前面讲了图像的优化,接下...
前言 上一篇已经讲了如何实现textView中粗字体效果,里面主要...
最近项目重构,涉及到了数据库和文件下载,发现GreenDao这个...
WebView加载页面的两种方式 一、加载网络页面 加载网络页面,...
给APP全局设置字体主要分为两个方面来介绍 一、给原生界面设...
前言 最近UI大牛出了一版新的效果图,按照IOS的效果做的,页...