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

[camera] Quality of image and video captured from flutter camera package is too dark on Moto G 5S Plus #55284

Open
dineshrajbhar777 opened this issue Apr 21, 2020 · 8 comments
Labels
a: quality A truly polished experience e: device-specific Only manifests on certain devices p: camera The camera plugin P3 Issues that are less important to the Flutter project package flutter/packages repository. See also p: labels. platform-android Android applications specifically team-android Owned by Android platform team triaged-android Triaged by Android platform team

Comments

@dineshrajbhar777
Copy link

Quality of image and video captured from flutter camera package is to dark as compared to builtin camera app and even if image_picker packages produce good quality of Image.

I am trying to develop custom camera app and I want to control it programmatically like starting video record when app launches and after 1 min stop recording and if user want to stop before 1 min he/she can do it by stop-button widget.

@TahaTesser
Copy link
Member

Hi @dineshrajbhar777
Which you device you facing this issue? Did you try on multiple devices
can you please provide your flutter doctor -v and flutter run --verbose?
Also, to better address the issue, would be helpful if you could post a minimal code sample to reproduce the problem
Thank you

@TahaTesser TahaTesser added in triage Presently being triaged by the triage team waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds labels Apr 21, 2020
@dineshrajbhar777
Copy link
Author

dineshrajbhar777 commented Apr 22, 2020

Hi @TahaTesser

Thank you for replying.

I am testing it in Moto G 5S Plus [ Android 8.1.0 (API 27) ] device and photo and capture video is appears too dark.

Please find below attached flutter doctor -v log and flutter run -v

flutter_doctor.log

flutter_run.log

and you can find sample code in below link
https://github.com/dineshrajbhar777/camera_app

@no-response no-response bot removed the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Apr 22, 2020
@TahaTesser TahaTesser changed the title Quality of image and video captured from flutter camera package is to dark Quality of image and video captured from flutter camera package is too dark Apr 22, 2020
@TahaTesser
Copy link
Member

Hi @dineshrajbhar777
Testing you code sample on Galaxy M30 on latest dev, it's not not dark. Could device specific, can you please try another different? You think this issue is only happening on Moto G 5S Plus?

flutter doctor -v
[✓] Flutter (Channel dev, v1.18.0-6.0.pre, on Mac OS X 10.15.4 19E287, locale
    en-GB)
    • Flutter version 1.18.0-6.0.pre at /Users/taha/Code/flutter_dev
    • Framework revision 84c84fb249 (31 hours ago), 2020-04-20 21:35:01 -0400
    • Engine revision 2bde4f0ae4
    • Dart version 2.9.0 (build 2.9.0-1.0.dev a12c36dd97)
 
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
    • Android SDK at /Users/taha/Code/sdk
    • Platform android-29, build-tools 29.0.3
    • ANDROID_HOME = /Users/taha/Code/sdk
    • Java binary at: /Applications/Android
      Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build
      1.8.0_212-release-1586-b4-5784211)
    • All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 11.4.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 11.4.1, Build version 11E503a
    • CocoaPods version 1.9.1
[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 3.6)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 45.1.1
    • Dart plugin version 192.7761
    • Java version OpenJDK Runtime Environment (build
      1.8.0_212-release-1586-b4-5784211)
[✓] VS Code (version 1.44.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.9.1
[✓] Connected device (4 available)
    • SM M305F   • 32003c30dc19668f • android-arm64  • Android 10 (API 29)
    • macOS      • macOS            • darwin-x64     • Mac OS X 10.15.4 19E287
    • Chrome     • chrome           • web-javascript • Google Chrome
      81.0.4044.113
    • Web Server • web-server       • web-javascript • Flutter Tools
• No issues found!

Thank you

@TahaTesser TahaTesser added the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Apr 22, 2020
@dineshrajbhar777
Copy link
Author

Hi @TahaTesser

Yes, it looks like device specific. I tested same thing in other devices it looks OK.

But its strange that it is not working for Mot- G5S+ but working ok for Moto-E (lowerend than G)

Thanks for your valuable support.

@no-response no-response bot removed the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Apr 22, 2020
@TahaTesser TahaTesser removed the in triage Presently being triaged by the triage team label Apr 23, 2020
@TahaTesser
Copy link
Member

Hi @dineshrajbhar777
Can you please provide sample image and video from this device?
Thank you

@TahaTesser TahaTesser added in triage Presently being triaged by the triage team waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds labels Apr 23, 2020
@dineshrajbhar777
Copy link
Author

Hi you can check the difference between Image and video captured using Default OS camera, Flutter Image Picker package and flutter camera package (MotoGS5+)

Sample Video Camera Package Image is darker

  1. Flutter Camera Package
    camera-package

  2. Flutter Image Picker Package
    image-picker

  3. OS Camera
    os-camera

Sample Picture are look OK

  1. Flutter Camera Package
    camera_package

  2. Flutter Image Picker Package
    image_picker

  3. OS Camera
    os_camera

@no-response no-response bot removed the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Apr 25, 2020
@TahaTesser TahaTesser removed the in triage Presently being triaged by the triage team label Apr 27, 2020
@TahaTesser TahaTesser changed the title Quality of image and video captured from flutter camera package is too dark [camera] Quality of image and video captured from flutter camera package is too dark on Moto G 5S Plus Apr 27, 2020
@TahaTesser TahaTesser added a: quality A truly polished experience e: device-specific Only manifests on certain devices has reproducible steps The issue has been confirmed reproducible and is ready to work on p: camera The camera plugin p: first party labels Apr 27, 2020
@TahaTesser TahaTesser removed the has reproducible steps The issue has been confirmed reproducible and is ready to work on label Aug 12, 2020
@stuartmorgan stuartmorgan added P3 Issues that are less important to the Flutter project dependency: android Android team may need to help us platform-android Android applications specifically and removed dependency: android Android team may need to help us labels Jul 27, 2021
@atreeon
Copy link

atreeon commented Apr 4, 2023

@huycozy it looks like this is P5 priority so I'm guessing it won't be fixed anytime in the next six to twelve months.
Do you or anyone else have any work arounds or further information?
Is it just this specific device; Moto G5s? ie does it work on other Moto Android 7.0 phones?
If it is just one device it is probably fine; if there is a list of phones that don't work it might be nice to have a list available somewhere.

@atreeon
Copy link

atreeon commented Apr 6, 2023

actually, I just added a delay before and after the flash and it actually works ok.

          await Future.delayed(Duration(milliseconds: 500));
          await _cameraController!.setFlashMode(FlashMode.off);
          await Future.delayed(Duration(milliseconds: 500));
          _image = await _cameraController!.takePicture();

@flutter-triage-bot flutter-triage-bot bot added the package flutter/packages repository. See also p: labels. label Jul 5, 2023
@Hixie Hixie removed the plugin label Jul 6, 2023
@flutter-triage-bot flutter-triage-bot bot added multiteam-retriage-candidate team-android Owned by Android platform team triaged-android Triaged by Android platform team labels Jul 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a: quality A truly polished experience e: device-specific Only manifests on certain devices p: camera The camera plugin P3 Issues that are less important to the Flutter project package flutter/packages repository. See also p: labels. platform-android Android applications specifically team-android Owned by Android platform team triaged-android Triaged by Android platform team
Projects
None yet
Development

No branches or pull requests

5 participants