Difference between revisions of "GstInference/Overlay Elements/Inference Overlay"
(→Properties) |
|||
Line 8: | Line 8: | ||
This element consumes the inference metadata. This element uses [[GstInference/Metadatas/GstInferenceMeta|GstInferenceMeta]]. This element draws each bounding box with its respective label, using OpenCV. | This element consumes the inference metadata. This element uses [[GstInference/Metadatas/GstInferenceMeta|GstInferenceMeta]]. This element draws each bounding box with its respective label, using OpenCV. | ||
[[File:Detectionoverlay.png|500px|center|thumb|Detection overalay example]] | [[File:Detectionoverlay.png|500px|center|thumb|Detection overalay example]] | ||
+ | |||
= Properties = | = Properties = | ||
Line 29: | Line 30: | ||
| Line style of rectangle | | Line style of rectangle | ||
|} | |} | ||
+ | [[File:Overlay styles.png|800px|thumb|center|Inference overlay styles]] | ||
= Example = | = Example = |
Revision as of 15:15, 20 January 2020
Make sure you also check GstInference's companion project: R2Inference |
This element consumes the inference metadata. This element uses GstInferenceMeta. This element draws each bounding box with its respective label, using OpenCV.
Properties
The inferenceoverlay element expose the following properties to control the boxes' thickness, color, etc. These properties are documented on the following table:
Property | Value | Description |
---|---|---|
font-scale | Double [0,100] | Scale of the font used on the overlay. 0 turns off the overlay |
thickness | Double [1,100] | Thickness in pixels used for the lines |
style | enum (0): classic (1): dotted (2): dashed |
Line style of rectangle |
Error creating thumbnail: Unable to save thumbnail to destination
Example
For example pipelines using inferenceoverlay element please check the example pipelines section.