dropdown menu

Back To Home

Friday, November 15, 2019

python-crop certain dimension from image

This method is useful to crop an image. Small size from big image.

Python code:

import cv2

img = cv2.imread("download.jpeg")
crop_img = img[0:500,0:500]

cv2.imwrite('download2.jpeg',crop_img)
         
                                                     

No comments:

Post a Comment