diff --git a/bob/pad/face/preprocessor/LiPulseExtraction.py b/bob/pad/face/preprocessor/LiPulseExtraction.py index 3f7f2eec26c3ea9725adefcb747c7750f1944408..eb85dcfec9da85b26d0bcbf389f240db387e4f59 100644 --- a/bob/pad/face/preprocessor/LiPulseExtraction.py +++ b/bob/pad/face/preprocessor/LiPulseExtraction.py @@ -111,7 +111,8 @@ class LiPulseExtraction(Preprocessor): for i, frame in enumerate(video): logger.debug("Processing frame {}/{}".format(counter, nb_frames)) - if self.debug: + #if self.debug: + if False: from matplotlib import pyplot pyplot.imshow(numpy.rollaxis(numpy.rollaxis(frame, 2),2)) pyplot.show() @@ -143,7 +144,7 @@ class LiPulseExtraction(Preprocessor): ldms = previous_ldms logger.warning("Frame {}: no landmarks detected, using the ones from previous frame".format(i)) - if self.debug: + #if self.debug: if False: from matplotlib import pyplot display = numpy.copy(frame)