Skip to content
Snippets Groups Projects
Commit b86e5bf0 authored by Laurent EL SHAFEY's avatar Laurent EL SHAFEY
Browse files

Merge pull request #1 from ties/fix/init_with_greyscale_image

Localizer.__call__ fails for grayscale images
parents 3c7f94f5 14e151a0
No related branches found
No related tags found
No related merge requests found
...@@ -84,7 +84,7 @@ class Localizer(_flandmark.Localizer): ...@@ -84,7 +84,7 @@ class Localizer(_flandmark.Localizer):
return super(Localizer, self).__call__(gray) return super(Localizer, self).__call__(gray)
elif image.ndim == 2: elif image.ndim == 2:
return super(Localizer, self).__call__(gray) return super(Localizer, self).__call__(image)
else: else:
raise TypeError, "Localizer accepts images as numpy.ndarray objects with either 2 or 3 dimensions" raise TypeError, "Localizer accepts images as numpy.ndarray objects with either 2 or 3 dimensions"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment