AI Vision sensor auto white balance

Hi, I’ve been playing around with falling back to color mode in case ai object recognition fails. was trying to figure out how the awb() call works. The old vision api let you read the result back.

I was just curious as the colors generated by the ai vision configure utility in VEXCode are quite far off from being say a “yellow” for the mogo.

aivision::colordesc AIVision8__COLOR1(1, 62, 105, 50, 15, 0.42);

For reference I took a picture of a mogo using a DSLR using a white balance correction card and ran through lightroom to adjust the white balance (below). The image has no blue component to it at all - the mogo is very close to yellow - (a little more green than red).

Thanks,
Nick.

The startAwb function will set a status flag on the sensor that causes it to re-run its automatic white balance routine. It essentially “forces” it to re-adjust its white balance at a given point in time to the ambient lighting. It’s easier to visualize what it’s doing if you connect the sensor as a webcam via USB and call the function from user code while connected. There is no fine control over white balance settings like there was on the old pixy-based sensor.

OK, that’s helpful. Gives me an idea on initialization then, thanks!