diff --git a/README.md b/README.md index 13755c3..73bb7cc 100644 --- a/README.md +++ b/README.md @@ -129,4 +129,22 @@ The contours returned from `cv2.findContours` are unsorted. By using the `contou See the contents of `demos/sorting_contours.py` #### Output: - \ No newline at end of file + + +## (Recursively) Listing Paths to Images +The `paths` sub-module of `imutils` includes a function to recursively find images based on a root directory. + +#### Example: +Assuming we are in the `demos` directory, let's list the contents of the `../demo_images`: + +
from imutils import paths +for imagePath in paths.list_images("../demo_images"): + print imagePath+ +#### Output: +
../demo_images/bridge.jpg +../demo_images/cactus.jpg +../demo_images/notecard.png +../demo_images/pyimagesearch_logo.jpg +../demo_images/shapes.png +../demo_images/workspace.jpg\ No newline at end of file diff --git a/setup.py b/setup.py index 5383e76..eac4d87 100644 --- a/setup.py +++ b/setup.py @@ -3,7 +3,7 @@ setup( name = 'imutils', packages = ['imutils'], - version = '0.2', + version = '0.2.1', description = 'A series of convenience functions to make basic image processing functions such as translation, rotation, resizing, skeletonization, displaying Matplotlib images, sorting contours, detecting edges, and much more easier with OpenCV and Python.', author = 'Adrian Rosebrock', author_email = 'adrian@pyimagesearch.com',