- Deepstream 5.1
- Jetpack 4.5.1 [L4T 32.5.1]
- Jetson AGX Xavier
Using the python bindings I created a pipeline of which one part is to dewarp a fish eye image, resize it and then crop it for further processing. Everything works so far, but I seem to be restricted in the resolutions I can choose.
This is the config for the dewarper.
[property] num-batch-buffers=1 output-with=480 output-height=800 [surface0] surface-index=0 projection-type=1 width=1316 height=2172 focal-length=483 top-angle=55 bottom-angle=-55 pitch=0 yaw=0 roll=0
With output-width/height as in the config everything works as expected. See image 1.
But If I choose something like output-width=842 and out put-height=1072 the resulting image has the right dimensions but the content of the image will be “zoomed in” so that I am missing parts of the image. See image 2.
I would expect a resizing function to output the exact same image (meaning content) with just a different resolution.
For me so far the problem seems to be related to the ratio between output-width and output-height it has to roughly match the ratio of width and height (of surface0) to not get this “zoomed in” effect.
I also tried to not use the output-width/height function of nvdewarper but instead to use a nvvideoconverter to resize the image after it has been dewarped, but this results in the same problem.
Also for some resolutions I get some black borders. In image one such a border can be seen at the bottom.
Am I misunderstanding something about the resize procedure?