How to set awb_mode for ESP32 cam?

Hi,

I am beginner in the Arduino development.

I would like to implement the image capture with ESP32 cam and would like to have provision for camera settings like AWB_MODE, brightness, etc.

I looked into the camera web server arduino example but didn't understood how to set the camera settings. What are the possible options for that.

Thanks in advance for any suggestion and feedback.

Got the solution :

sensor_tm * s = esp_camera_sensor_get();
s->set_framesize(s, FRAMESIZE_SXGA);

//WB mode set Options : 0 - auto 1-sunny 2-Cloudy 3-office
s->set_wb_mode(s, 1);