H7 R2 rgb image is pink with sensor.RGB565 & sensor.VGA combination

I have a H7 R2 which works as expected for most things tested so far.

I’ve found that when I set pixel format to RGB565 and frame size to VGA (640x480), the video/image displayed in the OpenMV IDE is pink and appear much darker.
sensor.set_pixformat(sensor.RGB565)
sensor.set_framesize(sensor.VGA)

I’ve tried changing pixel format to grayscale and frame size to QVGA and it works as expected.

Can anyone help me understand why this might be happening?

It switches to RAW bayer mode to fit the image in this case. As such, it’s no longer an ISP processed image.

An RGB565 640x480 image is larger than the onboard RAM. If you make the resolution larger our code autocrops the image to keep working.

1 Like