diff --git a/samples/python2/contours.py b/samples/python2/contours.py index 4d90941110..699c1ed786 100644 --- a/samples/python2/contours.py +++ b/samples/python2/contours.py @@ -1,3 +1,12 @@ +''' +This program illustrates the use of findContours and drawContours. +The original image is put up along with the image of drawn contours. + +Usage: + contours.py +A trackbar is put up which controls the contour level from -3 to 3 +''' + import numpy as np import cv2 @@ -30,6 +39,8 @@ def make_image(): return img if __name__ == '__main__': + print __doc__ + img = make_image() h, w = img.shape[:2] diff --git a/samples/python2/edge.py b/samples/python2/edge.py index 759b3c13b0..5a4390fe9f 100644 --- a/samples/python2/edge.py +++ b/samples/python2/edge.py @@ -1,8 +1,21 @@ +''' +This sample demonstrates Canny edge detection. + +Usage: + edge.py [