          alpha = 0.6
          overlay = self.image.copy()
          for idx, roi in enumerate(self.roi):
              if idx != int(live_face):
                  fillPoly(overlay, roi, (0, 0, 0))
          addWeighted(overlay, alpha, self.image, 1 - alpha, 0, self.image)
 
</s> remove             putText(self.image, str(idx), top_left, FONT_HERSHEY_DUPLEX, 1.0,
                    color, thickness)
            polylines(self.image, [roi], True, color, thickness)
 </s> add             cv2.putText(self.image,  # pylint: disable=no-member
                        str(idx),
                        top_left,
                        cv2.FONT_HERSHEY_DUPLEX,  # pylint: disable=no-member
                        1.0,
                        color,
                        thickness)
            cv2.polylines(self.image, [roi], True, color, thickness)  # pylint: disable=no-member
                logger.trace("Greying out face: (idx: %s, roi: %s)", idx, roi)
                cv2.fillPoly(overlay, roi, (0, 0, 0))  # pylint: disable=no-member
        cv2.addWeighted(overlay,  # pylint: disable=no-member
                        alpha,
                        self.image,
                        1 - alpha,
                        0,
                        self.image)
          alpha = 0.6
          overlay = self.image.copy()
          for idx, roi in enumerate(self.roi):
              if idx != int(live_face):
                logger.trace("Greying out face: (idx: %s, roi: %s)", idx, roi)
                cv2.fillPoly(overlay, roi, (0, 0, 0))  # pylint: disable=no-member
        cv2.addWeighted(overlay,  # pylint: disable=no-member
                        alpha,
                        self.image,
                        1 - alpha,
                        0,
                        self.image)
                logger.trace("Greying out face: (idx: %s, roi: %s)", idx, roi)
                cv2.fillPoly(overlay, roi, (0, 0, 0))  # pylint: disable=no-member
        cv2.addWeighted(overlay,  # pylint: disable=no-member
                        alpha,
                        self.image,
                        1 - alpha,
                        0,
                        self.image)
keep keep keep keep replace replace
 Add Face Hashes to Alignments (#550)

* Convert main scripts to use face hashes

* Alignment tool: Use hashes, add logging, add face rename function

* More logging. Update Manual tool to work with hashing 
tools/lib_alignments/annotate.py