                                                 output["detected_faces"])
          output["detected_faces"] = detected_faces
          self.queues["out"].put(output)
  
      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
  
      # <<< DETECTION IMAGE COMPILATION METHODS >>> #
      def compile_detection_image(self, image, is_square, scale_up):
          """ Compile the detection image """
          self.set_scale(image, is_square=is_square, scale_up=scale_up)
          return self.set_detect_image(image)
 
</s> remove         detected_faces = self.to_detected_face(output["image"],
                                               output["detected_faces"])
        output["detected_faces"] = detected_faces
 </s> add  </s> remove         self.obj_detected_face = kwargs["detected_face"]
 </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}
                                                 output["detected_faces"])
          output["detected_faces"] = detected_faces
          self.queues["out"].put(output)
  


















      # <<< DETECTION IMAGE COMPILATION METHODS >>> #
      def compile_detection_image(self, image, is_square, scale_up):
          """ Compile the detection image """
          self.set_scale(image, is_square=is_square, scale_up=scale_up)
          return self.set_detect_image(image)
keep keep keep keep replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace keep keep keep keep keep
 Remove DetectedFace object from plugins due to multiprocess error 
plugins/extract/detect/_base.py