Configure the auto exposure regions on the camera
#include <camera/camera_3a.h>
camera_error_t camera_set_exposure_regions(camera_handle_t handle, int numregions, camera_region_t *regions)
When exposure regions are defined, the auto exposure algorithm will give exposure priority to objects in the defined areas of the scene.
Call this function only if the CAMERA_FEATURE_REGIONEXPOSURE feature is available. You can call camera_can_feature() to determine if the CAMERA_FEATURE_REGIONEXPOSURE is available.
The maximum number of exposure regions that you can configure is returned by the numsupported argument of the camera_get_exposure_regions() function.
After setting the regions, you must call the camera_set_exposure_mode() function to commit the changes.
The viewfinder must be running before using this function.
CAMERA_EOK when the function successfully completes, otherwise another camera_error_t value that provides the reason that the call failed.