Functions

buffer_add_analytics_relation_meta (buffer)

buffer_add_analytics_relation_meta_full (buffer, init_params)

buffer_get_analytics_relation_meta (buffer)

cls_mtd_get_mtd_type ()

mtd_type_get_name (type)

od_mtd_get_mtd_type ()

relation_get_length (instance)

relation_meta_api_get_type ()

tracking_mtd_get_mtd_type ()

Details

GstAnalytics.buffer_add_analytics_relation_meta(buffer)
Parameters:

buffer (Gst.Buffer) – a Gst.Buffer

Returns:

Newly attached GstAnalytics.RelationMeta

Return type:

GstAnalytics.RelationMeta or None

Attach a analysis-results-meta-relation meta (GstAnalytics.RelationMeta)to buffer.

A GstAnalytics.RelationMeta is a metadata describing relation between other analysis meta. It’s more efficient to use GstAnalytics.buffer_add_analytics_relation_meta_full and providing the maximum number of analysis meta that will attached to a buffer.

New in version 1.24.

GstAnalytics.buffer_add_analytics_relation_meta_full(buffer, init_params)
Parameters:
Returns:

Newly attached GstAnalytics.RelationMeta

Return type:

GstAnalytics.RelationMeta or None

Attache a analysis-results relation-meta (GstAnalytics.RelationMeta) to buffer.

A GstAnalytics.RelationMeta is a metadata describing relation between other analysis meta.

New in version 1.24.

GstAnalytics.buffer_get_analytics_relation_meta(buffer)
Parameters:

buffer (Gst.Buffer) – a Gst.Buffer

Returns:

The GstAnalytics.RelationMeta if there is one

Return type:

GstAnalytics.RelationMeta or None

Retrives the meta or None if it doesn’t exist

New in version 1.24.

GstAnalytics.cls_mtd_get_mtd_type()
Returns:

opaque id of GstAnalytics.Mtd type

Return type:

int

Get an id identifying GstAnalytics.Mtd type.

New in version 1.24.

GstAnalytics.mtd_type_get_name(type)
Parameters:

type (int) – The type of analytics data

Returns:

the name

Return type:

str

Gets the string version of the name of this type of analytics data

New in version 1.24.

GstAnalytics.od_mtd_get_mtd_type()
Returns:

Opaque id of the GstAnalytics.Mtd type

Return type:

int

Get an id that represent object-detection metadata type

New in version 1.24.

GstAnalytics.relation_get_length(instance)
Parameters:

instance (GstAnalytics.RelationMeta) – Instance of GstAnalytics.RelationMeta

Returns:

Number of analysis-meta attached to this instance.

Return type:

int

Get number of relatable meta attached to instance

New in version 1.24.

GstAnalytics.relation_meta_api_get_type()
Returns:

GObject.GType of GstAnalytics.RelationMeta

Return type:

GObject.GType

New in version 1.24.

GstAnalytics.tracking_mtd_get_mtd_type()
Returns:

id representing the type of GstAnalyticsRelatableMtd

Get the opaque id identifying the relatable type

Return type:

int

New in version 1.24.