GstAnalytics.ClsMtd

Fields

Name

Type

Access

Description

id

int

r/w

Instance identifier.

meta

GstAnalytics.RelationMeta

r/w

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

Methods

class

get_mtd_type ()

get_index_by_quark (quark)

get_length ()

get_level (index)

get_quark (index)

Details

class GstAnalytics.ClsMtd

Handle containing data required to use gst_analytics_cls_mtd APIs. This type is generally expected to be allocated on the stack.

New in version 1.24.

classmethod 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.

get_index_by_quark(quark)
Parameters:

quark (int) – Quark of the class Get index of class represented by quark

Returns:

index of the class associated with quarks ( and label) or a negative value on failure.

Return type:

int

New in version 1.24.

get_length()
Returns:

Number of classes in this classification instance

Return type:

int

New in version 1.24.

get_level(index)
Parameters:

index (int) – Object class index

Returns:

confidence level for index, <0.0 if the call failed.

Return type:

float

Get confidence level for class at index

New in version 1.24.

get_quark(index)
Parameters:

index (int) – index of the class Get quark of the class at index

Returns:

Quark of this class (label) associated with index

Return type:

int

New in version 1.24.