# How to process the frame with padding and without scaling?

**URL:** <https://forums.developer.nvidia.com/t/how-to-process-the-frame-with-padding-and-without-scaling/254496>\
**Category:** DeepStream SDK\
**Tags:** deepstream61, gstreamer, deepstream\
**Created:** [May 26, 2023, 5:39am UTC](https://forums.developer.nvidia.com/t/how-to-process-the-frame-with-padding-and-without-scaling/254496 "2023-05-26T05:39:07Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![daxjain987](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@daxjain987](https://forums.developer.nvidia.com/u/daxjain987)\
**Post date:** [May 26, 2023, 5:39am UTC](https://forums.developer.nvidia.com/t/how-to-process-the-frame-with-padding-and-without-scaling/254496/1 "2023-05-26T05:39:07Z")

</div>

**• Hardware Platform (GPU): Nvidia RTX 4000**  
**• DeepStream Version: 6.2**  
**• NVIDIA GPU Driver Version: 525.105.17**  
**• Issue Type: Questions**

Hello,

In DS6.2, we have to require process padding in the frames. We don’t need any scaling on that. Is there any plugin available to provide such capability in DS?

Thanks,  
Dax

---

<div class="post-metadata">

**Author:** ![fanzh](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/fanzh/32/115955_2.png) [@fanzh](https://forums.developer.nvidia.com/u/fanzh)\
**Post date:** [May 26, 2023, 6:03am UTC](https://forums.developer.nvidia.com/t/how-to-process-the-frame-with-padding-and-without-scaling/254496/3 "2023-05-26T06:03:13Z")

</div>

could you share your media pipeline or use case? which deepstream sample are you referring? are you using nvinfer or nvifnersever?

---

<div class="post-metadata">

**Author:** ![daxjain987](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@daxjain987](https://forums.developer.nvidia.com/u/daxjain987)\
**Post date:** [May 26, 2023, 6:17am UTC](https://forums.developer.nvidia.com/t/how-to-process-the-frame-with-padding-and-without-scaling/254496/4 "2023-05-26T06:17:11Z")

</div>

Hello @fanzh,

> [@fanzh](#):
>
> could you share your media pipeline or use case?

We have a nvinfereserver pipeline with 1 pgie and 2 sgie models. We are trying to pass our pgie output 100x200 image to sgie. But the sgie input size is 500x500. So our problem is by default nvinferserver scale that 100x200 image to 500x500 with additional padding. But we don’t want any scaling we only want to pad as it explodes smaller images when scaled to 500x500.

> [@fanzh](#):
>
> which deepstream sample are you referring?

we build our own.

---

<div class="post-metadata">

**Author:** ![fanzh](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/fanzh/32/115955_2.png) [@fanzh](https://forums.developer.nvidia.com/u/fanzh)\
**Post date:** [May 26, 2023, 6:27am UTC](https://forums.developer.nvidia.com/t/how-to-process-the-frame-with-padding-and-without-scaling/254496/5 "2023-05-26T06:27:39Z")

</div>

please refer to this similar topic: [Does nvinferserver supports padding without resizing (enlarging small) input](https://forums.developer.nvidia.com/t/does-nvinferserver-supports-padding-without-resizing-enlarging-small-input/254482)

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/system/32/68080_2.png) [@system](https://forums.developer.nvidia.com/u/system)\
**Post date:** [June 9, 2023, 6:27am UTC](https://forums.developer.nvidia.com/t/how-to-process-the-frame-with-padding-and-without-scaling/254496/6 "2023-06-09T06:27:53Z")

</div>

Closed on June 9, 2023, 6:27am UTC

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