flutter-ml / google_ml_kit_flutter

A flutter plugin that implements Google's standalone ML Kit
MIT License
992 stars 748 forks source link

Face Detection Fails with Front Camera Images from ImagePicker #567

Open bluej4ker opened 10 months ago

bluej4ker commented 10 months ago

Bug Description The Flutter Face Detector package fails to detect faces in images captured using the front camera through the ImagePicker package. The issue persists even when selecting the same images from the gallery. However, when using the rear camera or selecting different images from the gallery, the issue does not occur.

Steps to Reproduce

Use the ImagePicker package to capture a photo with the front camera. Attempt face detection using the Flutter Face Detector package on the captured image. Select the same image from the gallery and try again. Observe the error. Expected Behavior Face detection should successfully work with images taken from the front camera and selected from the gallery.

Platform Information OS: iOS Device: iPhone 12 Pro OS Version: 17.1.2 Flutter/Dart Version: sdk: '>=3.3.0-102.0.dev <4.0.0' Plugin version: image_picker: ^1.0.6, Additional Context This issue may be specific to the mentioned device and version. Please indicate if it has been tested on different devices.

giordy16 commented 10 months ago

Hi, do you also have this problem? https://github.com/flutter-ml/google_ml_kit_flutter/issues/570

Fairfieldfred commented 9 months ago

I had a similar bug with it not working on the front (selfie) camera but when interestingly it resolved if I pressed the arrows inside the picture frame to increase the field of view - all of a sudden it would work.

github-actions[bot] commented 1 month ago

This issue is stale because it has been open for 30 days with no activity.