          # Landmarks should not be extracted again from predetected faces,
          # because face data is lost, resulting in a large variance
          # against extract from original image
          logger.debug("Setting predetected face")
          return [dlib.rectangle(0, 0, width, height)]  # pylint: disable=c-extension-no-member
 
</s> remove         """ Set a dlib rectangle for predetected faces """
 </s> add         """ Set a BoundingBox for predetected faces """ </s> remove     def from_dlib_rect(self, d_rect, image=None):
        """ Set Bounding Box from a Dlib Rectangle """
        logger.trace("Creating from dlib_rectangle: %s", d_rect)
        if not isinstance(d_rect, d_rectangle):
            raise ValueError("Supplied Bounding Box is not a dlib.rectangle.")
        self.x = d_rect.left()
        self.w = d_rect.right() - d_rect.left()
        self.y = d_rect.top()
        self.h = d_rect.bottom() - d_rect.top()
 </s> add     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> remove         logger.trace("Created from dlib_rectangle: (x: %s, w: %s, y: %s. h: %s)",
 </s> add         logger.trace("Created from BoundingBox: (x: %s, w: %s, y: %s. h: %s)", </s> remove         faces = [dlib.rectangle(  # pylint: disable=c-extension-no-member
            int(face[0]), int(face[1]), int(face[2]), int(face[3]))
                 for face in faces]
 </s> add         faces = [BoundingBox(face[0], face[1], face[2], face[3]) for face in faces] </s> remove         faces = [dlib.rectangle(  # pylint: disable=c-extension-no-member
            int(face[0]), int(face[1]), int(face[2]), int(face[3])) for face in faces]
 </s> add         faces = [BoundingBox(face[0], face[1], face[2], face[3]) for face in faces]
        return [BoundingBox(0, 0, width, height)]
          # Landmarks should not be extracted again from predetected faces,
          # because face data is lost, resulting in a large variance
          # against extract from original image
          logger.debug("Setting predetected face")
        return [BoundingBox(0, 0, width, height)]
keep keep keep keep replace
 Remove dlib.rectangles. Replace with BoundingBox class 
plugins/extract/detect/_base.py