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: How to match other cameras?

Part Number: TDA4VM

Tool/software:

Hi,

My SDK is ti-processor-sdk-rtos-j721e-evm-08_06_00_12. My SDK has successfully run on EVM. I want to run demo of image classification according to Camera based Image Classification Application. But my camera is not D3's IMX390 2MP sensor. I don't know how to modify which parameters to run the demo with my own sensor. Can you provide assistance? Can you provide a User Guide?

thanks,

maiunlei

  • Hi,

    Which camera module are you using ? Is it one of the supported camera module? Otherwise you would have to add the support for this new camera module in the SDK. You could use below link to add new camera module. 

    https://software-dl.ti.com/jacinto7/esd/processor-sdk-rtos-jacinto7/latest/exports/docs/psdk_rtos/docs/user_guide/developer_notes_image_sensor.html

    Regards,

    Brijesh

  • Hi  Brijesh,

    My camera module is JH-IMX390-GW5200-MAX9295. But it is 8MP sensor.  I am able to successfully run  "./run_app_single_cam.sh " on EVM and display the image on the monitor by DP port. 

    But When I run "./run_app_tidl_cam.sh" , an error occurs.

    root@j7-evm:/opt/vision_apps# ./run_app_tidl_cam.sh
    APP: Init ... !!!
    MEM: Init ... !!!
    MEM: Initialized DMA HEAP (fd=4) !!!
    MEM: Init ... Done !!!
    IPC: Init ... !!!
    IPC: Init ... Done !!!
    REMOTE_SERVICE: Init ... !!!
    REMOTE_SERVICE: Init ... Done !!!
    2621.008069 s: GTC Frequency = 200 MHz
    APP: Init ... Done !!!
    2621.008136 s: VX_ZONE_INIT:Enabled
    2621.008143 s: VX_ZONE_ERROR:Enabled
    2621.008149 s: VX_ZONE_WARNING:Enabled
    2621.008802 s: VX_ZONE_INIT:[tivxInitLocal:130] Initialization Done !!!
    2621.009999 s: VX_ZONE_INIT:[tivxHostInitLocal:93] Initialization Done for HOST !!!
    g_num_top_results 5
    2621.012949 s: ISS: Enumerating sensors ... !!!
    [MCU2_0] 2621.013252 s: max96724_cfgScript:445, max96724 script Des-0 config start......
    [MCU2_0] 2621.577733 s: max96724_cfgScript:473, max96724 script Des-0 config done......
    [MCU2_0] 2621.577827 s: max96724_cfgScript:445, max96724 script Des-1 config start......
    2622.142972 s: ISS: Enumerating sensors ... found 0 : IMX390-UB953_D3
    2622.143002 s: ISS: Enumerating sensors ... found 1 : AR0233-UB953_MARS
    2622.143023 s: ISS: Enumerating sensors ... found 2 : AR0820-UB953_LI
    2622.143028 s: ISS: Enumerating sensors ... found 3 : UB9xxx_RAW12_TESTPATTERN
    2622.143034 s: ISS: Enumerating sensors ... found 4 : UB96x_UYVY_TESTPATTERN
    2622.143039 s: ISS: Enumerating sensors ... found 5 : GW_AR0233_UYVY
    2622.143044 s: ISS: Enumerating sensors ... found 6 : SG_IMX390_GW5200_UB953
    2622.143049 s: ISS: Enumerating sensors ... found 7 : JH-IMX390-GW5200-MAX9295
    2622.143054 s: ISS: Enumerating sensors ... found 8 : SG_OX08B_GW5300_MAX9295A
    9 sensor(s) found
    Supported sensor list:
    a : IMX390-UB953_D3
    b : AR0233-UB953_MARS
    c : AR0820-UB953_LI
    d : UB9xxx_RAW12_TESTPATTERN
    e : UB96x_UYVY_TESTPATTERN
    f : GW_AR0233_UYVY
    g : SG_IMX390_GW5200_UB953
    h : JH-IMX390-GW5200-MAX9295
    i : SG_OX08B_GW5300_MAX9295A
    Select a sensor above or press '0' to autodetect the sensor
    [MCU2_0] 2622.142688 s: max96724_cfgScript:473, max96724 script Des-1 config done......
    h
    Sensor selected : JH-IMX390-GW5200-MAX9295
    Querying JH-IMX390-GW5200-MAX9295
    2625.260602 s: ISS: Querying sensor [JH-IMX390-GW5200-MAX9295] ... !!!
    2625.260964 s: ISS: Querying sensor [JH-IMX390-GW5200-MAX9295] ... Done !!!
    LDC Selection Yes(1)/No(0)
    Invalid selection
    . Try again
    LDC Selection Yes(1)/No(0)

    Invalid selection
    . Try again
    LDC Selection Yes(1)/No(0)
    0
    Max number of cameras supported by sensor JH-IMX390-GW5200-MAX9295 = 8
    Please enter number of cameras to be enabled
    0
    Invalid selection 0. Try again
    Max number of cameras supported by sensor JH-IMX390-GW5200-MAX9295 = 8
    Please enter number of cameras to be enabled
    1
    Sensor width = 1920
    Sensor height = 1080
    2640.237775 s: ISS: Initializing sensor [JH-IMX390-GW5200-MAX9295], doing IM_SENSOR_CMD_PWRON ... !!!
    2640.238144 s: ISS: Initializing sensor [JH-IMX390-GW5200-MAX9295], doing IM_SENSOR_CMD_CONFIG ... !!!
    [MCU2_0] 2640.239449 s: max9295 script config start, slaveAddr = 6-0x41
    2640.249936 s: ISS: Initializing sensor [JH-IMX390-GW5200-MAX9295] ... Done !!!
    [CAPTURE-MODULE] Create YUV image object!
    Invalid DCC size for VISS
    Scaler output1 width = 0
    Scaler output1 height = 0
    Scaler output2 width = 0
    Scaler output2 height = 0
    [MCU2_0] 2640.249730 s: max9295 script config done, slaveAddr = 6-0x41
    2640.293656 s: VX_ZONE_ERROR:[ownReleaseReferenceInt:294] Invalid reference
    2640.293681 s: VX_ZONE_ERROR:[ownReleaseReferenceInt:294] Invalid reference
    2640.293691 s: ISS: De-initializing sensor [JH-IMX390-GW5200-MAX9295] ... !!!
    2640.293997 s: ISS: De-initializing sensor [JH-IMX390-GW5200-MAX9295] ... Done !!!
    2640.294130 s: VX_ZONE_ERROR:[ownReleaseReferenceInt:294] Invalid reference
    2640.294139 s: VX_ZONE_ERROR:[ownReleaseReferenceInt:294] Invalid reference
    2640.294146 s: VX_ZONE_ERROR:[ownReleaseReferenceInt:294] Invalid reference
    2640.294152 s: VX_ZONE_ERROR:[ownReleaseReferenceInt:294] Invalid reference
    2640.294158 s: VX_ZONE_ERROR:[ownReleaseReferenceInt:294] Invalid reference
    2640.294165 s: VX_ZONE_ERROR:[ownReleaseReferenceInt:294] Invalid reference
    2640.294171 s: VX_ZONE_ERROR:[ownReleaseReferenceInt:294] Invalid reference
    2640.294176 s: VX_ZONE_ERROR:[ownReleaseReferenceInt:294] Invalid reference
    2640.294181 s: VX_ZONE_ERROR:[ownReleaseReferenceInt:294] Invalid reference
    2640.294187 s: VX_ZONE_ERROR:[ownReleaseReferenceInt:294] Invalid reference
    2640.294194 s: VX_ZONE_ERROR:[ownReleaseReferenceInt:294] Invalid reference
    2640.294201 s: VX_ZONE_ERROR:[ownReleaseReferenceInt:294] Invalid reference
    2640.294209 s: VX_ZONE_ERROR:[ownReleaseReferenceInt:294] Invalid reference
    2640.294214 s: VX_ZONE_ERROR:[ownReleaseReferenceInt:294] Invalid reference
    2640.294220 s: VX_ZONE_ERROR:[ownReleaseReferenceInt:294] Invalid reference
    2640.294225 s: VX_ZONE_ERROR:[ownReleaseReferenceInt:294] Invalid reference
    2640.294231 s: VX_ZONE_ERROR:[ownReleaseReferenceInt:294] Invalid reference
    2640.294236 s: VX_ZONE_ERROR:[ownReleaseReferenceInt:294] Invalid reference
    2640.294242 s: VX_ZONE_ERROR:[ownReleaseReferenceInt:294] Invalid reference
    2640.294248 s: VX_ZONE_ERROR:[ownReleaseReferenceInt:294] Invalid reference
    2640.294253 s: VX_ZONE_ERROR:[ownReleaseReferenceInt:294] Invalid reference
    2640.294259 s: VX_ZONE_ERROR:[ownReleaseReferenceInt:294] Invalid reference
    2640.294264 s: VX_ZONE_ERROR:[ownReleaseReferenceInt:294] Invalid reference
    2640.294270 s: VX_ZONE_ERROR:[ownReleaseReferenceInt:294] Invalid reference
    2640.294275 s: VX_ZONE_ERROR:[ownReleaseReferenceInt:294] Invalid reference
    2640.294280 s: VX_ZONE_ERROR:[ownReleaseReferenceInt:294] Invalid reference
    2640.294287 s: VX_ZONE_ERROR:[ownReleaseReferenceInt:294] Invalid reference
    2640.294292 s: VX_ZONE_ERROR:[ownReleaseReferenceInt:294] Invalid reference
    2640.294298 s: VX_ZONE_ERROR:[ownReleaseReferenceInt:294] Invalid reference
    2640.294303 s: VX_ZONE_ERROR:[ownReleaseReferenceInt:294] Invalid reference
    2640.294308 s: VX_ZONE_ERROR:[ownReleaseReferenceInt:294] Invalid reference
    2640.294316 s: VX_ZONE_ERROR:[ownReleaseReferenceInt:294] Invalid reference
    2640.806505 s: VX_ZONE_INIT:[tivxHostDeInitLocal:107] De-Initialization Done for HOST !!!
    2640.810890 s: VX_ZONE_INIT:[tivxDeInitLocal:193] De-Initialization Done !!!
    APP: Deinit ... !!!
    REMOTE_SERVICE: Deinit ... !!!
    REMOTE_SERVICE: Deinit ... Done !!!
    IPC: Deinit ... !!!
    IPC: DeInit ... Done !!!
    MEM: Deinit ... !!!
    DDR_SHARED_MEM: Alloc's: 4 alloc's of 4147552 bytes
    DDR_SHARED_MEM: Free's : 4 free's of 4147552 bytes
    DDR_SHARED_MEM: Open's : 0 allocs of 0 bytes
    DDR_SHARED_MEM: Total size: 536870912 bytes
    MEM: Deinit ... Done !!!
    APP: Deinit ... Done !!!

    I don't know where the problem lies. It is possible that this demo does not support 8MP sensor. How to modify this demo to support 8MP sensors?

    Thank you,

    maiunlei

  • Hi maiunlei,

    I really doubt we have validated 8MP camera for this usecase. Can you try reducing size to 2MP and then check this demo? 

    Regards,

    Brijesh

  • Hi,

    How can i reduce size to 2MP ? Do i need to replace the camera?

    Regards,

    maiunlei

  • You could probably use MSC to downscale from 8MP to 2MP.