Hello, i need name of class and method after which the process of capturing photo actually occurs. I tries looking at take photo button in MainActivity, but it seems like it is detecting whether its burst or not. I am little stuck, please help.
I need this becuase: i am trying to use external real camera xenon flash with phone. I tried putting code right when take photo button code starts, at this code it sends a signal to arduino which fires flash. The problem is that i cannot get the timing right. If i know when photo actually starts capturing, i may have better luck. With many tries,i got some images with flash on one side and darkness on other. Thanks for reading :)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
A closer point for taking a photo is Preview.takePhotoWhenFocused(), or more specifically CameraController.takePicture().
Beware that it may not be that simple - when the flash is enabled, the exposure settings chosen by the camera will no longer be suitable. Usually the flash has to fire, then the camera adjusts to new exposure levels, then the flash fires again when the photo is taken. CameraController2 does a similar thing as this level of control is required when using flash with the Camera2 API (the first firing of the flash is refrerred to as the precapture, see CameraController2.runPrecapture()). Potentially you could wire it in to instead fire the external flash, then wait for the ae_state (in handleStateChange()) to start and then stop searching.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
Anonymous
-
2020-01-03
Thank you so much Mark!! I will try it soon. I am using manual exposure and shutter speed with disabled phone flash. I create a sound signal on phone and it is sent out via headphone jack, which arduino receives and then fires flash. So exposure settings will be same and fixed.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello, i need name of class and method after which the process of capturing photo actually occurs. I tries looking at take photo button in MainActivity, but it seems like it is detecting whether its burst or not. I am little stuck, please help.
I need this becuase: i am trying to use external real camera xenon flash with phone. I tried putting code right when take photo button code starts, at this code it sends a signal to arduino which fires flash. The problem is that i cannot get the timing right. If i know when photo actually starts capturing, i may have better luck. With many tries,i got some images with flash on one side and darkness on other. Thanks for reading :)
A closer point for taking a photo is Preview.takePhotoWhenFocused(), or more specifically CameraController.takePicture().
Beware that it may not be that simple - when the flash is enabled, the exposure settings chosen by the camera will no longer be suitable. Usually the flash has to fire, then the camera adjusts to new exposure levels, then the flash fires again when the photo is taken. CameraController2 does a similar thing as this level of control is required when using flash with the Camera2 API (the first firing of the flash is refrerred to as the precapture, see CameraController2.runPrecapture()). Potentially you could wire it in to instead fire the external flash, then wait for the ae_state (in handleStateChange()) to start and then stop searching.
Thank you so much Mark!! I will try it soon. I am using manual exposure and shutter speed with disabled phone flash. I create a sound signal on phone and it is sent out via headphone jack, which arduino receives and then fires flash. So exposure settings will be same and fixed.