GstAnalytics.ODMtd¶
Fields¶
Name |
Type |
Access |
Description |
---|---|---|---|
id |
r/w |
Instance identifier |
|
meta |
r/w |
Instance of |
Methods¶
class |
|
|
|
|
|
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:
Get an id that represent object-detection metadata type
New in version 1.24.
- get_confidence_lvl()¶
-
Retrieve location confidence level.
New in version 1.24.
- get_location()¶
- Returns:
True
on success, otherwiseFalse
.- 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:
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:
Quark of the class of object associated with this location.
New in version 1.24.
- get_oriented_location()¶
- Returns:
True
on success, otherwiseFalse
.- x:
x component of upper-left corner of the object location (pre-rotation)
- y:
y component of upper-left corner of the object location (pre-rotation)
- w:
bounding box width of the object location
- h:
bounding box height of the object location
- r:
Rotation of the bounding box in radians <0, 2xPI> with respect to the bounding box center (the rotation value is a clock-wise angle)
- loc_conf_lvl:
Confidence on object location
- Return type:
(
bool
, x:int
, y:int
, w:int
, h:int
, r:float
, loc_conf_lvl:float
)
Retrieve oriented location and location confidence level.
New in version 1.26.