Commit 5414395a authored by Tiago de Freitas Pereira's avatar Tiago de Freitas Pereira
Browse files

Make Tan&Triggs work as functools

parent e3711a79
Pipeline #38939 failed with stage
in 8 minutes and 13 seconds
......@@ -97,8 +97,18 @@ class TanTriggs (Base):
face : 2D :py:class:`numpy.ndarray`
The cropped and photometrically enhanced face.
"""
if not isinstance(self.cropper, bob.bio.face.preprocessor.FaceCrop):
self.cropper = self.cropper()
image = self.color_channel(image)
if self.cropper is not None:
image = self.cropper.crop_face(image, annotations)
import numpy
if numpy.all(numpy.isnan(self.tan_triggs(image))):
import ipdb; ipdb.set_trace()
pass
image = self.tan_triggs(image)
return self.data_type(image)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment