Vision Apps User Guide

Introduction

This section contains module APIs for the TIOVX TIDL node tivxTIDLNode.

Data Structures

struct  TIDLObj
 

Functions

vx_status app_init_tidl (vx_context context, TIDLObj *obj, char *objName, vx_int32 num_cameras)
 TIDL module init helper function. More...
 
void app_deinit_tidl (TIDLObj *obj)
 TIDL module deinit helper function. More...
 
void app_delete_tidl (TIDLObj *obj)
 TIDL module delete helper function. More...
 
vx_status app_create_graph_tidl (vx_context context, vx_graph graph, TIDLObj *tidlObj, vx_object_array input_tensor_arr[])
 TIDL module create helper function. More...
 
vx_status writeTIDLOutput (char *file_name, TIDLObj *tidlObj)
 TIDL module write TIDL output helper function. More...
 

Macros

#define APP_MODULE_TIDL_MAX_TENSORS   (8)
 Maximum number of TIDL tensors. More...
 

Macro Definition Documentation

◆ APP_MODULE_TIDL_MAX_TENSORS

#define APP_MODULE_TIDL_MAX_TENSORS   (8)

Maximum number of TIDL tensors.

Function Documentation

◆ app_init_tidl()

vx_status app_init_tidl ( vx_context  context,
TIDLObj obj,
char *  objName,
vx_int32  num_cameras 
)

TIDL module init helper function.

This TIDL init helper function will create all the data objects required to create the TIDL node

Parameters
[in]contextOpenVX context which must be created using vxCreateContext
[out]objTIDL Module object which gets populated with TIDL node data objects
[in]objNameString of the name of this object
[in]num_camerasNumber of cameras used by TIDL

◆ app_deinit_tidl()

void app_deinit_tidl ( TIDLObj obj)

TIDL module deinit helper function.

This TIDL deinit helper function will release all the data objects created during the app_init_tidl call

Parameters
[in,out]objTIDL Module object which contains TIDL node data objects which are released in this function

◆ app_delete_tidl()

void app_delete_tidl ( TIDLObj obj)

TIDL module delete helper function.

This TIDL delete helper function will delete the TIDL node that is created during the app_create_graph_tidl call

Parameters
[in,out]objTIDL Module object which contains TIDL node objects which are released in this function

◆ app_create_graph_tidl()

vx_status app_create_graph_tidl ( vx_context  context,
vx_graph  graph,
TIDLObj tidlObj,
vx_object_array  input_tensor_arr[] 
)

TIDL module create helper function.

This TIDL create helper function will create the node using all the data objects created during the app_init_tidl call.

Parameters
[in]contextOpenVX context which must be created using vxCreateContext
[in]graphOpenVX graph that has been created using vxCreateGraph and where the TIDL node is created
[in,out]tidlObjTIDL Module object which contains TIDL node which is created in this function
[in,out]input_tensor_arrInput tensors to TIDL node; must be created separately outside the TIDL module

◆ writeTIDLOutput()

vx_status writeTIDLOutput ( char *  file_name,
TIDLObj tidlObj 
)

TIDL module write TIDL output helper function.

This TIDL helper function will write each element of the output_tensor_arr to file.

Parameters
[in]file_nameFull path to file to write
[in]tidlObjTIDL Module object which contains the output_tensor_arr which is written to file in this function