-
Notifications
You must be signed in to change notification settings - Fork 15
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
Add Flashlight Feature. #5
Comments
Is anyone working on this issue? |
Not currently. I want to specify that there is already But using this is not reliable + it can make the inference slower (It takes time to turn on the flash and focus, so it might be better for us to use something like We also need to update the model by augmenting brighter images to mimic images taken using flash. I can work on this. |
I think for checking light intensity we can use the light sensors in android devices. I found this plugin but it only supports Android devices: https://pub.dev/packages/light If there are other good approaches then please enlighten me. |
@basnetsoyuj I tried to implement the flashlight feature. For that, I used 'light' package to get the intensity of light. Then mapped the stream of light intensity provided by light package to the stream of FlashMode. To prevent the unnecessary call of setFlashMode() method, I used distinct() method from the stream class. But while doing so, there arises a problem. The distinct method skips data events if they are equal to the previous data event. So, the listener will not get any data unless there is a change in FlashMode from either off or torch at the beginning. For example: I need help so that I can fix this issue. Here's my latest code: https://github.com/aadarshadhakalg/Drishti |
@aadarshadhakalg Thank you. I will look into this issue by today. |
@basnetsoyuj I somehow managed to fix the issue but after when testing I realized that even when flash mode is FlashMode.torch while taking the picture camera flashes which makes the picture quality no different than the one captured when flash mode is FlashMode.auto. To Reproduce, You can see the camera flashes while taking the picture. |
Recognizing notes in dim light and nights is a huge functional requirement for our users. Due to time constraints, the team could not implement the flashlight feature in the camera package.
The text was updated successfully, but these errors were encountered: