My problem is that when I want to capture the object bounding-box information, the value of top,left,height, width are not correct. Actually, top and left are half of real values and height and width are zero!
I tested the code in Jetson TX2 and Jetson Nano (with the same JetPack and deepstream version), they works well and I have correct information about bounding-box. But in Jetson Xavier NX the problem is happened.
I used the following code, this is the way that you used in deepstream_imagedata-multistream.py DeepStream-python example.
obj_meta=pyds.NvDsObjectMeta.cast(l_obj.data)
rect_params = obj_meta.rect_params
top = int(rect_params.top)
left = int(rect_params.left)
width = int(rect_params.width)
height = int(rect_params.height)
If the code works on the TX2 and Nano, I suspect the the model is having problems on the Xavier. But I can’t tell for sure with the information you provided.
Are you sure that the object meta list is not None? Here is how I’m creating a Python dictionary from a buffer with DeepStream meta: