hms-ml-demo
hms-ml-demo copied to clipboard
Is it possible to compress the yuv data in onPreviewFrame()
I found that when set Camera's preview size of 320 * 240, the speed of face recognition will much faster than set Camera's preview size of normal phone resolution like 1920 * 1080, by the way, the preview quality of Camera will be very low. so, is it possible to compress the yuv data in LensEngine's inner class LensPreviewer's onPreviewFrame() method? i'm trying to compress the yuv data without changing the parameters of Camera, in order to Improve the speed of face recognition and keep high quality of Camera's preview
I'm still trying, so if anyone thinks this is a feasible approach, please give me a hint thanks you~
Of course, this is a feasible method. But you can't compress the yuv data in LensEngine. You can try to use your own camera control code to do this.
@edisonlao did you find any solution for this issue?