-
Notifications
You must be signed in to change notification settings - Fork 7.3k
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
FirebaseVisionImage.fromMediaImage vs fromBitmap #1158
Labels
Comments
This issue does not seem to follow the issue template. Make sure you provide all the required information. |
thanks |
Firebase ML-Kit SDK is deprecated, please follow the Google ML-Kit at https://github.com/googlesamples/mlkit/tree/master/android/vision-quickstart |
This was referenced Jul 20, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Unfortunttely after releaseing the app that was developed on you sample code does not work on most devices. So I am trying to use CameraX or Camera2 apis.
Those api output MediaImage. If I use FirebaseVisionImage.fromMediaImage detection is fast and provide desired performance. However, if I use front camera, FirebaseVisionImage.getBitmap outputs a flipped image.
In order to convert MediaImage to a scaled, rotated and flipped image, I used YuvToRgbConverter.
https://github.com/xizhang/camerax-gpuimage/blob/master/app/src/main/java/com/appinmotion/gpuimage/YuvToRgbConverter.kt
Then output Bitmap is then used in FirebaseVisionImage.fromBitmap method. The detection of this approch is very slow and performane is so poor.
Any reason behind this?
I want to achive the similar performance I got from the smaple camera api, but I want to get the bitmap of correct orientation just like in the sample.
The text was updated successfully, but these errors were encountered: