cancel
Showing results for 
Search instead for 
Did you mean: 

Can we capture image from camera in RGB888 format using STM32F4DIS-CAM on STM32F746NG target board?

shitaljadhav
Associate

I am using STM32F746NG(DISCO_F746NG) with camera(STM32F4DIS-CAM) to capture images by using https://os.mbed.com/teams/ST/code/BSP_DISCO_F746NG//file/85dbcff443aa/ this driver.

Currently this camera gives image in RGB565 format ans we are converting it in RGB888 in code. This requires memory, so to avoid conversion and save memory on board we need image in RGB888 format.

We are using functions to capture image from camera :-

1) BSP_CAMERA_Init(resolution) ---> resolution is 160*120

2) BSP_CAMERA_SnapshotStart(output_camera_buffer) ---> output_camera_buffer is in RGB565 format

Both functions are in this C file :- https://os.mbed.com/teams/ST/code/BSP_DISCO_F746NG//file/85dbcff443aa/Drivers/BSP/STM32746G-Discovery/stm32746g_discovery_camera.c/

We are converting RGB565 to RGB888 using resize_rgb565in_rgb888out() given in file https://github.com/ARM-software/ML-examples/blob/master/cmsisnn-cifar10/camera_demo/camera_app/camera_app.cpp#L31

  

Can anybody suggest some solution?

0 REPLIES 0