          for detected_face in detected_faces:
              process_face = detected_face.to_dlib_rect()
              center, scale = self.get_center_scale(process_face)
              aligned_image = self.align_image(image, center, scale)
              detected_face.landmarksXY = self.predict_landmarks(aligned_image,
                                                                 center,
                                                                 scale)
  
      def get_center_scale(self, detected_face):
          """ Get the center and set scale of bounding box """
          center = np.array([(detected_face.left()
                              + detected_face.right()) / 2.0,
 
</s> remove         self.obj_detected_face = kwargs["detected_face"]
 </s> add  </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     def __init__(self, verbose=False, align_eyes=False, size=256, padding=48):
 </s> add     def __init__(self, verbose=False):
            landmarks = self.predict_landmarks(aligned_image, center, scale)
            retval.append((detected_face, landmarks))
        return retval
          for detected_face in detected_faces:
              process_face = detected_face.to_dlib_rect()
              center, scale = self.get_center_scale(process_face)
              aligned_image = self.align_image(image, center, scale)
            landmarks = self.predict_landmarks(aligned_image, center, scale)
            retval.append((detected_face, landmarks))
        return retval
            landmarks = self.predict_landmarks(aligned_image, center, scale)
            retval.append((detected_face, landmarks))
        return retval
            landmarks = self.predict_landmarks(aligned_image, center, scale)
            retval.append((detected_face, landmarks))
        return retval
  
      def get_center_scale(self, detected_face):
          """ Get the center and set scale of bounding box """
          center = np.array([(detected_face.left()
                              + detected_face.right()) / 2.0,
keep keep keep keep replace replace replace keep keep keep keep keep
 Remove DetectedFace object from plugins due to multiprocess error 
plugins/extract/align/fan.py