      logger.trace("Rotating landmarks: (rotation_matrix: %s, type(face): %s",
                   rotation_matrix, type(face))
      if isinstance(face, DetectedFace):
          bounding_box = [[face.x, face.y],
                          [face.x + face.w, face.y],
                          [face.x + face.w, face.y + face.h],
                          [face.x, face.y + face.h]]
          landmarks = face.landmarksXY
 
</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     elif isinstance(face, BoundingBox):
        bounding_box = [[face.left, face.top],
                        [face.right, face.top],
                        [face.right, face.bottom],
                        [face.left, face.bottom]]
 </s> add     # 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"]]] </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) </s> remove         center[1] -= detected_face.height * 0.12
 </s> add         height = detected_face["bottom"] - detected_face["top"]
        width = detected_face["right"] - detected_face["left"]
    # Detected Face Object
      logger.trace("Rotating landmarks: (rotation_matrix: %s, type(face): %s",
                   rotation_matrix, type(face))
    # Detected Face Object
      if isinstance(face, DetectedFace):
          bounding_box = [[face.x, face.y],
                          [face.x + face.w, face.y],
                          [face.x + face.w, face.y + face.h],
                          [face.x, face.y + face.h]]
          landmarks = face.landmarksXY
keep add keep keep keep keep keep keep
 Bugfix: Extract - Remove BoundingBox object and replace with dict 
lib/utils.py