Please provide complete information as applicable to your setup.
• Hardware Platform (Jetson / GPU) Jetson Orin • DeepStream Version 6.2 • JetPack Version (valid for Jetson only) 5.1
Hi
I am a little confused by the numbers that I am seeing for the top, left, width and height values of the NvOSD_RectParams object from my frame meta objects.
If I get print the CV2 image shape, I get the resolution 960 x 544
If I print the source_width and source_height of the frame meta (NvDsFrameMeta) I get 704 x 576 (which matches the original camera res)
However, if I print the properties of the object rectangle (NvOSD_RectParams) I get the following values (as an example):
Top: 677
Left: 1015
Width: 6
Height: 22
These dimensions don’t fit inside either of the images (that I would expect them to fit inside)
Do you know what these dimensions represent? In the docs it just says “pixels”, but I’m struggling to find which pixels. The application I am using is structured similarly to deepstream_imagedata-multistream_redaction.py
Sorry, yes I do mean source_frame_width / source_frame_height
So if the unscaled dimensions of the frame are 704 x 576, and the scaled dimensions are 960 x 544, how is it possible that the bounding box in the NvOSD_RectParams can start at left: 1015, top: 677 (see original question)?
Those dimensions are out of both the unscaled and the scaled dimensions of the frame.
For more context: I am using the function draw_bounding_boxes from the examples to try to draw the bounding boxes on the images, but the boxes are outside of the frame.
I just tried my code with this stock video and the bounding boxes were drawn correctly, so I assume the issue is related to the stream that I am using.
The issue also seems to be intermittent with our own streams. I have tried ~200 streams and the problem exists for some but not others.
It would help me to know how the NvOSD_RectParams is calculated. In the documentation it says that it is just “pixels”, but what are the pixels based on? The scaled image or the unscaled image? Or something else?
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
I think this is normal, but it depends on the output of the model.
If you can upgrade to DS-6.4, setting the crop-objects-to-roi-boundary property to true can avoid this problem.