GstAnalytics.TensorMtd

Fields

Name

Type

Access

Description

id

int

r/w

Instance identifier

meta

GstAnalytics.RelationMeta

r/w

Instance of GstAnalytics.RelationMeta where the analytics-metadata identified by id is stored

Methods

class

get_mtd_type ()

get_tensor ()

Details

class GstAnalytics.TensorMtd

This type of metadata holds a tensor. It can be used to store tensor as analytics-meta for their ability to relate to each others. For example in a multi-model analytics pipeline, we sometime have one model input match the output of the other model. In this context it can be useful to keep the ancestry relation between first tensor, output of first inference, and the second tensor, output from second inference. Another use-case for GstAnalytics.TensorMtd is to transport tensors from inference element to a post-processing element using a computing graph framework, like ONNX. Essentially GstAnalytics.TensorMtd is a Gst.Buffer encapsulated by a analytics-meta with additional parameters describing the tensor.

Since 1.28

New in version 1.28.

classmethod get_mtd_type()
Returns:

Opaque id of the GstAnalytics.Mtd type

Return type:

int

Get an id that represent tensor metadata type

New in version 1.28.

get_tensor()
Returns:

a GstAnalytics.Tensor

Return type:

GstAnalytics.Tensor

Get tensor

New in version 1.28.