          return self.rotate_image_by_angle(image, angle)
  
      @staticmethod
      def rotate_rect(bounding_box, rotation_matrix):
          """ Rotate a BoundingBox based on the rotation_matrix"""
          logger.trace("Rotating BoundingBox")
          bounding_box = rotate_landmarks(bounding_box, rotation_matrix)
          return bounding_box
  
      @staticmethod
      def rotate_image_by_angle(image, angle,
 
</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         face = face.to_bounding_box()
 </s> add         face = face.to_bounding_box_dict() </s> remove     def set_predetected(width, height):
        """ Set a BoundingBox for predetected faces """
 </s> add     def to_bounding_box_dict(left, top, right, bottom):
        """ Return a dict for the bounding box """
        return dict(left=int(round(left)),
                    right=int(round(right)),
                    top=int(round(top)),
                    bottom=int(round(bottom)))

    def set_predetected(self, width, height):
        """ Set a bounding box dict for predetected faces """ </s> remove             bounding_box = [BoundingBox(face[0], face[1], face[2], face[3])]
 </s> add             bounding_box = [self.to_bounding_box_dict(face[0], face[1], face[2], face[3])]
        """ Rotate a bounding box dict based on the rotation_matrix"""
        logger.trace("Rotating bounding box")
          return self.rotate_image_by_angle(image, angle)
  
      @staticmethod
      def rotate_rect(bounding_box, rotation_matrix):
        """ Rotate a bounding box dict based on the rotation_matrix"""
        logger.trace("Rotating bounding box")
        """ Rotate a bounding box dict based on the rotation_matrix"""
        logger.trace("Rotating bounding box")
          bounding_box = rotate_landmarks(bounding_box, rotation_matrix)
          return bounding_box
  
      @staticmethod
      def rotate_image_by_angle(image, angle,
keep keep keep keep replace replace keep keep keep keep keep
 Bugfix: Extract - Remove BoundingBox object and replace with dict 
plugins/extract/detect/_base.py