VVAS Infere Prediction¶
-
struct VvasInferPrediction¶
Contains Inference meta data information of a frame
Definition
struct VvasInferPrediction {
uint64_t prediction_id;
bool enabled;
VvasBoundingBox bbox;
VvasList* classifications;
VvasTreeNode *node;
bool bbox_scaled;
char *obj_track_label;
VvasClass model_class;
char *model_name;
int count;
Pose14Pt pose14pt;
Feature feature;
Reid reid;
Segmentation segmentation;
TensorBuf *tb;
};
Members
prediction_idA unique id for this specific prediction
enabledThis flag indicates whether or not this prediction should be used for further inference
bboxBouding box for this specific prediction
classificationslinked list to classifications
nodeAddress to tree data structure node
bbox_scaledbbox co-ordinates scaled to root node resolution or not
obj_track_labelTrack Label for the object
model_classModel class defined in vvas-core
model_nameModel name
countA number element, used by model which give output a number
pose14ptStruct of the result returned by the posedetect/openpose network
featureFeatures of a face/road
reidGetting feature from an image
segmentationSegmentation data
tbRawtensor data
-
struct VvasBoundingBox¶
Contains information for box data for detected object
Definition
struct VvasBoundingBox {
int32_t x;
int32_t y;
uint32_t width;
uint32_t height;
VvasColorInfo box_color;
};
Members
xhorizontal coordinate of the upper position in pixels
yvertical coordinate of the upper position in pixels
widthwidth of bounding box in pixels
heightheight of bounding box in pixels
box_colorbounding box color
-
struct Pointf¶
coordinate of point
Definition
struct Pointf {
float x;
float y;
};
Members
xhorizontal coordinate of the upper position in pixels
yvertical coordinate of the upper position in pixels
-
struct Pose14Pt¶
14 coordinate points to represented pose
Definition
struct Pose14Pt {
Pointf right_shoulder;
Pointf right_elbow;
Pointf right_wrist;
Pointf left_shoulder;
Pointf left_elbow;
Pointf left_wrist;
Pointf right_hip;
Pointf right_knee;
Pointf right_ankle;
Pointf left_hip;
Pointf left_knee;
Pointf left_ankle;
Pointf head;
Pointf neck;
};
Members
right_shoulderR_shoulder coordinate
right_elbowR_elbow coordinate
right_wristR_wrist coordinate
left_shoulderL_shoulder coordinate
left_elbowL_elbow coordinate
left_wristL_wrist coordinate
right_hipR_hip coordinate
right_kneeR_knee coordinate
right_ankleR_ankle coordinate
left_hipL_hip coordinate
left_kneeL_knee coordinate
left_ankleL_ankle coordinate
headHead coordinate
neckNeck coordinate
-
enum feature_type¶
Enum for holding type of feature
Constants
UNKNOWN_FEATUREUnknown feature
FLOAT_FEATUREFloat features
FIXED_FEATUREFixed point features
LANDMARKLandmark
ROADLINERoadlines
ULTRAFASTPoints from Ultrafast model
-
enum road_line_type¶
Enum for holding type of road line
Constants
BACKGROUNDBackground
WHITE_DOTTED_LINEWhite dotted line
WHITE_SOLID_LINEWhite solid line
YELLOW_LINEYellow line
-
struct Feature¶
The features of a road/person
Definition
struct Feature {
union {
float float_feature[VVAS_MAX_FEATURES];
int8_t fixed_feature[VVAS_MAX_FEATURES];
Pointf road_line[VVAS_MAX_FEATURES];
Pointf landmark[NUM_LANDMARK_POINT];
};
uint32_t line_size;
enum feature_type type;
enum road_line_type line_type;
};
Members
{unnamed_union}anonymous
float_featurefloat features
fixed_featurefixed features
road_linepoints for drawing road lanes
landmarkfive key points on a human face
line_sizeNumber of points in road_line
typeenum to hold type of feature
line_typeenum to hold type of road lane
-
struct Reid¶
Structure to gold reid model results
Definition
struct Reid {
uint32_t width;
uint32_t height;
uint64_t size;
uint64_t type;
void *data;
bool (*free) (void *);
bool (*copy) (const void *, void *);
};
Members
widthWidth of output image
heightHeight of output image
sizeSize of output
typeType of Reid
dataReid output data
freefunction pointer to free data
copyfunction pointer to copy data
-
enum seg_type¶
Enum for holding type of segmentation
Constants
SEMANTICSemantic
MEDICALMedical
SEG3D3D Segmentation
-
struct Segmentation¶
Structure for storing segmentation related information
Definition
struct Segmentation {
enum seg_type type;
uint32_t width;
uint32_t height;
char fmt[MAX_SEGOUTFMT_LEN];
void *data;
bool (*free) (void *);
bool (*copy) (const void *, void *);
};
Members
typeenum to hold type of segmentation
widthWidth of output image
heightHeight of output image
fmtSegmentation output format
dataSegmentation output data
freefunction pointer to free data
copyfunction pointer to copy data
-
struct TensorBuf¶
Structure for storing Tensor related information
Definition
struct TensorBuf {
int size;
void *ptr[20];
void *priv;
void (*free) (void **);
void (*copy) (void **, void **);
unsigned long int height;
unsigned long int width;
unsigned long int fmt;
atomic_int ref_count;
};
Members
sizeSize of output Tensors
ptrPointers to output Tensors
privPrivate structure
freefunction pointer to free data
copyfunction pointer to copy data
heightHeight of output image
widthWidth of output image
fmtFormat of output image
ref_countReference count