              batch.append(item)
          logger.trace("Returning batch size: %s", len(batch))
          return (exhausted, batch)
  
      # <<< DLIB RECTANGLE METHODS >>> #
      @staticmethod
      def is_mmod_rectangle(d_rectangle):
          """ Return whether the passed in object is
              a dlib.mmod_rectangle """
          return isinstance(
              d_rectangle,
              dlib.mmod_rectangle)  # pylint: disable=c-extension-no-member
  
      def convert_to_dlib_rectangle(self, d_rect):
          """ Convert detected mmod_rects to dlib_rectangle """
          if self.is_mmod_rectangle(d_rect):
              return d_rect.rect
          return d_rect
  
      # <<< MISC METHODS >>> #
      @staticmethod
      def get_vram_free():
          """ Return free and total VRAM on card with most VRAM free"""
          stats = GPUStats()
 
</s> remove     def rotate_rect(d_rect, rotation_matrix):
        """ Rotate a dlib rect based on the rotation_matrix"""
        logger.trace("Rotating d_rectangle")
        d_rect = rotate_landmarks(d_rect, rotation_matrix)
        return d_rect
 </s> add     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 </s> remove     def to_dlib_rect(self):
        """ Return Bounding Box as Dlib Rectangle """
 </s> add     def to_bounding_box(self):
        """ Return Bounding Box as BoundingBox """ </s> remove         """ Return the given bounding box in a dlib rectangle """
 </s> add         """ Return the given bounding box in a BoundingBox """ </s> remove         face = face.to_dlib_rect()
 </s> add         face = face.to_bounding_box() </s> remove         """ Set a dlib rectangle for predetected faces """
 </s> add         """ Set a BoundingBox for predetected faces """
              batch.append(item)
          logger.trace("Returning batch size: %s", len(batch))
          return (exhausted, batch)
  















      # <<< MISC METHODS >>> #
      @staticmethod
      def get_vram_free():
          """ Return free and total VRAM on card with most VRAM free"""
          stats = GPUStats()
keep keep keep keep replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace keep keep keep keep keep
 Remove dlib.rectangles. Replace with BoundingBox class 
plugins/extract/detect/_base.py