Thanks for the link. Note that unless there's a delay, the auto exposure won't have time to adjust, so typically either the flash image will be too bright, or the non-flash image too dark, not sure if this is intended?
Potentially it could be done, although I've found devices particularly picky on getting just normal flash to work properly on the Camera2 API. Also for this sort of thing, I'll have to see how things work out with Google's upcoming CameraX library.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
hello can we have a feature that captures two images at one press, one with flash and one with not?
https://stackoverflow.com/questions/35741172/capture-flash-no-flash-images-quickly-using-android-camera2-api
i found this on google maybe it can help
Last edit: Daniel 2020-09-06
Thanks for the link. Note that unless there's a delay, the auto exposure won't have time to adjust, so typically either the flash image will be too bright, or the non-flash image too dark, not sure if this is intended?
Potentially it could be done, although I've found devices particularly picky on getting just normal flash to work properly on the Camera2 API. Also for this sort of thing, I'll have to see how things work out with Google's upcoming CameraX library.