          init = kwargs.get("event", False)
          self.init = init
          self.queues["in"] = kwargs["in_queue"]
          self.queues["out"] = kwargs["out_queue"]
          self.obj_detected_face = kwargs["detected_face"]
  
      def detect_faces(self, *args, **kwargs):
          """ Detect faces in rgb image
              Override for specific detector
              Must return a list of dlib rects"""
 
</s> remove     def to_detected_face(self, image, dlib_rects):
        """ Convert list of dlib rectangles to a
            list of DetectedFace objects
            and add the cropped face """
        retval = list()
        for d_rect in dlib_rects:
            if not isinstance(
                    d_rect,
                    dlib.rectangle):  # pylint: disable=c-extension-no-member
                retval.append(list())
                continue
            this_face = copy(self.obj_detected_face)
            this_face.from_dlib_rect(d_rect)
            this_face.image_to_face(image)
            this_face.frame_dims = image.shape[:2]
            retval.append(this_face)
        return retval

 </s> add  </s> remove         detected_faces = self.to_detected_face(output["image"],
                                               output["detected_faces"])
        output["detected_faces"] = detected_faces
 </s> add  </s> remove         # Detected_Face Object. Passed in from initialization to avoid race condition
        self.obj_detected_face = None

 </s> add  </s> remove             detected_face.landmarksXY = self.predict_landmarks(aligned_image,
                                                               center,
                                                               scale)
 </s> add             landmarks = self.predict_landmarks(aligned_image, center, scale)
            retval.append((detected_face, landmarks))
        return retval </s> remove                   "out_queue": out_queue,
                  "detected_face": DetectedFace()}  # Passed in to avoid race condition
 </s> add                   "out_queue": out_queue}
          init = kwargs.get("event", False)
          self.init = init
          self.queues["in"] = kwargs["in_queue"]
          self.queues["out"] = kwargs["out_queue"]

  
      def detect_faces(self, *args, **kwargs):
          """ Detect faces in rgb image
              Override for specific detector
              Must return a list of dlib rects"""
keep keep keep keep replace keep keep keep keep keep
 Remove DetectedFace object from plugins due to multiprocess error 
plugins/extract/detect/_base.py