Advertisement
Guest User

Untitled

a guest
Mar 23rd, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. from PIL import Image
  2. img=Image.open('/home/ahmed/internship/cnn_ocr/image1.png')
  3. img.size
  4. (2458, 3504)
  5.  
  6. img.crop(414,122,650,338)
  7.  
  8. Traceback (most recent call last):
  9. File "/usr/lib/python3.5/code.py", line 91, in runcode
  10. exec(code, self.locals)
  11. File "<input>", line 1, in <module>
  12. TypeError: crop() takes from 1 to 2 positional arguments but 5 were given
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement