          self.y = alignment["y"]
          self.h = alignment["h"]
          self.frame_dims = alignment["frame_dims"]
          self.landmarksXY = alignment["landmarksXY"]
          if image.any():
              self.image_to_face(image)
          logger.trace("Created from alignment: (x: %s, w: %s, y: %s. h: %s, "
                       "frame_dims: %s, landmarks: %s)",
                       self.x, self.w, self.y, self.h, self.frame_dims, self.landmarksXY)
  
 
</s> remove         """ Convert a detected face to alignment dict """
 </s> add         """ Convert a detected face to alignment dict

            NB: frame_dims should be the height and width
                of the original frame. """
 </s> remove             bottom_right = (alignment["x"] + alignment["w"],
                            alignment["y"] + alignment["h"])
            rectangle(self.image, top_left, bottom_right,
                      color, thickness)
 </s> add             bottom_right = (alignment["x"] + alignment["w"], alignment["y"] + alignment["h"])
            logger.trace("Drawing bounding box: (top_left: %s, bottom_right: %s, color: %s, "
                         "thickness: %s)", top_left, bottom_right, color, thickness)
            cv2.rectangle(self.image,  # pylint: disable=no-member
                          top_left,
                          bottom_right,
                          color,
                          thickness)
        # Manual tool does not know the final hash so default to None
        self.hash = alignment.get("hash", None)
        if image is not None and image.any():
          self.y = alignment["y"]
          self.h = alignment["h"]
          self.frame_dims = alignment["frame_dims"]
          self.landmarksXY = alignment["landmarksXY"]
        # Manual tool does not know the final hash so default to None
        self.hash = alignment.get("hash", None)
        if image is not None and image.any():
              self.image_to_face(image)
          logger.trace("Created from alignment: (x: %s, w: %s, y: %s. h: %s, "
                       "frame_dims: %s, landmarks: %s)",
                       self.x, self.w, self.y, self.h, self.frame_dims, self.landmarksXY)
  
keep keep keep keep replace keep keep keep keep keep
 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 
lib/faces_detect.py