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.

Linux/TDA2PXEVM: TDA2PXEVM

Part Number: TDA2PXEVM


Tool/software: Linux

Hi,

The usecase is below.

I'd like to check the disparity map working well or not using still images which is right and left view image.

NullSrc(A15) ->  Alg_Census(EVE) -> Alg_DisparityHamDist(EVE) ->  Alg_StereoPostProcess(DSP) -> Display_Disparity(IPU)

The NullSrc is 2 channels, right and left image.

Is this usecase possible?

Regards,

Heechang

  • [HOST] [EVE1 ] 68.616482 s: [ IPC_IN_0 ] Link Statistics,
    [HOST] [EVE1 ] 68.616696 s: ******************************
    [HOST] [EVE1 ] 68.616909 s:
    [HOST] [EVE1 ] 68.617062 s: Elapsed time = 6260 msec
    [HOST] [EVE1 ] 68.617306 s:
    [HOST] [EVE1 ] 68.617489 s: Get Full Buf Cb = 29.87 fps
    [HOST] [EVE1 ] 68.617733 s: Put Empty Buf Cb = 59.74 fps
    [HOST] [EVE1 ] 68.617977 s: Driver/Notify Cb = 29.71 fps
    [HOST] [EVE1 ] 68.618251 s:
    [HOST] [EVE1 ] 68.618404 s: Input Statistics,
    [HOST] [EVE1 ] 68.618587 s:
    [HOST] [EVE1 ] 68.618739 s: CH | In Recv | In Drop | In User Drop | In Process
    [HOST] [EVE1 ] 68.618983 s: | FPS | FPS | FPS | FPS
    [HOST] [EVE1 ] 68.619227 s: --------------------------------------------------
    [HOST] [EVE1 ] 68.619471 s: 0 | 29.87 0. 0 0. 0 29.87
    [HOST] [EVE1 ] 68.619837 s: 1 | 29.87 0. 0 0. 0 29.87
    [HOST] [EVE1 ] 68.620234 s:
    [HOST] [EVE1 ] 68.620386 s: Output Statistics,
    [HOST] [EVE1 ] 68.620569 s:
    [HOST] [EVE1 ] 68.620722 s: CH | Out | Out | Out Drop | Out User Drop
    [HOST] [EVE1 ] 68.620966 s: | ID | FPS | FPS | FPS
    [HOST] [EVE1 ] 68.621210 s: ---------------------------------------------
    [HOST] [EVE1 ] 68.621454 s: 0 | 0 29.87 0. 0 0. 0
    [HOST] [EVE1 ] 68.621759 s: 1 | 0 29.87 0. 0 0. 0
    [HOST] [EVE1 ] 68.622094 s:
    [HOST] [EVE1 ] 68.622277 s: [ IPC_IN_0 ] LATENCY,
    [HOST] [EVE1 ] 68.622460 s: ********************
    [HOST] [EVE1 ] 68.622643 s: Local Link Latency : Avg = 33 us, Min = 30 us, Max = 61 us,
    [HOST] [EVE1 ] 68.623009 s: Source to Link Latency : Avg = 1663 us, Min = 762 us, Max = 54993 us,
    [HOST] [EVE1 ] 68.623406 s:
    [HOST] [EVE1 ] 68.623589 s: [ IPC_IN_0 ] Detailed IPC Latency Statistics [ IPU2 -> EVE1 ] ,
    [HOST] [EVE1 ] 68.623833 s: ***************************************************************
    [HOST] [EVE1 ] 68.624138 s: IPC One-way Buffer Passing Latency (usecs) : Avg = 496, Min = 396, Max = 763
    [HOST] [EVE1 ] 68.624595 s: IPC One-way Notify Interrupt Latency (usecs) : Avg = 337, Min = 244, Max = 580
    [HOST] [EVE1 ] 68.625632 s:
    [HOST] [EVE1 ] 68.625785 s: [ ALG_CENSUS ] Link Statistics,
    [HOST] [EVE1 ] 68.626029 s: ******************************
    [HOST] [EVE1 ] 68.626364 s:
    [HOST] [EVE1 ] 68.626517 s: Elapsed time = 6269 msec
    [HOST] [EVE1 ] 68.626791 s:
    [HOST] [EVE1 ] 68.626944 s: New data Recv = 29.66 fps
    [HOST] [EVE1 ] 68.627218 s:
    [HOST] [EVE1 ] 68.627371 s: Input Statistics,
    [HOST] [EVE1 ] 68.627554 s:
    [HOST] [EVE1 ] 68.627737 s: CH | In Recv | In Drop | In User Drop | In Process
    [HOST] [EVE1 ] 68.627981 s: | FPS | FPS | FPS | FPS
    [HOST] [EVE1 ] 68.628225 s: --------------------------------------------------
    [HOST] [EVE1 ] 68.628499 s: 0 | 59.65 0. 0 0. 0 59.65
    [HOST] [EVE1 ] 68.628865 s: 1 | 59.65 0. 0 0. 0 59.65


    The log is shown that the fps of the IPC_IN is about 30 but the fps of the ALG_CENSUS is about 60.
    What is problem?

    Regards,
    Heechang
  • [HOST] [EVE1 ] 164.756755 s: [ ALG_CENSUS ] LATENCY,
    [HOST] [EVE1 ] 164.756969 s: ********************
    [HOST] [EVE1 ] 164.757182 s: Local Link Latency : Avg = 3518 us, Min = 3477 us, Max = 3691 us,
    [HOST] [EVE1 ] 164.757609 s: Source to Link Latency : Avg = 7311 us, Min = 4544 us, Max = 62923 us,
    [HOST] [EVE1 ] 164.758006 s:
    [HOST] [EVE1 ] 164.759195 s:
    [HOST] [EVE1 ] 164.759379 s: [ ALG_DISPARITY_HAMDIST ] Link Statistics,
    [HOST] [EVE1 ] 164.759623 s: ******************************
    [HOST] [EVE1 ] 164.759836 s:
    [HOST] [EVE1 ] 164.759989 s: Elapsed time = 5994 msec
    [HOST] [EVE1 ] 164.760263 s:
    [HOST] [EVE1 ] 164.760416 s: New data Recv = 29.69 fps
    [HOST] [EVE1 ] 164.760690 s:
    [HOST] [EVE1 ] 164.760873 s: Input Statistics,
    [HOST] [EVE1 ] 164.761056 s:
    [HOST] [EVE1 ] 164.761239 s: CH | In Recv | In Drop | In User Drop | In Process
    [HOST] [EVE1 ] 164.761483 s: | FPS | FPS | FPS | FPS
    [HOST] [EVE1 ] 164.761758 s: --------------------------------------------------
    [HOST] [EVE1 ] 164.762002 s: 0 | 59.72 58.72 0. 0 1. 0
    [HOST] [EVE1 ] 164.762398 s:
    [HOST] [EVE1 ] 164.762581 s: Output Statistics,
    [HOST] [EVE1 ] 164.762795 s:
    [HOST] [EVE1 ] 164.762947 s: CH | Out | Out | Out Drop | Out User Drop
    [HOST] [EVE1 ] 164.763283 s: | ID | FPS | FPS | FPS
    [HOST] [EVE1 ] 164.763527 s: ---------------------------------------------
    [HOST] [EVE1 ] 164.763893 s: 0 | 0 1. 0 58.72 0. 0

    All drop in ALG_DISPARITY_HAMDIST

    Regards,
    Heechang
  • Hi,

    The usecase is not possible.

    As discussed in your earlier post e2e.ti.com/.../719317
    Alg_census takes a System_VideoFrameCompositeBuffer which contain multiple System_VideoFrameBuffer.

    Alg_census will multiply the no of buffer received with the num of channels of prev link.
    So in your case its showing 30*2=60.

    In your other post prev link has 2 channels but it gives output with only 1 channel.So it shows 30 to 2 channels in Alg_cecsus.

    Regards,
    Anuj
  • Hi Anuj,

    If this usecase is not possible, then, how can I check the stereo disparity map algorithm with 2 channels input images?

    Regards,
    Heechang
  • Hi Anuj,

    In censusLink_algPlugin, " _TEST_STATIC_INPUT " can be defined.
    This is for still image test?
    I defined _TEST_STATIC_INPUT but the symbol error is shown.

    undefined first referenced
    symbol in file
    --------- ----------------
    gCensusTestLeftInput /home/heechang.kim/PROCESSOR_SDK_VISION_03_04_00_00/vision_sdk/binaries/apps/tda2px_evm_linux_all/lib/tda2px-evm/arp32/release/app_alg_plugins.aearp32F<censusLink_algPlugin.oearp32F>
    gCensusTestRightInput /home/heechang.kim/PROCESSOR_SDK_VISION_03_04_00_00/vision_sdk/binaries/apps/tda2px_evm_linux_all/lib/tda2px-evm/arp32/release/app_alg_plugins.aearp32F<censusLink_algPlugin.oearp32F>

    error: unresolved symbols remain
    error: errors encountered during linking;
    "/home/heechang.kim/PROCESSOR_SDK_VISION_03_04_00_00/vision_sdk/binaries/app
    s/tda2px_evm_linux_all/vision_sdk/bin/tda2px-evm/vision_sdk_arp32_1_release.
    xearp32F" not built
    /home/heechang.kim/PROCESSOR_SDK_VISION_03_04_00_00/vision_sdk/build/rtos/makerules/rules_arp32.mk:298: recipe for target '/home/heechang.kim/PROCESSOR_SDK_VISION_03_04_00_00/vision_sdk/binaries/apps/tda2px_evm_linux_all/vision_sdk/bin/tda2px-evm/vision_sdk_arp32_1_release.xearp32F' failed
    make[7]: *** [/home/heechang.kim/PROCESSOR_SDK_VISION_03_04_00_00/vision_sdk/binaries/apps/tda2px_evm_linux_all/vision_sdk/bin/tda2px-evm/vision_sdk_arp32_1_release.xearp32F] Error 1
    /home/heechang.kim/PROCESSOR_SDK_VISION_03_04_00_00/vision_sdk/build/rtos/makerules/common.mk:271: recipe for target 'arp32_1' failed


    This "_TEST_STATIC_INPUT" cannot be used?

    Regards,
    Heechang
  • Hi,

    I removed the "extern" then build is OK.
    But, if I define "_TEST_STATIC_INPUT", the algorithm operation does not work.
    _TEST_STATIC_INPUT is working well?

    Regards,
    Heechang
  • [HOST] [EVE1 ] 53.059964 s: [ ALG_CENSUS ] Link Statistics,
    [HOST] [EVE1 ] 53.060178 s: ******************************
    [HOST] [EVE1 ] 53.060391 s:
    [HOST] [EVE1 ] 53.060544 s: Elapsed time = 12833 msec
    [HOST] [EVE1 ] 53.060757 s:
    [HOST] [EVE1 ] 53.060910 s: New data Recv = 4.83 fps
    [HOST] [EVE1 ] 53.061154 s:
    [HOST] [EVE1 ] 53.061306 s: Input Statistics,
    [HOST] [EVE1 ] 53.061459 s:
    [HOST] [EVE1 ] 53.061611 s: CH | In Recv | In Drop | In User Drop | In Process
    [HOST] [EVE1 ] 53.061855 s: | FPS | FPS | FPS | FPS
    [HOST] [EVE1 ] 53.062069 s: --------------------------------------------------
    [HOST] [EVE1 ] 53.062435 s: 0 | 5.22 0. 0 0. 0 5.22
    [HOST] [EVE1 ] 53.062770 s: 1 | 5.22 0. 0 0. 0 5.22
    [HOST] [EVE1 ] 53.063197 s:
    [HOST] [EVE1 ] 53.063350 s: Output Statistics,
    [HOST] [EVE1 ] 53.063533 s:
    [HOST] [EVE1 ] 53.063655 s: CH | Out | Out | Out Drop | Out User Drop
    [HOST] [EVE1 ] 53.063899 s: | ID | FPS | FPS | FPS
    [HOST] [EVE1 ] 53.064112 s: ---------------------------------------------
    [HOST] [EVE1 ] 53.064356 s: 0 | 0 5.22 0. 0 0. 0
    [HOST] [EVE1 ] 53.064631 s: 1 | 0 5.22 0. 0 0. 0
    [HOST] [EVE1 ] 53.064966 s:
    [HOST] [EVE1 ] 53.065119 s: [ ALG_CENSUS ] LATENCY,
    [HOST] [EVE1 ] 53.065302 s: ********************
    [HOST] [EVE1 ] 53.065485 s: Local Link Latency : Avg = 3921 us, Min = 3843 us, Max = 3996 us,
    [HOST] [EVE1 ] 53.065881 s: Source to Link Latency : Avg = 368652 us, Min = 203989 us, Max = 405692 us,
    [HOST] [EVE1 ] 53.066308 s:
    [HOST] [EVE1 ] 53.067406 s:
    [HOST] [EVE1 ] 53.067559 s: [ ALG_DISPARITY_HAMDIST ] Link Statistics,
    [HOST] [EVE1 ] 53.067803 s: ******************************
    [HOST] [EVE1 ] 53.067986 s:
    [HOST] [EVE1 ] 53.068138 s: Elapsed time = 12833 msec
    [HOST] [EVE1 ] 53.068382 s:
    [HOST] [EVE1 ] 53.068535 s: New data Recv = 4.83 fps
    [HOST] [EVE1 ] 53.068748 s:
    [HOST] [EVE1 ] 53.068901 s: Input Statistics,
    [HOST] [EVE1 ] 53.069084 s:
    [HOST] [EVE1 ] 53.069206 s: CH | In Recv | In Drop | In User Drop | In Process
    [HOST] [EVE1 ] 53.069450 s: | FPS | FPS | FPS | FPS
    [HOST] [EVE1 ] 53.069694 s: --------------------------------------------------
    [HOST] [EVE1 ] 53.069907 s: 0 | 5.22 4.75 0. 0 0.46
    [HOST] [EVE1 ] 53.070273 s:
    [HOST] [EVE1 ] 53.070426 s: Output Statistics,
    [HOST] [EVE1 ] 53.070609 s:
    [HOST] [EVE1 ] 53.070761 s: CH | Out | Out | Out Drop | Out User Drop
    [HOST] [EVE1 ] 53.071005 s: | ID | FPS | FPS | FPS
    [HOST] [EVE1 ] 53.071219 s: ---------------------------------------------
    [HOST] [EVE1 ] 53.071463 s: 0 | 0 0.46 4.75 0. 0
    [HOST] [EVE1 ] 53.071829 s:
    [HOST] [EVE1 ] 53.071951 s: [ ALG_DISPARITY_HAMDIST ] LATENCY,
    [HOST] [EVE1 ] 53.072164 s: ********************
    [HOST] [EVE1 ] 53.072378 s: Local Link Latency : Avg = 31868 us, Min = 31782 us, Max = 31934 us,
    [HOST] [EVE1 ] 53.072805 s: Source to Link Latency : Avg = 286301 us, Min = 240438 us, Max = 321143 us,
  • Hi,

    You can add a sync link after nullSrc then try.

    Regards,
    Anuj
  • Hi,

    Yes, I added the sync link and resolved this issue.

    Regards,
    Heechang