Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
edisonlao opened this issue Sep 20, 2020 · 2 comments
Open

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

edisonlao opened this issue Sep 20, 2020 · 2 comments

Comments

@edisonlao
Copy link

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~

@HMS-MLKit
Copy link
Collaborator

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.

@Mouadabdelghafouraitali

@edisonlao did you find any solution for this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants