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

**URL:** <https://forums.openmv.io/t/h7-r2-rgb-image-is-pink-with-sensor-rgb565-sensor-vga-combination/6891>\
**Category:** OpenMV Boards\
**Created:** [March 2, 2022, 3:24am UTC](https://forums.openmv.io/t/h7-r2-rgb-image-is-pink-with-sensor-rgb565-sensor-vga-combination/6891 "2022-03-02T03:24:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![LogASG](https://avatars.discourse-cdn.com/v4/letter/l/b9bd4f/32.png) [@LogASG](https://forums.openmv.io/u/LogASG)\
**Post date:** [March 2, 2022, 3:24am UTC](https://forums.openmv.io/t/h7-r2-rgb-image-is-pink-with-sensor-rgb565-sensor-vga-combination/6891/1 "2022-03-02T03:24:27Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![kwagyeman](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.openmv.io/kwagyeman/32/4_2.png) [@kwagyeman](https://forums.openmv.io/u/kwagyeman)\
**Post date:** [March 2, 2022, 3:36am UTC](https://forums.openmv.io/t/h7-r2-rgb-image-is-pink-with-sensor-rgb565-sensor-vga-combination/6891/2 "2022-03-02T03:36:37Z")

</div>

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.
