Difference between revisions of "GstInference/Helper Elements/Detection Crop"

From RidgeRun Developer Connection
Jump to: navigation, search
(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 1/1 the detection crop ignores the aspect ratio.
+
| 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




Previous: Crop Elements Index Next: Example pipelines




This element consumes the detection metadata introduced in the buffer by our family of detection elements(TinyYoloV2). This element uses GstDetectionMeta.

Setection crop example

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.


Previous: Crop Elements Index Next: Example pipelines