-
Notifications
You must be signed in to change notification settings - Fork 28.6k
Brightness/Exposure/Focus control for camera plugin #24575
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
Comments
This sounds like lack of EXIF or other colorspace data being recorded. :) |
I've written notes about how to add exif on iOS/Android to: #10533 (comment) . I suspect all of these exif bugs are the same root cause and easy to fix. |
Photos taken on iOS mostly have the right illumination with checkout |
I verified that we are writing all EXIF data we get from the iOS Camera to the picture file. However, I noticed that you take the first picture right after the camera was initialized. Is it possible that iOS just needs a few (milli)seconds after initialization to figure out the correct exposer/etc. for the current scene? That would explain why all subsequent pictures after the first one are fine. Can you try adding a short delay before the first picture? |
Yes, the existing behavior with |
Does the OS tell us when it's done focusing and setting up the exposure? Or does that just continue forever? I guess I don't know when the "right" time to take a picture would be... |
As far as I can tell iOS doesn't have an API to tell us when focusing and exposure is done. "done" may also be difficult to implement since it may never reach that state under difficult and constantly changing light conditions... Please follow #10895 for the engine fix. That one is the main bug regarding the incorrect handling of EXIF data on iOS. |
Since we have a work-around (wait a few seconds before taking the first pic) we decided to change this into a feature request for control knobs for brightness/exposure/focus/etc. |
Update -- I have a workaround for this, but I'm seeing this behavior on both iOS and Android. It seems like for whatever reason "initialize camera" is returning before the cameras are truly ready. |
Anyone found the solution for Brightness/Exposure/Focus control for camera in android ? |
It is found that in Android phones, pictures/videos taken right after the camera control initialized (say within 500 ms), are very dark. My work around is: |
I am also looking for a solution. The image_picker plugin does also not provide options to change Brightness/Exposure/Focus/..., so taking professional pictures with flutter is currently not possible. You should thumb up this request if you are interested in the feature. |
I'm trying to scan barcodes, and it would REALLY help if the auto focus were "on" when I bring up the camera preview. |
any progress on auto focus ? |
Any progress on implementing focus control? |
I have an Android app using Camera2 API because I need to set iso (sensitivity) as well as fStop and shutter speed (i.e. I need to suppress any automatic exposure control). Am I correct in understanding that this is impossible in the flutter camera plugin? |
+1. Seems crazy none of these PRs are in for a fairly critical feature like this |
Please fix these issues, the camera uses in the huge amount of apps. |
Any improvements on the auto/manual focus feature? |
I have an app written on Android (Java) using camera2 api. When will Flutter support full exposure control (ISO, shutter speed, f-stop, white-balance)?? I would like to port to Flutter! |
Might this issue be related to the one described on stackoverflow: |
I will be closing this issue since these features have been implemented and merged with the following PRs: |
I used Camera plugin and there was no inbuilt feature in package to set contrast/brightness so I have set it by ColorFiltered widget as:
It worked for me. I hope, this solution will also help you. Thanks a lot for asking this question. |
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of |
Uh oh!
There was an error while loading. Please reload this page.
Steps to Reproduce
I don't know if there's some sort of software brightening that Apple is doing after-the-fact, or if we have some setting that's capturing badly, but I've repro'd this across three different iOS devices (iPhone 8, iPhone XS Max, iPad Air).
The text was updated successfully, but these errors were encountered: