Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
rasbt committed Dec 9, 2018
1 parent 9b77efa commit ac80d96
Show file tree
Hide file tree
Showing 3 changed files with 396 additions and 122 deletions.
4 changes: 0 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,6 @@ matrix:
- os: linux
python: 3.6
env: LATEST="true" IMAGE="true" COVERAGE="true" NOTEBOOKS="true" MINICONDA_PYTHON_VERSION=3.7
- os: osx
sudo: required
python: 3.6
env: LATEST="true" IMAGE="true" COVERAGE="false" NOTEBOOKS="false" MINICONDA_PYTHON_VERSION=3.7
- os: linux
sudo: required
python: 3.6
Expand Down
509 changes: 392 additions & 117 deletions docs/sources/user_guide/image/eyepad_align.ipynb

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion mlxtend/image/eyepad_align.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
# License: BSD 3 clause

import os
import warnings
import numpy as np
from . import extract_face_landmarks
from .utils import read_image
Expand Down Expand Up @@ -106,7 +107,7 @@ def fit_directory(self, target_img_dir, target_height,
target_width : int
Expected image width of the images in the directory
Returns
-------
self : object
Expand Down Expand Up @@ -148,6 +149,8 @@ def fit_directory(self, target_img_dir, target_height,
landmarks = extract_face_landmarks(img)
if np.sum(landmarks) is not None: # i.e., None == no face detected
landmarks_list.append(landmarks)
else:
warnings.warn('No face detected in image %s. Image ignored.' % f)
self.target_landmarks_ = np.mean(landmarks_list, axis=0)

props = self._calc_eye_properties(self.target_landmarks_)
Expand Down

0 comments on commit ac80d96

Please sign in to comment.