You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A new method that will take an input image, and take a req height and width as input and return a new image with exact same dims while respecting the aspect ratio.
We will need to add padding if we wish to maintain the aspect ratio, it will be great if we can specify the background color for the padding.
Why
This is helpful for preparing input image for various machine learning model, which expects the input to be of specific size.
The text was updated successfully, but these errors were encountered:
ua741
changed the title
Resize to exact size while maintaining aspect ratio.
[Feature Request] Resize to exact size while maintaining aspect ratio.
Dec 20, 2023
Platforms
Android, iOS
Description
A new method that will take an input image, and take a req height and width as input and return a new image with exact same dims while respecting the aspect ratio.
We will need to add padding if we wish to maintain the aspect ratio, it will be great if we can specify the background color for the padding.
Why
This is helpful for preparing input image for various machine learning model, which expects the input to be of specific size.
The text was updated successfully, but these errors were encountered: