Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from cv2.cv import iplimage
- from types import *
- im = LoadImage("path/to/image.png")
- def width(self):
- return self.width
- bound_width = MethodType(len, im, iplimage)
- print bound_width() # returns im.width
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement