Skip to content

Commit

Permalink
Updated README, submitting version 0.2.1 to PyPi
Browse files Browse the repository at this point in the history
  • Loading branch information
jrosebr1 committed May 7, 2015
1 parent 2e0f35b commit a269851
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
20 changes: 19 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
<img src="docs/images/sorting_contours.png?raw=true" alt="Matplotlib example"/ style="max-width: 500px;">
<img src="docs/images/sorting_contours.png?raw=true" alt="Matplotlib example"/ style="max-width: 500px;">

## (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`:

<pre>from imutils import paths
for imagePath in paths.list_images("../demo_images"):
print imagePath</pre>

#### Output:
<pre>../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</pre>
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = '[email protected]',
Expand Down

0 comments on commit a269851

Please sign in to comment.