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] Camera viewer is over exposed as a result images taken w/ flash mode come out washed out on Samsung devices with Android 11 #88070
Comments
Hi @anthonycastelli ComparisonVersion
Code Samplehttps://pub.dev/packages/camera/example
Check flutter doctor -v[✓] Flutter (Channel stable, 2.2.3, on macOS 12.0 21A5294g darwin-x64, locale en-GB)
• Flutter version 2.2.3 at /Users/tahatesser/Code/flutter_stable
• Framework revision f4abaa0735 (6 weeks ago), 2021-07-01 12:46:11 -0700
• Engine revision 241c87ad80
• Dart version 2.13.4
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
• Android SDK at /Users/tahatesser/Code/SDK
• Platform android-31, build-tools 30.0.3
• ANDROID_HOME = /Users/tahatesser/Code/SDK
• Java binary at: /Users/tahatesser/Code/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment Temurin-11.0.12+7 (build 11.0.12+7)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS
• Xcode at /Applications/Xcode-beta.app/Contents/Developer
• Xcode 13.0, Build version 13A5212g
• CocoaPods version 1.10.1
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[!] Android Studio (version 2020.3)
• Android Studio at /Users/tahatesser/Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/203.7583922/Android Studio.app/Contents
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
✗ Unable to find bundled Java version.
• Try updating or re-installing Android Studio.
[✓] VS Code (version 1.59.0)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.25.0
[✓] Connected device (3 available)
• SM M025F (mobile) • R9ZR205XX0A • android-arm • Android 11 (API 30)
• macOS (desktop) • macos • darwin-x64 • macOS 12.0 21A5294g darwin-x64
• Chrome (web) • chrome • web-javascript • Google Chrome 92.0.4515.131
! Doctor found issues in 1 category. [✓] Flutter (Channel master, 2.5.0-6.0.pre.63, on macOS 12.0 21A5294g darwin-x64, locale en-GB)
• Flutter version 2.5.0-6.0.pre.63 at /Users/tahatesser/Code/flutter_master
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 047d35d8ba (7 hours ago), 2021-08-12 12:47:05 +0800
• Engine revision a2e60472a9
• Dart version 2.15.0 (build 2.15.0-5.0.dev)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
• Android SDK at /Users/tahatesser/Code/SDK
• Platform android-31, build-tools 30.0.3
• ANDROID_HOME = /Users/tahatesser/Code/SDK
• Java binary at: /Users/tahatesser/Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/203.7583922/Android Studio.app/Contents/jre/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7281165)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS
• Xcode at /Applications/Xcode-beta.app/Contents/Developer
• Xcode 13.0, Build version 13A5212g
• CocoaPods version 1.10.1
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 2020.3)
• Android Studio at /Users/tahatesser/Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/203.7583922/Android Studio.app/Contents
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7281165)
[✓] Android Studio (version 2020.3)
• Android Studio at /Users/tahatesser/Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/203.7583922/Android Studio.app/Contents
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7281165)
[✓] VS Code (version 1.59.0)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.25.0
[✓] Connected device (3 available)
• SM M025F (mobile) • R9ZR205XX0A • android-arm • Android 11 (API 30)
• macOS (desktop) • macos • darwin-x64 • macOS 12.0 21A5294g darwin-x64
• Chrome (web) • chrome • web-javascript • Google Chrome 92.0.4515.131
• No issues found!
✅: No Issue ❌: Issue reproduced |
@TahaTesser If you set the flash to Always, does it get extremely washed out for you too? I can put together an example project if needed as well. |
@anthonycastelli |
@anthonycastelli |
@TahaTesser Okay. Perfect. Glad it can be reproduced. Just wanted to get all of the info to you that you needed. This is a bit of a blocker for us so if any workaround or fix is discovered, definitely let me know! |
@TahaTesser Just wanted to circle back and see if there was any progress on this? |
@TahaTesser did you resolved this? i have the same problem with exposed images with auto/always flash mode, i played it in a samsung galaxy note 10 with android 11 with ^0.8.1+7 version, with latest camera version the flash is get in trouble. |
Hey yo!
|
@avmax No, I did not resolve it. For the app I was building, I did find a work around, and that was to turn the flash on torch mode vs auto mode for Android. This served the correct purpose I needed, but I know this isn't something everyone can do. |
@anthonycastelli thank you for answer and workaround! Tried the same this night :D |
@avmax I did yes. I think I used half a second or something, but this was all triggered on the |
I can't believe this issue exists for over a year now and nothing has been done to fix it! I can't put the camera on torch mode. I am working on a serious business app with thousands of users. How am I supposed to make it work on Android? Is there any workaround? Btw: Other than the title suggests, this issue is not limited to Android 11. In fact, I have experienced this on Android 11, 12 and 13! |
…ring on CONTROL_AE_STATE_FLASH_REQUIRED See: flutter/flutter#88070
I guess I fixed the bug. Can you guys confirm by putting the following lines in the camera:
git:
url: git@github.com:gerken-tss/plugins.git
ref: issue-88070-overexposure
path: packages/camera/camera If you can confirm, I will create a PR. Thank you in advance! |
…ding photos blurry and possibly over exposed See: flutter/flutter#88070
When trying to take a picture with the FlashMode set to auto or always, the image is over exposed causing everything to be extremely washed out.
I have set the ExposureMode and FocusMode to auto (which it defaults to as well) with no luck.
This issue was not present on my Samsung S9 running Android 10 or on iOS
The issue appears to be on Android 11 on my Samsung S21 or my other test device Samsung S10
Steps to Reproduce
takePicture()
methodLogs
Logs
The text was updated successfully, but these errors were encountered: