VvasInferPrediction is the VVAS-level prediction structure embedded inside
GstInferencePrediction. It holds the bounding box, inference result, and
the tree linkage for cascade (multi-level) inference.
Definition
typedef struct {
uint64_t prediction_id;
bool enabled;
VvasTreeNode *node;
bool scaled_to_root;
char *model_path;
VvasList *tensors;
TensorBuf *tb_ref;
VvasInferPredictionPriv priv;
VvasInferResult *infer_result;
int width;
int height;
} VvasInferPrediction;
Members
prediction_idUnique identifier for this prediction node.
enabledWhen
true, this prediction is used for further (cascade) inference. Set tofalseto skip this node without removing it from the tree.nodeAddress of the tree node used to build the hierarchical prediction tree. Child predictions are appended via
vvas_inferprediction_append().scaled_to_rootIndicates whether the bounding-box coordinates have been scaled to the root-node (original frame) resolution.
model_pathPath to the model that produced this prediction.
tensorsList of raw output tensors (
TensorBuf) from the model. Used by the post-processing library to extract structured results.tb_refReference to the
TensorBuffrom which the inference result was extracted; maintains tensor lifetime while results are in use.privApplication-private data slot. The application provides
freeandcopycallbacks to manage its own associated data.infer_resultStructured inference result populated by the post-processing library. See VvasInferResult and VvasInferResultType.
width/heightDimensions of the input image for which this prediction was generated.