GstAnalytics.TensorMeta

Fields

Name

Type

Access

Description

meta

Gst.Meta

r/w

parent

num_tensors

int

r/w

number of tensors

tensors

GstAnalytics.Tensor

r/w

Methods

get (index)

get_index_from_id (id)

set (tensors)

Details

class GstAnalytics.TensorMeta

New in version 1.26.

get(index)
Parameters:

index (int) – The number of the tensor to get

Returns:

a GstAnalytics.Tensor

Return type:

GstAnalytics.Tensor

Retrieves a tensor from the GstAnalytics.TensorMeta, the index must be smaller than GstAnalytics.TensorMeta.num_tensors

New in version 1.26.

get_index_from_id(id)
Parameters:

id (int) – The tensor id to look for

Returns:

The index of the tensor inthe meta, or -1 if its not found.

Return type:

int

Finds the first tensor with the requsted ID in the meta

New in version 1.26.

set(tensors)
Parameters:

tensors ([GstAnalytics.Tensor]) – An array of poiners to GstAnalytics.Tensor

Sets tensors into the GstAnalytics.TensorMeta

New in version 1.26.