                          [face.get("x", 0),
                           face.get("y", 0) + face.get("h", 0)]]
          landmarks = face.get("landmarksXY", list())
  
      elif isinstance(face,
                      dlib.rectangle):  # pylint: disable=c-extension-no-member
          bounding_box = [[face.left(), face.top()],
                          [face.right(), face.top()],
                          [face.right(), face.bottom()],
                          [face.left(), face.bottom()]]
          landmarks = list()
      else:
          raise ValueError("Unsupported face type")
  
      logger.trace("Original landmarks: %s", landmarks)
 
</s> remove         Pass in a DetectedFace object, Alignments dict or DLib rectangle"""
 </s> add         Pass in a DetectedFace object, Alignments dict or BoundingBox""" </s> remove         rotated_landmarks = dlib.rectangle(  # pylint: disable=c-extension-no-member
            int(pt_x), int(pt_y), int(pt_x1), int(pt_y1))
 </s> add         rotated_landmarks = BoundingBox(pt_x, pt_y, pt_x1, pt_y1) </s> remove         d_rect, landmarks = extract_data
        alignment["x"] = d_rect.left()
        alignment["w"] = d_rect.right() - d_rect.left()
        alignment["y"] = d_rect.top()
        alignment["h"] = d_rect.bottom() - d_rect.top()
 </s> add         bbox, landmarks = extract_data
        alignment["x"] = bbox.left
        alignment["w"] = bbox.width
        alignment["y"] = bbox.top
        alignment["h"] = bbox.height </s> remove             bounding_box = [dlib.rectangle(  # pylint: disable=c-extension-no-member
                int(face[0]), int(face[1]), int(face[2]), int(face[3]))]
 </s> add             bounding_box = [BoundingBox(face[0], face[1], face[2], face[3])] </s> remove             detected_face.from_dlib_rect(face, image)
 </s> add             detected_face.from_bounding_box(face, image)
    elif isinstance(face, BoundingBox):
        bounding_box = [[face.left, face.top],
                        [face.right, face.top],
                        [face.right, face.bottom],
                        [face.left, face.bottom]]
                          [face.get("x", 0),
                           face.get("y", 0) + face.get("h", 0)]]
          landmarks = face.get("landmarksXY", list())
  
    elif isinstance(face, BoundingBox):
        bounding_box = [[face.left, face.top],
                        [face.right, face.top],
                        [face.right, face.bottom],
                        [face.left, face.bottom]]
    elif isinstance(face, BoundingBox):
        bounding_box = [[face.left, face.top],
                        [face.right, face.top],
                        [face.right, face.bottom],
                        [face.left, face.bottom]]
    elif isinstance(face, BoundingBox):
        bounding_box = [[face.left, face.top],
                        [face.right, face.top],
                        [face.right, face.bottom],
                        [face.left, face.bottom]]
    elif isinstance(face, BoundingBox):
        bounding_box = [[face.left, face.top],
                        [face.right, face.top],
                        [face.right, face.bottom],
                        [face.left, face.bottom]]
    elif isinstance(face, BoundingBox):
        bounding_box = [[face.left, face.top],
                        [face.right, face.top],
                        [face.right, face.bottom],
                        [face.left, face.bottom]]
    elif isinstance(face, BoundingBox):
        bounding_box = [[face.left, face.top],
                        [face.right, face.top],
                        [face.right, face.bottom],
                        [face.left, face.bottom]]
          landmarks = list()
      else:
          raise ValueError("Unsupported face type")
  
      logger.trace("Original landmarks: %s", landmarks)
keep keep keep keep replace replace replace replace replace replace keep keep keep keep keep
 Remove dlib.rectangles. Replace with BoundingBox class 
lib/utils.py