This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TDA4VM: convert YUV image to RGB image

Part Number: TDA4VM

Hi

In the app_tidl_seg demo, it reads its input from the SD card as YUV images. http://software-dl.ti.com/jacinto7/esd/processor-sdk-rtos-jacinto7/latest/exports/docs/vision_apps/docs/user_guide/group_apps_dl_demos_app_tidl_seg.html

How can I convert an image from YUV format to RGB and from RGB to YUV?
I tried to do it using the method in the picture below "www.programmersought.com/.../" but it didn't work correctly.

Regards

  • You can use ffmpeg to convert files offline,

    Eg. ffmpeg -i <input_filename.bmp> -pix_fmt nv12 <output_fillename.yuv>

    If you are looking at some code, we already have a pre-processing node which does the color conversion.

    vision_apps/kernels/img_proc/c66/vx_image_preprocessing_target.c

    Regards,
    Shyam