Torch setup for dark environments
AI will struggle when the scene is too dark.
The Captur camera supports torch mode (continuous light) to help in low-light situations.
pass isFlashOn
when initialising the CapturCamera
isFlashOn
when initialising the CapturCameraThe CapturCamera
or CapturUltraWideCamera
can be initialised with a isFlashOn
parameter.
This is a state variable that can be updated during runtime, for example if the user toggles the flash from the UI, or if the SDK returns a guidance event for too_dark
The recommended implementation is to base this on the OS detect low-light conditions (if available), or use a time-of-day heuristic, matching standard best practices for QR code scanning.
Updated 5 months ago