added _doc.py -- doc-string ckecking utility

added some sample description
This commit is contained in:
Alexander Mordvintesv
2012-08-22 16:42:19 +03:00
parent 122f59560c
commit d9185ec21b
9 changed files with 95 additions and 36 deletions

View File

@@ -1,8 +1,11 @@
import numpy as np
import cv2
from common import Sketcher
'''
Inpainting sample.
help_message = '''USAGE: inpaint.py [<image>]
Inpainting repairs damage to images by floodfilling
the damage with surrounding image areas.
Usage:
inpaint.py [<image>]
Keys:
SPACE - inpaint
@@ -10,11 +13,15 @@ Keys:
ESC - exit
'''
import numpy as np
import cv2
from common import Sketcher
if __name__ == '__main__':
import sys
try: fn = sys.argv[1]
except: fn = '../cpp/fruits.jpg'
print help_message
print __doc__
img = cv2.imread(fn)
img_mark = img.copy()