crop image in skimage?

前端 未结 4 1759
小蘑菇
小蘑菇 2021-02-09 04:30

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.         


        
4条回答
  •  鱼传尺愫
    2021-02-09 04:53

    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()
    

提交回复
热议问题