GstVideo.VideoRegionOfInterestMeta¶
Fields¶
Name |
Type |
Access |
Description |
---|---|---|---|
h |
r/w |
bounding box height |
|
id |
r/w |
identifier of this particular ROI |
|
meta |
r/w |
parent |
|
params |
[ |
r/w |
list of |
parent_id |
r/w |
identifier of its parent ROI, used f.i. for ROI hierarchisation. |
|
roi_type |
r/w |
GQuark describing the semantic of the Roi (f.i. a face, a pedestrian) |
|
w |
r/w |
bounding box width |
|
x |
r/w |
x component of upper-left corner |
|
y |
r/w |
y component of upper-left corner |
Methods¶
class |
|
|
|
|
Details¶
- class GstVideo.VideoRegionOfInterestMeta¶
Extra buffer metadata describing an image region of interest
- add_param(s)[source]¶
- Parameters:
s (
Gst.Structure
) – aGst.Structure
Attach element-specific parameters to self meant to be used by downstream elements which may handle this ROI. The name of s is used to identify the element these parameters are meant for.
This is typically used to tell encoders how they should encode this specific region. For example, a structure named “roi/x264enc” could be used to give the QP offsets this encoder should use when encoding the region described in self. Multiple parameters can be defined for the same meta so different encoders can be supported by cross platform applications).
New in version 1.14.