• TI Thinks Resolved

AM3352: Camera capture issue

Prodigy 110 points

Replies: 18

Views: 178

Part Number: AM3352

I used VGA(640x480) camera in medical analysis device.

As request of buyer, we try to change camera from VGA to UXGA.

I have some problem in this changing.

As belowed picture, my device occurs distortion picture intermittently

 

If I analyze it a little bit, picture is not broken, only assemle as scattering jigsaw puzzle

 

Thank you for your guide and help.

 

operating system : LINUX

  • What Linux version are you using? How is the camera connected to the AM335x? 

     

    Best Regards
    Biser
  • In reply to Biser Gatchev-XID:

    Our linux version: Embedded linux kernel 3.2

    Camera : new design camera using the SN9C227 of Sonix.

    Best regards

    david.

  • In reply to JONG HUN LEE:

    Hi David,

    Your first post doesn't have pictures. Please attach them again.

    What is the format of the camera video output? YUV raw or compressed? What is the frame rate in your application?

    Kernel 3.2 is no longer supported.

  • In reply to JONG HUN LEE:

    And is this a USB camera?

  • In reply to Bin Liu:

    Dear Bin.

    My camera is USB camera.

    The broken image is as below.

    Left picture: Normal , Right picture: Distortion half of picture.

    The picture format:  YUV raw

    Best regards,

    David.

  • In reply to JONG HUN LEE:

  • In reply to JONG HUN LEE:

    Plus, Would you give me linux kernel version available in AM3352?

    Do you have SN9C227 driver file for Linux?

    If you have, please send them to me as soon as possible.

    Thank you.

    David.

  • In reply to JONG HUN LEE:

    Hi David,

    What is the frame rate? USB can only handle certain amount of throughput. UXGA resolution is 1600x1200, which is about  3.8MBytes per frame in YUV422. Then I don't think you can use frame rate higher than 4 or 5 fps.

    You can download the latest Processor SDK Linux for AM3352 from the link below.

    I am not sure if this Linux has a driver for SN9C227. This Processor SDK Linux kernel is based on the mainline kernel v4.19. So if mainline kernel v4.19 has a SN9C227 driver, then the Processor SDK Linux kernel has it; otherwise, there is no SN9C227 support.

  • In reply to Bin Liu:

    Thank you for your comment.

    We tried to change frame rate from 15 to 1.

    In case of 1 frame rate, it had picture distortion issue.

    Any other possibility to occur this problem?

    Best regards.

    David.

  • In reply to JONG HUN LEE:

    Hi David,

    Is it possible to capture the yuv frame into a file and attach it here? I'd like to check what exact the distortion looks like. The screenshot you provided in your previous post doesn't show the distortion clearly.

    Please describe how the yuv frame is captured, what program is used, and what the program does to capture from the camera. I am trying to understand if possible the distortion is generated by the program, if not originally happened from the camera.