From 96ade3b443569153d6ca427edf7ac86519c117cf Mon Sep 17 00:00:00 2001 From: Guillaume HEUSCH <guillaume.heusch@idiap.ch> Date: Tue, 10 Jul 2018 14:29:32 +0200 Subject: [PATCH] [preprocessor] removed debugging stuff Li preprocessor --- bob/pad/face/preprocessor/LiPulseExtraction.py | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/bob/pad/face/preprocessor/LiPulseExtraction.py b/bob/pad/face/preprocessor/LiPulseExtraction.py index 9225f7e8..35a88d31 100644 --- a/bob/pad/face/preprocessor/LiPulseExtraction.py +++ b/bob/pad/face/preprocessor/LiPulseExtraction.py @@ -111,8 +111,7 @@ class LiPulseExtraction(Preprocessor): for i, frame in enumerate(video): logger.debug("Processing frame {}/{}".format(counter, nb_frames)) - #if self.debug: - if False: + if self.debug: from matplotlib import pyplot pyplot.imshow(numpy.rollaxis(numpy.rollaxis(frame, 2),2)) pyplot.show() @@ -144,8 +143,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 False: + if self.debug: from matplotlib import pyplot display = numpy.copy(frame) for p in ldms: @@ -154,11 +152,9 @@ class LiPulseExtraction(Preprocessor): pyplot.show() ldms = numpy.array(ldms) - #mask_points, mask = kp66_to_mask(frame, ldms, self.indent, self.debug) - mask_points, mask = kp66_to_mask(frame, ldms, self.indent, False) + mask_points, mask = kp66_to_mask(frame, ldms, self.indent, self.debug) - #face_color[i] = compute_average_colors_mask(frame, mask, self.debug) - face_color[i] = compute_average_colors_mask(frame, mask, False) + face_color[i] = compute_average_colors_mask(frame, mask, self.debug) logger.debug("Face color in frame {} = {}".format(i, face_color[i])) previous_ldms = ldms -- GitLab