hms-ml-demo icon indicating copy to clipboard operation
hms-ml-demo copied to clipboard

Is it possible to compress the yuv data in onPreviewFrame()

Open edisonlao opened this issue 3 years ago • 2 comments

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~

edisonlao avatar Sep 20 '20 13:09 edisonlao

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.

HMS-MLKit avatar Sep 22 '20 05:09 HMS-MLKit

@edisonlao did you find any solution for this issue?

Mouadabdelghafouraitali avatar Mar 13 '22 11:03 Mouadabdelghafouraitali