1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-31 00:03:03 +04:00

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
+11 -6
View File
@@ -1,20 +1,25 @@
import numpy as np
import cv2
import cv2.cv as cv
from common import make_cmap
'''
Distance transform sample.
help_message = '''USAGE: distrans.py [<image>]
Usage:
distrans.py [<image>]
Keys:
ESC - exit
v - toggle voronoi mode
'''
import numpy as np
import cv2
import cv2.cv as cv
from common import make_cmap
if __name__ == '__main__':
import sys
try: fn = sys.argv[1]
except: fn = '../cpp/fruits.jpg'
print help_message
print __doc__
img = cv2.imread(fn, 0)
cm = make_cmap('jet')