I saw that in android vision api (the sample is here: https://github.com/googlesamples/android-vision) camera (camera1) is now deprecated and the recommend is to use camera2.
Do you guys have any idea how to re-write CameraSource to use camera2 on android vision?
Thanks in advance,
Please have a look
camera2 with mobile vision? #65
Ok, I found this
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.