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:DMAPAC 的立体视差应用不支持为1280 * 720分辨率设置“arvel差_max”最大值

Guru**** 646230 points
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1179270/tda4vm-stereo-disparity-application-of-dmapac-cannot-support-setting-the-disparity_max-maximum-value-for-1280-720-resolution

器件型号:TDA4VM

您好!  我可以根据   网站 内容通过默认配置文件和数据集成功运行 DMAPAC 的立体视差应用。 ,我将该"ar差_max"值设置为2 μ s、则 会导致以下误差:

493157.467914 s:  VX_ZONE_ERROR:[ownContextSendCmd:814] Command ack message returned failure cmd_status: -1
493157.467933 s:  VX_ZONE_ERROR:[ownContextSendCmd:850] tivxEventWait() failed.
493157.467962 s:  VX_ZONE_ERROR:[ownNodeKernelInit:538] Target kernel, TIVX_CMD_NODE_CREATE failed for node Stereo_Processing
493157.467981 s:  VX_ZONE_ERROR:[ownNodeKernelInit:539] Please be sure the target callbacks have been registered for this core
493157.467999 s:  VX_ZONE_ERROR:[ownNodeKernelInit:540] If the target callbacks have been registered, please ensure no errors are occurring within the create callback of this kernel
493157.468018 s:  VX_ZONE_ERROR:[ownGraphNodeKernelInit:583] kernel init for node 0, kernel com.ti.hwa.dmpac_sde ... failed !!!
493157.468041 s:  VX_ZONE_ERROR:[vxVerifyGraph:2055] Node kernel init failed
493157.468060 s:  VX_ZONE_ERROR:[vxVerifyGraph:2109] Graph verify failed

"config/app.cfg "文件的内容如下:

# NOTE: You have to define the APP_STEREO_DATA_PATH environment variable,as location to stereo_test_data.
# For example:
# export APP_STEREO_DATA_PATH=<path-to-test-data>/test_data/psdkra/stereo_test_data/
# where,"<path-to-test-data>" refers to the parent directory to which you extracted 'psdk_rtos_ti_data_set_xx_xx_xx.tar.gz'
# You can even add the above line to .bashrc

# location of input image (*.bmp) files
# input image path for left camera images is construced as ${APP_STEREO_DATA_PATH}/<left_img_file_path>
# input image path for right camera images is construced as ${APP_STEREO_DATA_PATH}/<right_img_file_path>
left_img_file_path Stereo0001/left
right_img_file_path Stereo0001/right

# location for output *.bmp files
# output image path is construced as ${APP_STEREO_DATA_PATH}/<output_file_path>
output_file_path Stereo0001/output

# filename prefix, output file name is constructed as
# <filename prefix>_disparity_ddddd.bmp, <filename prefix>_conf_ddddd.bmp
# e.g. tisde_disparity_00000.bmp, tisde_conf_00000.bmp
output_file_prefix out

# first file number to pick as input
start_seq 1

# last file number to pick as input
end_seq 119

# input data width in pixels
width 1280

# input data height in lines
height 720

# confidence value for visualization <0 ~ 7>
# the disparity whose confidence is < vis_confidence will be removed
visualize_confidence 1

# <0 or 1>, disable/enable histogram output
hist_output 0

# <0 or 1>, disable/enable .sde output
sde_output  0

# enable display mode (set to 0 for PC)
display_option    0

# number of iterations (This can be set to more than one to observe PC execution time, if desired)
num_iterations    1

# enable interactive mode (set to 0 for PC)
is_interactive    0

# SDE params

# <0 or 1>, disable/enable post-processing 5x5 median filter
median_filter_enable 1

# <0 or 1>, disable/enable reduced range search on pixels near right margin
reduced_range_search_enable 0

# minimum disparity (0 -> 0 pixels, 1 -> -3 pixels)
disparity_min 0

# maximum disparity (0 -> 63 pixels, 1 -> 127 pixels, 2 -> 191 pixels)
disparity_max 2

# <0 - 255>, left-right consistency check threshold in pixels
threshold_left_right 3

# <0 or 1>, disable/enable texture based filtering
texture_filter_enable 0

# <0 - 255>, scaled threshold for texture based filtering
threshold_texture 100

# <0 - 127>, Optimization penalty constant for smalle disparity change
aggregation_penalty_p1 32

# <0 - 192>, Optimization penalty constant for large disparity change
aggregation_penalty_p2 192

