Tracker and sgie with multi source

Please provide complete information as applicable to your setup.

• Hardware Platform (Jetson / GPU) Jetson Nano
• DeepStream Version 5.1
• JetPack Version (valid for Jetson only) 4.5.1
• TensorRT Version 7.1.3+cuda10.2
• Issue Type( questions, new requirements, bugs) Question

I am trying to make tracker and secondary gie work with below code. I had no problem with 1 source. I think I have problems with linkings.

Thanks. (19.8 KB)

sgie has 2 class Helmet and Humanhead. Its only draw box for Humanhead but I cant access obj_meta for sgie

Found better way here

But still can’t access sgie obj_meta

            if obj_meta.obj_label != SGIE_CLASS_LBL_HUMANHEAD:
                obj_counter[obj_meta.class_id] += 1
            if obj_meta.obj_label == PGIE_CLASS_LBL_PERSON:
                obj_meta.rect_params.border_color.set(1.0, 1.0, 0.0, 1.0)
            if obj_meta.obj_label == SGIE_CLASS_LBL_HELMET:
                obj_counter[SGIE_CLASS_ID_HELMET] += 1
                obj_meta.rect_params.border_color.set(0.0, 1.0, 0.0, 1.0)
            elif obj_meta.obj_label == SGIE_CLASS_LBL_HUMANHEAD:
                obj_counter[SGIE_CLASS_ID_HUMANHEAD] += 1
                obj_meta.rect_params.border_color.set(1.0, 0.0, 0.0, 1.0)

obj_meta.obj_label never equals to ‘Helmet’ or ‘Human head’ so I can’t set color.
But It works for Person

It works after below change


New problem here

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.