GstAnalytics.ODMtd

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_confidence_lvl ()

get_location ()

get_obj_type ()

Details

class GstAnalytics.ODMtd

Handle containing data required to use gst_analytics_od_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 the GstAnalytics.Mtd type

Return type:

int

Get an id that represent object-detection metadata type

New in version 1.24.

get_confidence_lvl()
Returns:

True on success, otherwise False.

loc_conf_lvl:

Confidence on object location

Return type:

(bool, loc_conf_lvl: float)

Retrieve location confidence level.

New in version 1.24.

get_location()
Returns:

True on success, otherwise False.

x:

x component of upper-left corner of the object location

y:

y component of upper-left corner of the object location

w:

bounding box width of the object location

h:

bounding box height of the object location

loc_conf_lvl:

Confidence on object location

Return type:

(bool, x: int, y: int, w: int, h: int, loc_conf_lvl: float)

Retrieve location and location confidence level.

New in version 1.24.

get_obj_type()
Returns:

Quark different from on success and 0 on failure.

Return type:

int

Quark of the class of object associated with this location.

New in version 1.24.