# <0 - 127> confidence_score_map[7] array configuation
# To map the confidence values between 0 ~ 127 to 0 ~ 7,
# We need to specifiy 7 values in the increasing order as follows:
# confidence_score_map_0, confidence_score_map_1, ..., confidence_score_map_5, confidence_score_map_6.
#
# confidence values, c will be map to 0 ~ 7 as follows:
#                          c <= confidence_score_map_0 -> 0
# confidence_score_map_0 < c <= confidence_score_map_1 -> 1
# confidence_score_map_1 < c <= confidence_score_map_2 -> 2
# confidence_score_map_2 < c <= confidence_score_map_3 -> 3
# confidence_score_map_3 < c <= confidence_score_map_4 -> 4
# confidence_score_map_4 < c <= confidence_score_map_5 -> 5
# confidence_score_map_5 < c <= confidence_score_map_6 -> 6
# confidence_score_map_6 < c                           -> 7

# User can specify confidence_score_map_0 ~ confidence_score_map_6
# Should make sure that
# confidence_score_map_0 >= 0
# confidence_score_map_6 <= 127
confidence_score_map_0 0
confidence_score_map_1 1
confidence_score_map_2 2
confidence_score_map_3 3
confidence_score_map_4 5
confidence_score_map_5 9
confidence_score_map_6 14

期待您的回复! 谢谢!

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好!

    MCU2_0应该再打印一些错误、这会显示确切的错误、因此您可以通过运行此示例共享完整日志吗?  

    此致、

    Brijesh

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    完整日志:

    root@tda4vm-sk:/opt/chipengke# ./app_stereo --cfg /opt/chipengke/app.cfg
    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 !!!
    1631666.396492 s: GTC Frequency = 200 MHz
    APP: Init ... Done !!!
    1631666.396553 s:  VX_ZONE_INIT:Enabled
    1631666.396563 s:  VX_ZONE_ERROR:Enabled
    1631666.396571 s:  VX_ZONE_WARNING:Enabled
    1631666.397246 s:  VX_ZONE_INIT:[tivxInitLocal:130] Initialization Done !!!
    1631666.397423 s:  VX_ZONE_INIT:[tivxHostInitLocal:86] Initialization Done for HOST !!!
    Pipeline Flow Disabled
    1631666.401295 s:  VX_ZONE_ERROR:[ownContextSendCmd:814] Command ack message returned failure cmd_status: -1
    1631666.401319 s:  VX_ZONE_ERROR:[ownContextSendCmd:850] tivxEventWait() failed.
    1631666.401343 s:  VX_ZONE_ERROR:[ownNodeKernelInit:538] Target kernel, TIVX_CMD_NODE_CREATE failed for node Stereo_Processing
    1631666.401361 s:  VX_ZONE_ERROR:[ownNodeKernelInit:539] Please be sure the target callbacks have been registered for this core
    1631666.401378 s:  VX_ZONE_ERROR:[ownNodeKernelInit:540] If the target callbacks have been registered, please ensure no errors are occurring within the create callback of this kernel
    1631666.401397 s:  VX_ZONE_ERROR:[ownGraphNodeKernelInit:583] kernel init for node 0, kernel com.ti.hwa.dmpac_sde ... failed !!!
    1631666.401421 s:  VX_ZONE_ERROR:[vxVerifyGraph:2055] Node kernel init failed
    1631666.401438 s:  VX_ZONE_ERROR:[vxVerifyGraph:2109] Graph verify failed
    1631666.402140 s:  VX_ZONE_INIT:[tivxHostDeInitLocal:100] De-Initialization Done for HOST !!!
    1631666.406513 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: 8 alloc's of 7680552 bytes 
    DDR_SHARED_MEM: Free's : 8 free's  of 7680552 bytes 
    DDR_SHARED_MEM: Open's : 0 allocs  of 0 bytes 
    DDR_SHARED_MEM: Total size: 536870912 bytes 
    MEM: Deinit ... Done !!!
    APP: Deinit ... Done !!!

    谢谢你。

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好!

    我认为它失败了、因为它无法在 内部存储器中分配足够的缓冲区。 您能否在立体声应用的 app_init API 中添加以下代码并再次检查?

    静态 vx_status app_init (AppObj * obj)

    vx_status = vx_Success;
    APP_GRpx_INIT_PRM_t GRpx_PRMS;

    #if !defined (PC) 
    //免费 SDE 和 DOF SL2 
    vhwaDmpacSl2Free()
    
    //重新分配 SDE SL2 
    vhwaDmpacSdeSl2Realloc()
    #endif 

     

    此致、

    Brijesh

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    这在下面的开发人员手册中给出。

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

    此致、

    Brijesh