Learn Before
Code
Image Cropping Example (Pillow)
The following creates a 300 x 300 crop of image im from coordinates (100,100) as the upper-left boundary to coordinates (400,400) as the lower-right boundary.
box = (100, 100, 400, 400) region = im.crop(box)
0
1
Updated 2021-07-11
Tags
Python Programming Language
Data Science