Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from PIL import Image
- img=Image.open('/home/ahmed/internship/cnn_ocr/image1.png')
- img.size
- (2458, 3504)
- img.crop(414,122,650,338)
- Traceback (most recent call last):
- File "/usr/lib/python3.5/code.py", line 91, in runcode
- exec(code, self.locals)
- File "<input>", line 1, in <module>
- TypeError: crop() takes from 1 to 2 positional arguments but 5 were given
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement