Converting QQVGA images from YCbCr422 to RGB888
When compiling the previous sketch on Arduino, you may have noticed the Low memory available, stability may occur warning in the Arduino IDE output log.
The Arduino IDE returns this warning because the QVGA image with the RGB565 color format needs a buffer of 153.6 KB, which is roughly 60% of the SRAM available in the microcontroller.
In this recipe, we will show how to acquire an image at a lower resolution and use the YCbCr422 color format to prevent image quality degradation.
The following Arduino sketch contains the code referred to in this recipe:
03_camera_capture_qqvga_ycbcr422.ino
:
Getting ready
The main ingredients to reduce the image size are behind the resolution and color format.
Images are well known for requiring big chunks of memory, which might be a problem when...