  def rotate_landmarks(face, rotation_matrix):
      # pylint:disable=c-extension-no-member
      """ Rotate the landmarks and bounding box for faces
          found in rotated images.
          Pass in a DetectedFace object, Alignments dict or BoundingBox"""
      logger = logging.getLogger(__name__)  # pylint:disable=invalid-name
      logger.trace("Rotating landmarks: (rotation_matrix: %s, type(face): %s",
                   rotation_matrix, type(face))
      if isinstance(face, DetectedFace):
          bounding_box = [[face.x, face.y],
 
</s> remove         """ Rotate a BoundingBox based on the rotation_matrix"""
        logger.trace("Rotating BoundingBox")
 </s> add         """ Rotate a bounding box dict based on the rotation_matrix"""
        logger.trace("Rotating bounding box") </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     elif isinstance(face, dict):
 </s> add     # Alignments Dict
    elif isinstance(face, dict) and "x" in face: </s> remove from lib.faces_detect import BoundingBox, DetectedFace
 </s> add from lib.faces_detect import DetectedFace
        Pass in a DetectedFace object, Alignments dict or bounding box dict
        (as defined in lib/plugins/extract/detect/_base.py) """
  def rotate_landmarks(face, rotation_matrix):
      # pylint:disable=c-extension-no-member
      """ Rotate the landmarks and bounding box for faces
          found in rotated images.
        Pass in a DetectedFace object, Alignments dict or bounding box dict
        (as defined in lib/plugins/extract/detect/_base.py) """
      logger = logging.getLogger(__name__)  # pylint:disable=invalid-name
      logger.trace("Rotating landmarks: (rotation_matrix: %s, type(face): %s",
                   rotation_matrix, type(face))
      if isinstance(face, DetectedFace):
          bounding_box = [[face.x, face.y],
keep keep keep keep replace keep keep keep keep keep
 Bugfix: Extract - Remove BoundingBox object and replace with dict 
lib/utils.py