rgiduthuri / openvx_tutorial

Khronos OpenVX Tutorial Material
MIT License
244 stars 85 forks source link

vxVerifyGraph #37

Open xiaodan7 opened 3 years ago

xiaodan7 commented 3 years ago

hi,I want to ask a question, hope you can help me I used this routine https://software-dl.ti.com/jacinto7/esd/processor-sdk-rtos-acinto7/latest/exports/docs/vision_apps/docs/user_guide/APP_C7X.html

I modified the app_create_graph(AppObj *obj) in the main() function of the app_c7x_kernel function I want the photos created to be RGB, and the output is also RGB Therefore, I modified this variable obj->input_img1 = vxCreateImage(obj->context, obj->width, obj->height, VX_DF_IMAGE_U8); I changed VX_DF_IMAGE_U8 to VX_DF_IMAGE_RGB obj->input_img1 = vxCreateImage(obj->context, obj->width, obj->height, VX_DF_IMAGE_RGB); creatimg

vxVerifyGraph() Reported an error ERROR: Input/Output image format not correct !!! 0.2188s: VX_ZONE_ERROR:[ownGraphNodeKernelValidate:535] node kernel validate failed for kernel app_c7x_kernel.img_add at index 0 0.2206s: VX_ZONE_ERROR:[vxVerifyGraph:1947] Node kernel Validate failed 0.2213s: VX_ZONE_ERROR:[vxVerifyGraph:2115] Graph verify failed 0.6728s: VX_ZONE_ERROR:[tivxObjectDeInit:180] Is kernel use failed 0.6753s: VX_ZONE_ERROR:[tivxObjectDeInit:276] Is error use failed

The error function is node->kernel->validate() status = node->kernel->validate(node, node->parameters, num_params, meta); The result of the statue is:-10 status

status :-10 corresponds to the definition as: VX_ERROR_INVALID_PARAMETERS = -(vx_int32)10,/!< \brief Indicates that the supplied parameter information does not match the kernel contract. /

When the status is 0, it is successful

xiaodan7 commented 3 years ago

Hope you can help me answer, thank you very much

pzibang commented 3 years ago

read the parameter of the kernel