Usefull funchtons for computer vision preprocessing of images such as image resizing with respect to ratio
#Requirment cv2 python
Use this function res_img(path,thresh) to resize an image with respect to its ratio
path is the path to your image , threshhold is the desired ratio you want your image to be resized for example 200 means the new resized image will be twice the original size.
example to show how to use
res_img(path,200)