I would like to get the average R, G, and B values from a captured image on the OpenMV. The get_statistics method only returns average values in the LAB color space. However, I would like the average values in the RGB565 color space. The histogram in the IDE is able to calculate the average RGB values, so clearly the numbers are there. I just want to be able to access them in code.

Results of the image_statistics_info.py example code with RGB565 pixformat:

{“l_mean”:0, “l_median”:1, “l_mode”:1, “l_stdev”:0, “l_min”:0, “l_max”:1, “l_lq”:1, “l_uq”:1, “a_mean”:0, “a_median”:-1, “a_mode”:-1, “a_stdev”:0, “a_min”:-1, “a_max”:0, “a_lq”:-1, “a_uq”:-1, “b_mean”:0, “b_median”:0

The values that I want are the R_mean, G_mean, and B_mean displayed in the IDE: