                          [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]]
          landmarks = list()
      else:
          raise ValueError("Unsupported face type")
  
      logger.trace("Original landmarks: %s", landmarks)
 
</s> remove     elif isinstance(face, dict):
 </s> add     # Alignments Dict
    elif isinstance(face, dict) and "x" in face: </s> remove         Pass in a DetectedFace object, Alignments dict or BoundingBox"""
 </s> add         Pass in a DetectedFace object, Alignments dict or bounding box dict
        (as defined in lib/plugins/extract/detect/_base.py) """ </s> remove         rotated_landmarks = BoundingBox(pt_x, pt_y, pt_x1, pt_y1)
        face = rotated_landmarks
 </s> add         face["left"] = int(pt_x)
        face["top"] = int(pt_y)
        face["right"] = int(pt_x1)
        face["bottom"] = int(pt_y1) </s> remove         face["w"] = int(pt_x1 - pt_x)
        face["h"] = int(pt_y1 - pt_y)
 </s> add         face["w"] = int(width)
        face["h"] = int(height)
    # Bounding Box Dict
    elif isinstance(face, dict) and "left" in face:
        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())
  
    # Bounding Box Dict
    elif isinstance(face, dict) and "left" in face:
        bounding_box = [[face["left"], face["top"]],
                        [face["right"], face["top"]],
                        [face["right"], face["bottom"]],
                        [face["left"], face["bottom"]]]
    # Bounding Box Dict
    elif isinstance(face, dict) and "left" in face:
        bounding_box = [[face["left"], face["top"]],
                        [face["right"], face["top"]],
                        [face["right"], face["bottom"]],
                        [face["left"], face["bottom"]]]
    # Bounding Box Dict
    elif isinstance(face, dict) and "left" in face:
        bounding_box = [[face["left"], face["top"]],
                        [face["right"], face["top"]],
                        [face["right"], face["bottom"]],
                        [face["left"], face["bottom"]]]
    # Bounding Box Dict
    elif isinstance(face, dict) and "left" in face:
        bounding_box = [[face["left"], face["top"]],
                        [face["right"], face["top"]],
                        [face["right"], face["bottom"]],
                        [face["left"], face["bottom"]]]
    # Bounding Box Dict
    elif isinstance(face, dict) and "left" in face:
        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 keep keep keep keep keep
 Bugfix: Extract - Remove BoundingBox object and replace with dict 
lib/utils.py