Difference between revisions of "GstInference/Helper Elements/Detection Crop"
Maumontero (talk | contribs) |
(→Properties) |
||
Line 28: | Line 28: | ||
| aspect-ratio | | aspect-ratio | ||
| fraction [ 0/1, 2147483647/1] | | fraction [ 0/1, 2147483647/1] | ||
− | | Aspect ratio to crop the detections, width and height separated by '/'. If set to | + | | Aspect ratio to crop the detections, width and height separated by '/'. If set to 0/1 it maintains the aspect ratio of each bounding box. |
|} | |} | ||
Revision as of 15:45, 8 November 2019
Make sure you also check GstInference's companion project: R2Inference |
This element consumes the detection metadata introduced in the buffer by our family of detection elements(TinyYoloV2). This element uses GstDetectionMeta.
Properties
The detectioncrop element expose the following properties to control the aspect ratio and the detection index. These properties are documented on the following table:
Property | Value | Description |
---|---|---|
crop-index | UInt [0,4294967295] | Index of the detected object to crop in the prediction array. This will be ignored if crop-class is set to a non-negative value. |
crop-class | Int [-1,2147483647] | Object class to crop look for cropping. If set to -1, crop-index will be used. |
aspect-ratio | fraction [ 0/1, 2147483647/1] | Aspect ratio to crop the detections, width and height separated by '/'. If set to 0/1 it maintains the aspect ratio of each bounding box. |
Example
For example pipelines using detectioncrop element please check the example pipelines section.