Vision Apps User Guide

Introduction

This section contains module APIs for the TIOVX VISS node tivxVpacVissNode.

Data Structures

struct  VISSObj
 VISS Module Data Structure. More...
 

Functions

vx_status app_init_viss (vx_context context, VISSObj *vissObj, SensorObj *sensorObj, char *objName, uint32_t num_cameras_enabled)
 VISS module init helper function. More...
 
void app_deinit_viss (VISSObj *vissObj)
 VISS module deinit helper function. More...
 
void app_delete_viss (VISSObj *vissObj)
 VISS module delete helper function. More...
 
vx_status app_create_graph_viss (vx_graph graph, VISSObj *vissObj, vx_object_array raw_image_arr, const char *target)
 VISS module create helper function. More...
 
vx_status app_create_graph_viss_write_output (vx_graph graph, VISSObj *vissObj)
 VISS module write output helper function. More...
 
vx_status app_send_cmd_viss_write_node (VISSObj *vissObj, vx_uint32 start_frame, vx_uint32 num_frames, vx_uint32 num_skip)
 VISS module write output helper function. More...
 

Function Documentation

◆ app_init_viss()

vx_status app_init_viss ( vx_context  context,
VISSObj vissObj,
SensorObj sensorObj,
char *  objName,
uint32_t  num_cameras_enabled 
)

VISS module init helper function.

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

Parameters
[in]contextOpenVX context which must be created using vxCreateContext
[out]vissObjVISS Module object which gets populated with VISS node data objects
[in]sensorObjSensor Module object used to initialize VISS data object parameters; must be initialized prior to passing to this function
[in]objNameString of the name of this object
[in]num_cameras_enabledNumber of cameras enabled

◆ app_deinit_viss()

void app_deinit_viss ( VISSObj vissObj)

VISS module deinit helper function.

This VISS deinit helper function will release all the data objects created during the app_init_viss call

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

◆ app_delete_viss()

void app_delete_viss ( VISSObj vissObj)

VISS module delete helper function.

This VISS delete helper function will delete the VISS node and write node that is created during the app_create_graph_viss call

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

◆ app_create_graph_viss()

vx_status app_create_graph_viss ( vx_graph  graph,
VISSObj vissObj,
vx_object_array  raw_image_arr,
const char *  target 
)

VISS module create helper function.

This VISS create helper function will create the node using all the data objects created during the app_init_viss call. Internally calls app_create_graph_viss_write_output if en_out_viss_write is set

Parameters
[in]graphOpenVX graph that has been created using vxCreateGraph and where the VISS node is created
[in,out]vissObjVISS Module object which contains VISS node and write node which are created in this function
[in]raw_image_arrRaw image input object array to VISS node. Must be created separately, typically passed from output of capture node
[in]targetThe name of the target (ASCII string) on which the node executes.

◆ app_create_graph_viss_write_output()

vx_status app_create_graph_viss_write_output ( vx_graph  graph,
VISSObj vissObj 
)

VISS module write output helper function.

This VISS create helper function will create the node for writing the VISS output

Parameters
[in]graphOpenVX graph
[in,out]vissObjVISS Module object which contains write node which is created in this function

◆ app_send_cmd_viss_write_node()

vx_status app_send_cmd_viss_write_node ( VISSObj vissObj,
vx_uint32  start_frame,
vx_uint32  num_frames,
vx_uint32  num_skip 
)

VISS module write output helper function.

This VISS create helper function will create the node for writing the VISS output

Parameters
[in]vissObjVISS Module object which contains the write node used in this function
[in]start_frameStarting frame to write
[in]num_framesTotal number of frames to write
[in]num_skipNumber of VISS frames to skip writing