Currently, I am researching visible light (Li-Fi) using camera2 API on Android Studio.
However, auto-exposure and auto-focus can get in the way when taking pictures of LEDs and retrieving data.
Please tell me how to cut the above two.
Android Studio 3.1
SHARP AQUOS API 23
capture method in
CameraRequest as the argument.Yes.
CameraRequest has various fields,
CONTROL_AE_MODE for autofocus and autofocus.If you set them to
OFF, they will be disabled.It also offers
CONTROL_MODE that allows you to configure three things together, including white balance adjustments.
CameraDevice allows you to generate
CameraRequest.Builder appropriate for each camera, so you should rewrite it to disable AF etc.
Quote Google's sample code (comments made by the citation):
© 2022 OneMinuteCode. All rights reserved.