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.

AM625: AM625 Digilent Pcam 5C

Part Number: AM625

Tool/software:

Hello,

This issue occurred while testing a MIPI CSI2 camera on the AM62x EVB.
After configuring the camera according to the instructions on TI's AM62x Academy webpage, we were able to receive the camera image, but the image appears with an excessive red tint.

We configured the settings as follows, referring to the webpage below.

https://dev.ti.com/tirex/explore/node?node=A__Afvqyi8mUm05676JZJ-UlQ__AM62-ACADEMY__uiYMDcq__LATEST 

# media-ctl --set-v4l2 "'ov5640 4-003c':0 [fmt:UYVY8_1X16/1024x768@1/30 field:none]"

# media-ctl --set-v4l2 "'cdns_csi2rx.30101000.csi-bridge':0 [fmt:UYVY8_1X16/1024x768 field:none]"

# media-ctl --set-v4l2 "'30102000.ticsi2rx':0 [fmt:UYVY8_1X16/1024x768 field:none]"

After configuring the settings as above, we captured a single image from the camera using the following command.

gst-launch-1.0 v4l2src num-buffers=1 ! videoconvert ! 'video/x-raw,width=1024,height=768,format=UYVY' ! filesink location=image.raw

The image below was captured using the command mentioned above.

As you can see in the image, there is a strong red tint overall, and around the light source, the colors appear to be saturated.
We used the Digilent Pcam 5C camera as specified on the webpage below.

https://dev.ti.com/tirex/explore/node?node=A__Afvqyi8mUm05676JZJ-UlQ__AM62-ACADEMY__uiYMDcq__LATEST

This issue is less noticeable when the camera is not pointed directly at a light source.
We tested this using the SDK images below, and the symptoms were the same in both cases.

Processor SDK LINUX AM62x Yocto - SD card image

Processor SDK LINUX AM62x Debian Trixie - SD card image

  • Hello,

    We've tested this camera on AM62x EVM with SDK 10.1, and the image looked good on the display. Below is the test log:

    media-ctl -V '"ov5640 4-003c":0 [fmt:UYVY8_1X16/1280x720@1/30 field:none]'
    media-ctl -V '"cdns_csi2rx.30101000.csi-bridge":0 [fmt:UYVY8_1X16/1280x720 field:none]'
    media-ctl -V '"30102000.ticsi2rx":0 [fmt:UYVY8_1X16/1280x720 field:none]'
    
    root@am62xx-evm:~# gst-launch-1.0 -v v4l2src device=/dev/video0 ! video/x-raw,width=1280,height=720,format=UYVY ! kmssink driver-name=tidss
    Setting pipeline to PAUSED ...
    Pipeline is live and does not need PREROLL ...
    /GstPipeline:pipeline0/GstKMSSink:kmssink0: display-width = 1920
    /GstPipeline:pipeline0/GstKMSSink:kmssink0: display-height = 1080
    Pipeline is PREROLLED ...
    Setting pipeline to PLAYING ...
    /GstPipeline:pipeline0/GstV4l2Src:v4l2src0.GstPad:src: caps = video/x-raw, width=(int)1280, height=(int)720, format=(string)UYVY, framerate=(fraction)120/1, interlace-mode=(string)progressive, colorimetry=(string)bt709
    /GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:src: caps = video/x-raw, width=(int)1280, height=(int)720, format=(string)UYVY, framerate=(fraction)120/1, interlace-mode=(string)progressive, colorimetry=(string)bt709
    /GstPipeline:pipeline0/GstKMSSink:kmssink0.GstPad:sink: caps = video/x-raw, width=(int)1280, height=(int)720, format=(string)UYVY, framerate=(fraction)120/1, interlace-mode=(string)progressive, colorimetry=(string)bt709
    /GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:sink: caps = video/x-raw, width=(int)1280, height=(int)720, format=(string)UYVY, framerate=(fraction)120/1, interlace-mode=(string)progressive, colorimetry=(string)bt709
    New clock: GstSystemClock
    Redistribute latency...
    0:00:09.3 / 99:99:99.
    

    Please try this on your set up and see if the images are displayed properly.

    Regards,

    Jianzhong

  • We tested using the method you recommended with SDK 10.1. However, there is still a strong red tint overall, and the colors around the light source appear to be saturated.
    We used the Digilent Pcam 5C camera. Have you also tested with the Pcam 5C camera? If possible, we would appreciate it if you could share an image taken with the camera pointed at a light bulb.

  • Hi,

    The wrong color must be an issue with the ISP inside the sensor. In our testing, we've found that the Technexion ov5640 module is a more stable camera than Pcam 5C. Please try to use a Technexion one, for example, https://www.mouser.com/ProductDetail/TechNexion/TEVI-OV5640?qs=QNEnbhJQKvZc0NHD%252BbbBGA%3D%3D&srsltid=AfmBOoo-YIJjw-3M16dCwgrcdjNC9aPsYSFDzIMMO3DnZ2zFwl2NCAtP.

    Regards,

    Jianzhong