Using official deepstream-app from deepstream-4.0.1 we set up a demo with following high level pipeline components created by DeepStream-app,
2-VideoCamera(Rtsp) -> | GstRtspBin -> GstDecodeBin -> Primary_Gie_Bin -> Tracking_Bin -> OSD_Bin -> SinkBin(RtspServer) | -> RtspClient(recording)
in this way we can get a video from rtsp camera, analyze it in NvInfer and NvTracker and we can get all 80 yolo objects detected.
Now I have to filter out all objects minus “persons and cars” so ClassId=0 and ClassId=2
Se we want to see only persons and cars
Reading on DeepStream manuals I see I can set attribute
“infer-on-class-id or operate-on-class-ids”
using api like
"g_object_set ( G_OBJECT( primary/seocondary_gie), "infer-on-class-id, “0;2”, NULL )
So I tried to set it in primary-gie but nothing worked !!!
So I saw manuals saying “Class IDs of the parent GIE on which this GIE is to operate on”
It seems I cannot use it in PRIMARY-GIE ?? is it right ??
Consider that we cannot use a secondary-gie due to performance problems.
So how can I do to filter only “persons and cars” Yolo classes ID ?