How to adjust camera parameters (color saturation, exposure, white balance) on C++ with OpenCV on Pico Ultra W/SC3336
-
I have a working piece of code developed in C++ under Buildroot environment using OpenCV libraries. OK at capturing images from the SC3336 camera into my C++ Code. However I am struggling to detect image features due to very low color saturation. Image is sharp, but color is washed out. Before running my C++ program I use killall rkipc and that allows OpenCV calls to work ok. On other environments I can use OpenCV to modify the camera parameters , but not here. Seems that is not available...
Is there any way to request the camera to increase saturation?
Thanks!
The Luckfox Pico Ultra relies on rkaiq to start the ISP and configure sensor parameters such as color and exposure. Adjustments need to be made by modifying the IQ files. Refer to the saturation section in the attached document to modify /etc/iqfiles/sc3336_CMK-OT2119-PC1_30IRC-F16.json.
The startup execution order is as follows:
Code: Select all
killall rkipc
rkaiq_3A_server &
#Run your image capture program
My project implements the ability to call the ISP to modify saturation, sharpness, etc. Although it's mainly a Python library, I also provide a C++ interface: https://github.com/yiex/visiong
You can either directly call my library, or look at the specific implementation in my code (visiong/src/modules/ISPController.cpp) to adapt it for your own program.

