              Tasks to be run before any detection is performed.
              Override for specific detector """
          logger.debug("initialize %s (PID: %s, args: %s, kwargs: %s)",
                       self.__class__.__name__, os.getpid(), args, kwargs)
          # 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
          self.init = kwargs.get("event", False)
          self.error = kwargs.get("error", False)
          self.queues["in"] = kwargs["in_queue"]
          self.queues["out"] = kwargs["out_queue"]
  
 
</s> remove from ._base import BoundingBox, Detector, logger
 </s> add from ._base import Detector, logger </s> remove from lib.faces_detect import BoundingBox
 </s> add  </s> remove from lib.faces_detect import BoundingBox, DetectedFace
 </s> add from lib.faces_detect import DetectedFace </s> remove         logger.trace("Created from BoundingBox: (x: %s, w: %s, y: %s. h: %s)",
 </s> add         logger.trace("Created from bounding box dict: (x: %s, w: %s, y: %s. h: %s)", </s> remove     def from_bounding_box(self, bounding_box, image=None):
        """ Set Bounding Box from a BoundingBox """
        logger.trace("Creating from BoundingBox: %s", bounding_box)
        if not isinstance(bounding_box, BoundingBox):
            raise ValueError("Supplied Bounding Box is not a BoundingBox.")
        self.x = bounding_box.left
        self.w = bounding_box.width
        self.y = bounding_box.top
        self.h = bounding_box.height
 </s> add     def from_bounding_box_dict(self, bounding_box_dict, image=None):
        """ Set Bounding Box from a bounding box dict """
        logger.trace("Creating from bounding box dict: %s", bounding_box_dict)
        if not isinstance(bounding_box_dict, dict):
            raise ValueError("Supplied Bounding Box is not a dictionary.")
        self.x = bounding_box_dict["left"]
        self.w = bounding_box_dict["right"] - bounding_box_dict["left"]
        self.y = bounding_box_dict["top"]
        self.h = bounding_box_dict["bottom"] - bounding_box_dict["top"]
              Tasks to be run before any detection is performed.
              Override for specific detector """
          logger.debug("initialize %s (PID: %s, args: %s, kwargs: %s)",
                       self.__class__.__name__, os.getpid(), args, kwargs)





          self.init = kwargs.get("event", False)
          self.error = kwargs.get("error", False)
          self.queues["in"] = kwargs["in_queue"]
          self.queues["out"] = kwargs["out_queue"]
  
keep keep keep keep replace replace replace replace replace keep keep keep keep keep
 Bugfix: Extract - Remove BoundingBox object and replace with dict 
plugins/extract/detect/_base.py