Deepstream 6.0 Parent object is none

Please provide complete information as applicable to your setup.

• Hardware Platform (Jetson / GPU) jetson
• DeepStream Version 6.0
• JetPack Version (valid for Jetson only) 4.6
• Issue Type( questions, new requirements, bugs) bugs

I have python pipeline with primary and secondary detectors and I’m trying to get parent’s metadata after upgrading Deepstream from 5.1 to 6.0 and building python bindings, but the parent object is always none.

Can you show part of your code to let us understand your question?

primary_detector_config.txt (2.9 KB)
secondary_detector_config.txt (3.2 KB)

    gst_buffer = info.get_buffer()
    if not gst_buffer:
        print("Unable to get GstBuffer ")
        return


    batch_meta = pyds.gst_buffer_get_nvds_batch_meta(hash(gst_buffer))
    l_frame = batch_meta.frame_meta_list
    while l_frame is not None:
        try:

            frame_meta = pyds.NvDsFrameMeta.cast(l_frame.data)
        except StopIteration:
            break

        frame_number=frame_meta.frame_num
        num_rects = frame_meta.num_obj_meta
        l_obj=frame_meta.obj_meta_list
        while l_obj is not None:
            try:

                obj_meta=pyds.NvDsObjectMeta.cast(l_obj.data)
                if obj_meta.unique_component_id == 2: 
                    print("parent",obj_meta.parent) # this print always prints None 
            except StopIteration:
                break

            try: 
                l_obj=l_obj.next
            except StopIteration:
                break
        try:
            l_frame=l_frame.next
        except StopIteration:
            break

Can you reproduce you issue with below sample?

deepstream_python_apps/deepstream_test_1.py at master · NVIDIA-AI-IOT/deepstream_python_apps · GitHub

deepstream-test1.zip (9.3 KB)
please find the attached code as per your request

Any updates?

Sorry for later response. Very busy. Can you check if your issue exit in below samples:

deepstream_python_apps/apps/deepstream-test1 at master · NVIDIA-AI-IOT/deepstream_python_apps · GitHub

deepstream_python_apps/apps/deepstream-test2 at master · NVIDIA-AI-IOT/deepstream_python_apps · GitHub

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