diff --git a/imutils/__init__.py b/imutils/__init__.py index d0c9532..a99a64b 100755 --- a/imutils/__init__.py +++ b/imutils/__init__.py @@ -2,7 +2,7 @@ # website: http://www.pyimagesearch.com # set the version number -__version__ = "0.5.0" +__version__ = "0.5.1" # import the necessary packages from .convenience import translate diff --git a/imutils/face_utils/__init__.py b/imutils/face_utils/__init__.py index 1f31695..266c9f5 100644 --- a/imutils/face_utils/__init__.py +++ b/imutils/face_utils/__init__.py @@ -1,6 +1,7 @@ # import the necessary packages from .helpers import FACIAL_LANDMARKS_68_IDXS from .helpers import FACIAL_LANDMARKS_5_IDXS +from .helpers import FACIAL_LANDMARKS_IDXS from .helpers import rect_to_bb from .helpers import shape_to_np from .helpers import visualize_facial_landmarks diff --git a/imutils/face_utils/helpers.py b/imutils/face_utils/helpers.py index 3b85bef..1665967 100644 --- a/imutils/face_utils/helpers.py +++ b/imutils/face_utils/helpers.py @@ -24,6 +24,10 @@ ("nose", (4)) ]) +# in order to support legacy code, we'll default the indexes to the +# 68-point model +FACIAL_LANDMARKS_IDXS = FACIAL_LANDMARKS_68_IDXS + def rect_to_bb(rect): # take a bounding predicted by dlib and convert it # to the format (x, y, w, h) as we would normally do diff --git a/setup.py b/setup.py index d2c9423..24accc8 100644 --- a/setup.py +++ b/setup.py @@ -3,7 +3,7 @@ setup( name='imutils', packages=['imutils', 'imutils.video', 'imutils.io', 'imutils.feature', 'imutils.face_utils'], - version='0.5.0', + version='0.5.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 both Python 2.7 and Python 3.', author='Adrian Rosebrock', author_email='adrian@pyimagesearch.com',