  
      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)
 
</s> remove         """ Return the given bounding box in a BoundingBox """
 </s> add         """ Return the given bounding box in a bounding box dict """ </s> remove         # Sometimes BoundingBox doesn't get imported from the parent process
        # Hacky fix to import it inside the process
        global BoundingBox  # pylint:disable=global-statement,invalid-name
        from lib.faces_detect import BoundingBox as bb  # pylint:disable=reimported
        BoundingBox = bb
 </s> add  </s> remove from ._base import BoundingBox, Detector, logger
 </s> add from ._base import Detector, logger </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 from ._base import BoundingBox, cv2, Detector, logger
 </s> add from ._base import cv2, Detector, logger
            Must return a list of bounding box dicts (See module docstring)"""
  
      def detect_faces(self, *args, **kwargs):
          """ Detect faces in rgb image
              Override for specific detector
            Must return a list of bounding box dicts (See module docstring)"""
          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
 Bugfix: Extract - Remove BoundingBox object and replace with dict 
plugins/extract/detect/_base.py