• Hardware Platform (Jetson / GPU) Orin AGX • DeepStream Version 6.1.1 • JetPack Version (valid for Jetson only) 5.0.2 • TensorRT Version 8.4.1.5 • How to reproduce the issue ? (This is for bugs. Including which sample app is using, the configuration files content, the command line used and other details for reproducing)
I’m facing an issue with getting the parent object of a plate detection. This is the corresponding part of the C++ app:
if (obj_meta->unique_component_id == SECONDARY_DETECTOR_UID) {
if (obj_meta->class_id == SGIE_CLASS_ID_LPD) {
lp_count++;
/* Print this info only when operating in secondary model. */
if (obj_meta->parent)
g_print ("License plate found for parent object %p (type=%s)\n", obj_meta->parent, pgie_classes_str[obj_meta->parent->class_id]);
The message “License plate found for parent object …” never appears after executing the app, allthough plates are detected in most of the frames.
In Python, I am trying with the following part of code:
if obj_meta.unique_component_id == self.SECONDARY_DETECTOR_UID:
print(obj_meta.rect_params.top, obj_meta.rect_params.left, obj_meta.rect_params.width, obj_meta.rect_params.height)
print(obj_meta.parent)
if obj_meta.parent:
print(obj_meta.parent.class_id, obj_meta.parent.object_id)
Unfortunately obj_meta.parent is always None. I’ve tried moving the probe function before the tiler, as suggested in some other post I found, but it didn’t work.
But this code won’t execute before nvvideoconvert. I get the following error:
n_frame = pyds.get_nvds_buf_surface(hash(gst_buffer), frame_meta.batch_id)
RuntimeError: get_nvds_buf_Surface: Currently we only support RGBA color Format
Traceback (most recent call last):
File “/srv/ivms_v2/detect/core/pipeline.py”, line 485, in sgie_src_pad_buffer_probe
According to your own pipeline, there are some differences with our demo. Let’s discuss our demo code first. So you want to get the parent object on osd source pad? Do you mean that once datas get through the nvvideoconvert plug-in, the parent object will be NULL?
There is no update from you for a period, assuming this is not an issue anymore.
Hence we are closing this topic. If need further support, please open a new one.
Thanks
Ok. The parent para is NULL after the tiler plugin cause the tiler will merge multiple pictures. So you can’t get it from the osd probe function. We need to comment the print out in our demo. If you want to get the para, you can only get it before the tiler.