Skip to content

Commit

Permalink
Defaulted FACIAL_LANDMARKS_IDXS to default to the 68-point mdoel. Pre…
Browse files Browse the repository at this point in the history
…paring for v0.5.1 release
  • Loading branch information
jrosebr1 committed Aug 22, 2018
1 parent 4635e73 commit d277bb7
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion imutils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions imutils/face_utils/__init__.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 4 additions & 0 deletions imutils/face_utils/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
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', '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='[email protected]',
Expand Down

0 comments on commit d277bb7

Please sign in to comment.