The situation I am in now is that I have a lot of pictures with different sizes, some are 769x864 pixels others are 2000x3123 pixels and some are even 3500x4000 pixels.
I want to resize all the pictures to a certain height and width or at least close to the given height and width using openCV.
I know the cv2.resize()
function but the problem is how I would define a fixed dimension, for example 800x900, without it changing the original pictures' shape.
Does anyone have an idea how this can be done?