I am using a primary detector to detect different classes and two secondary detectors to recognize other attributes.
I would like to input to only one of the secondary detectors, a specific part of the detected objects e.g. central part of an object of type Vehicle (in other words: Feed a cropped image of the object that was output by the primary detector).
I have read in another topic that secondary detectors are nvinfer plugins and they crop images according to metadata (bounding boxes coordinates) from the primary detector.
Would you tell me please how to achieve this for only one secondary detector and maintain the default behavior for the other secondary detector?
The Gst-nvinfer plugin can work in two modes:
•Primary mode: Operates on full frames
•Secondary mode: Operates on objects added in the meta by upstream components
Using the secondary mode only didn’t satisfy my use case.
In addition to the usage of the secondary mode, I would like to cut/crop the objects according to some static value (for example: Cut the object vertically into two equal parts) and then feed the result to a set of secondary detectors.
HI,
please check usage of nvvideoconvert
gst-inspect-1.0 nvvideoconvert
you could do it in config, or you could specify the crop property directly in your code.