Hello, I got a nice amb82 mini module.
My images are way to bright and I need to find a way to set the white balance via arduino ide code.
There should be a way to activate, or tune, the automatic white balance but I cannot find any information on this. Can anybody please tell me how to do it?
I would also like to limit the area of the image, for instance if you only need a part of the image in many other modules you can specify a “roi” or region of interst by specifying x, y, width and lenght of the region and only that will be captured.
thanks, I found white balance and exposure functions in the new libraries package.
I still miss the region of interest, or a digital (=fake) zoom as my amb82 module stays inside front door’s peephole, and the image obviously is all black with a small circle in the center, which is the part that needs to be displayed.
Chances are that by zooming or cropping the auto exposure and auto white balance will behave better.
Is region of interest/zoom available?
I think that these lines in video_drv.c refer to something internal for neural networks object detection, I’m not sure if it can be used in my case.
In my streaming sketch I initialize the camera with this (pseudo) code
I found that by adding this lines I can fiddle with the contrast and exposure etc, even if I don’t really notice any change in how the video looks:
CameraSetting configCam;
configCam.setContrast(xyz);
configCam.setExposureTime(xyz);
I think there should be some .setRoi(x,y,w,h) method or someting similar but I can’t really find it. In the libraries there are some sections for setting the region of interest, but these seem unrelated to the classtypes I use in my code.
I wish there was an example available to help us understand how to set this parameter.