  
      def detect_faces(self, *args, **kwargs):
          """ Detect faces in rgb image
              Override for specific detector
              Must return a list of dlib rects"""
          try:
              if not self.init:
                  self.initialize(*args, **kwargs)
          except ValueError as err:
              logger.error(err)
 
</s> remove         """ Return the given bounding box in a dlib rectangle """
 </s> add         """ Return the given bounding box in a BoundingBox """ </s> remove         """ Set a dlib rectangle for predetected faces """
 </s> add         """ Set a BoundingBox for predetected faces """ </s> remove from ._base import Detector, dlib, logger
 </s> add from ._base import BoundingBox, Detector, logger </s> remove             logger.error("Error initializing FAN. Trying Dlib")
 </s> add             logger.error("Error initializing FAN. Trying CV2-DNN") </s> remove from ._base import cv2, Detector, dlib, logger
 </s> add from ._base import BoundingBox, cv2, Detector, logger
            Must return a list of BoundingBox's"""
  
      def detect_faces(self, *args, **kwargs):
          """ Detect faces in rgb image
              Override for specific detector
            Must return a list of BoundingBox's"""
          try:
              if not self.init:
                  self.initialize(*args, **kwargs)
          except ValueError as err:
              logger.error(err)
keep keep keep keep replace keep keep keep keep keep
 Remove dlib.rectangles. Replace with BoundingBox class 
plugins/extract/detect/_base.py