work on digits_video.py

This commit is contained in:
Alexander Mordvintsev
2012-07-12 11:51:27 +00:00
parent 9f0a16c844
commit 65e2350606
2 changed files with 40 additions and 26 deletions

View File

@@ -10,6 +10,7 @@ if __name__ == '__main__':
try: fn = sys.argv[1]
except: fn = '../cpp/baboon.jpg'
img = cv2.imread(fn)
cv2.imshow('original', img)
modes = cycle(['erode/dilate', 'open/close', 'blackhat/tophat', 'gradient'])
str_modes = cycle(['ellipse', 'rect', 'cross'])