I\'m using skimage to crop a rectangle in a given image, now I have (x1,y1,x2,y2) as the rectangle coordinates, then I had loaded the image
image = skimage.io.
you can go ahead with the Image module of the PIL library
from PIL import Image im = Image.open("image.png") im = im.crop((0, 50, 777, 686)) im.show()