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.

TDA4VMXEVM: Auto Valet Parking Application 2 have multiple input data channels

Part Number: TDA4VMXEVM

Hi All,

 

I following Auto Valet Parking Application 2 guide. software-dl.ti.com/.../group_apps_dl_demos_app_tidl_avp2.html

I can success to run the demo under x86 PC.

 

app_avp2.cfg is configuration file for the demo.

There is "input_file_path" item in the app_avp2.cfg.

Following is my setup about "input_file_path".

input_file_path   /ti/j7presi/workarea/psdk_rtos_auto_ti_data_set_06_02_00/test_data/psdkra/app_tidl_avp

 

I can view the demo input files by ffplay

For example: ffplay -s 1280x720 -pix_fmt nv12 0000000100.yuv

Q1: 

But "input_file_path" directory only have left camera yuv files when I view by ffplay.

I can't find front and right camera input data under the "input_file_path" directory.

Where did the input data for the front and right cameras go?

 

Q2:

Now I want to change the input data that captured from my cameras.

I also have left, front and right cameras.

How do I place my left, front and right cameras input data?

 

Best regards

 

-Jason  

  • Hi Jason,

    The input to AVP demos are prepared as below,

    1. Inputs are 10 digit numbered.

    2. Data is stored back-to-back, front, right, left.

    3. Each frame is stored in NV12 format (Y plane, CbCr interleave plane)


    Regards,
    Shyam

  • Hi Shyam,

     

    Thank you about your reply.

     

    Following are my test steps that follow your suggestion.

    <<JPG to YUV>

    My input picture original format is JPG. I convert JPG to YUV. I use following commands

    $ ffmpeg -i front0000.jpg -s 608x384 -pix_fmt nv12 front0000.yuv

    $ ffmpeg -i left0000.jpg -s 608x384 -pix_fmt nv12 left0000.yuv

    $ ffmpeg -i right0000.jpg -s 608x384 -pix_fmt nv12 right0000.yuv

     

    <<3 YUV store to one YUV>>

    I use following command.

    $ cat front0000.yuv left0000.yuv right0000.yuv > 0000000000.yuv

     

    I use following command to verify.

    $ ffplay -s 608x384 -framerate 1 -pix_fmt nv12 0000000000.yuv

    It display front, left and right pictures ok.

     

    << change app_avp2.cfg>>

    Because my picture is 608x384. I change some parameters to

    # input size (width height)

    in_size   608 384

     

    # input size given to DL network (width height)

    dl_size 608 384

    << execute vx_app_tidl_avp2>>

    $ ./vx_app_tidl_avp2 --cfg ${PSDKRA_PATH}/vision_apps/apps/dl_demos/app_tidl_avp2/config/app_avp2.cfg

    0.0s: VX_ZONE_INIT:Enabled

    0.135s: VX_ZONE_ERROR:Enabled

    0.327s: VX_ZONE_WARNING:Enabled

    Computing checksum at 0x00007F2DB4CD4A90, size = 317696

    Computing checksum at 0x00007F2DB47E4E50, size = 373760

    0.7672s: VX_ZONE_ERROR:[tivxAddKernelImgPreProcValidate:157] Input Image size is not as per expecation 368640, 608,384,2,1

    0.7785s: VX_ZONE_ERROR:[ownGraphNodeKernelValidate:531] node kernel validate failed at index 1

    0.7901s: VX_ZONE_ERROR:[vxVerifyGraph:1912] Node kernel Validate failed

    0.8052s: VX_ZONE_ERROR:[vxVerifyGraph:2064] Graph verify failed

    0.8125s: VX_ZONE_ERROR:[tivxNodeSendCommand:246] vxVerifyGraph should be called before tivxNodeSendCommand can be called on a node in the same graph

    MSC: Node send command failed!

    Processing file /home/jason/middle-bus-video/yuv/multi_frame/0000000000.yuv ... 0.109683s: VX_ZONE_ERROR:[tivxAddKernelImgPreProcValidate:157] Input Image size is not as per expecation 368640, 608,384,2,1

    0.109845s: VX_ZONE_ERROR:[ownGraphNodeKernelValidate:531] node kernel validate failed at index 1

    0.109901s: VX_ZONE_ERROR:[vxVerifyGraph:1912] Node kernel Validate failed

    0.110048s: VX_ZONE_ERROR:[vxVerifyGraph:2064] Graph verify failed

    0.110219s: VX_ZONE_ERROR:[ownGraphScheduleGraphWrapper:746] ownGraphScheduleGraphWrapper: graph is not in a state required to be scheduled

    0.110278s: VX_ZONE_ERROR:[vxProcessGraph:681] vxProcessGraph: schedule graph failed

    0.110379s: VX_ZONE_ERROR:[vxProcessGraph:686] vxProcessGraph: wait graph failed

    Done!

    app_avp: Iteration 0 of 1 ... Done.

     

     

    Question 1:

    It have error when I execute vx_app_tidl_avp2.

    Could you give suggestion to fix the error?

     

    Best regards

     

    -Jason

  • Jason,

    The problem is stated here,

    0.7672s: VX_ZONE_ERROR:[tivxAddKernelImgPreProcValidate:157] Input Image size is not as per expecation 368640, 608,384,2,1

    You seem to be using PSDKRA 6.2 can you confirm? This bug is fixed in the latest PSDKRA 7.0, can you please migrate to the latest SDK?

    Regards,
    Shyam

  • Hi Shyam,

    Yes,  I use PSDKRA 6.2 now.

    I will report the new test result after I update to PSDKRA 7.0.

    Thank you about your help.

    -Jason

  • Hi Shyam,

    I am updating to PSDKRA 7.0.
    I used resize input frame under PSDKRA 6.2.
    Input frame resolution changed from 608x384 to 1280x720.
    It fixed my problem after resize input frame.

    Best regards

    -Jason