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

fix: android inference with faster yuv->rgb conversion #51

Merged
merged 4 commits into from
Apr 29, 2024

Conversation

cdiddy77
Copy link
Owner

@cdiddy77 cdiddy77 commented Apr 18, 2024

Android camera only produces YUV color format, whereas mediapipe only wants RGB color format.

Previously we were doing our own custom YUV -> RGB conversion, which A) was slow and B) was probably buggy.

Now we are using a faster, more correct implementation that also supports resize.

The clever resize/convert code was lifted from vision-camera-resize-plugin

@cdiddy77 cdiddy77 force-pushed the fix-android-convert branch from 2e214aa to 588f2e6 Compare April 18, 2024 17:54
@cdiddy77 cdiddy77 force-pushed the fix-android-convert branch from 588f2e6 to ccdf2b3 Compare April 28, 2024 23:31
@cdiddy77 cdiddy77 marked this pull request as ready for review April 28, 2024 23:32
@cdiddy77 cdiddy77 merged commit 7418742 into main Apr 29, 2024
5 checks passed
@cdiddy77 cdiddy77 deleted the fix-android-convert branch April 29, 2024 03:58
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

Successfully merging this pull request may close these issues.

1 participant