-
Notifications
You must be signed in to change notification settings - Fork 756
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
Not Working on Android 11 and 12 #285
Comments
@arsallion313786 : what do you mean with "not working"? which API are you using: face detection, barcode, text recognition, etc? I used a Pixel 4 with Android 12 to test our example app, and so far all the APIs are working. So, could you be more specific what is not working for you Android 12 testing device? |
@fbernaly |
Possibly related, google_mlkit_barcode_scanning doesn't work for me on Pixel 3, Android 12. The camera switches on, but nothing happens when pointed at a barcode. Barcode detection works fine on iOS. Flutter logs: I/Camera (20069): close |
From the linked bug, there is likely an issue with some Android 12 devices (emulators are okay) and google_mlkit_barcode_scanning:
|
nokia x20 android 12 |
Not working on Vivo Y33T having android 12 |
I am using this plugin together with the camera plugin to create a barcode scanner. The imageSream on the CameraController delivers CameraImage's which will be used for barcode detection while using the mlkit BarcodeScanner. But I changed something which made it work. Surprisingly it's the "ResolutionPreset" in the CameraController constructor. Maybe there is some kind of correlation between the resolution of the images and the detector(s). |
I can confirm that changing the I don't think this problem is Android Version related since I can reproduce this on Android 10 (Xiaomi Redmi 9S) using |
Guys I have created one new plugin for face detection using CameraX which
will solve the mentioned issues in sha Allaah. Please visit
https://pub.dev/packages/camerax2.
…On Thu, Jul 14, 2022 at 4:41 PM Rúben Ferreira ***@***.***> wrote:
But I changed something which made it work. Surprisingly it's the
"ResolutionPreset" in the CameraController constructor.
First I set it to medium which works on the pixel 6 but not pixel 5. Then
I changed it to high and after that it also works on the pixel 5.
I can confirm that changing the ResolutionPreset results in different
behavior. Setting ResolutionPreset to ResolutionPreset.max seems to work,
but slows down the camera framerate. Maybe this bug have something to do
with the camera package not finding the asked camera resolution and
sending wrong metadata or MLKit can't process images with low resolution
(setting a low ResolutionPreset setting like ResolutionPreset.medium).
—
Reply to this email directly, view it on GitHub
<#285 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AC2R3SYE76JUHQUBWF4CDP3VT7YVBANCNFSM5Z2TRYVQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Hi guys, sorry for the delay. Thanks for using our plugin. @bharat-biradar and I have been maintaining this plugin, but sometimes we cannot provide all the support you need. Both of us are busy with school, work and family. We created this plugin as an open source project. We do not have an ETA for this fix, too busy with so many things, but you are welcome to fork our repo, fix whatever is broken and sent the PR. We will review PRs as soon as possible and release a new version. I think that @rubenferreira97 is right, during my initial testing I found issues with the ML Kit has these guidelines for input image resolution: https://developers.google.com/ml-kit/vision/face-detection/ios#input-image-guidelines Unfortunately, because most of us are using the I would appreciate if someone takes the time to fork our repo and starts leading that effort. I think we are going to continue seeing this issues related to using |
Hey, im having the same issue as you all, on some Android devices face recognition is not working. I did get to make it work on a lot of previusly affected devices by seting the camera quality to "High", sacrificing some performance. PD: I tryed @mahbubabbas package, and it works fine with this still affected devices. But the integration with my allready developed code would be painfull. For example, im getting a photo from the image stream, to use it after biometrics, without having to use the function "take photo" wich requieres the stream to stop and take a photo ( in wich time a hacker of biometrics could put a photo of the real user, to fake the biometrics). Also i dont have lavel detector, wich i use to detect if user has lenses on or photos wich can affect the biometrics process. |
Hello, i have a list of devices where the library is NOT working (Ranked from TOP to BOTTOM in amount of devices that have my app, and none of the users with this devices could do face detection.) motorola, moto g(30) 553 Still waiting on a fix for face detection, or for the camera library fix to start detecting faces. Anyone has any news about this ?? |
Hi, |
This sounds related to my issue here: flutter/flutter#118350 |
take a look at flutter/packages#3277, this helped in my case #287 |
Use NV21 for Android. |
I have added latest google ml kit version in our flutter app its working fine for Android 9 but for higher versions Android 11 and 12 not working even i tested google ml kit example app and same behaviour for Android 11 and 12. I also tried this for IOS and there its working fine. On Android 11 and developer all feature are not working properly.
If any one try google ml kit features for Android 11 and 12 then please share solution or even share their problem
The text was updated successfully, but these errors were encountered: