          self._updated_frame_indices.add(frame_index)
          retval = self._frame_faces[frame_index]
          return retval
  
      def _generate_thumbnail(self, face):
          """ Generate the jpg thumbnail from the currently active frame for the detected face and
          assign to it's `thumbnail` attribute.
  
          Parameters
          ----------
          face: class:`~lib.faces_detect.DetectedFace`
              The detected face object to generate the thumbnail for
          """
          face.load_aligned(self._globals.current_frame["image"], 80, force=True)
          jpg = cv2.imencode(".jpg", face.aligned_face, [cv2.IMWRITE_JPEG_QUALITY, 60])[1]
          face.thumbnail = jpg
          face.aligned = dict()
  
      def add(self, frame_index, pnt_x, width, pnt_y, height):
          """ Add a :class:`~lib.faces_detect.DetectedFace` object to the current frame with the
          given dimensions.
  
          Parameters
 
</s> remove         """ Add a :class:`~lib.faces_detect.DetectedFace` object to the current frame with the
 </s> add         """ Add a :class:`~lib.align.DetectedFace` object to the current frame with the </s> remove         face.load_aligned(self._globals.current_frame["image"], 80, force=True)
        jpg = cv2.imencode(".jpg", face.aligned_face, [cv2.IMWRITE_JPEG_QUALITY, 60])[1]
        face.thumbnail = jpg
        face.aligned = dict()
 </s> add         aligned = AlignedFace(face.landmarks_xy,
                              image=self._globals.current_frame["image"],
                              centering="head",
                              size=96)
        face.thumbnail = generate_thumbnail(aligned.face, size=96) </s> remove         face: :class:`lib.faces_detect.DetectedFace`
 </s> add         face: :class:`lib.align.DetectedFace` </s> remove             face.load_aligned(frame, size=self._size, force=True)
            jpg = cv2.imencode(".jpg",
                               face.aligned_face,
                               [cv2.IMWRITE_JPEG_QUALITY, self._jpeg_quality])[1]
            face.thumbnail = jpg
            self._alignments.thumbnails.add_thumbnail(filename, face_idx, jpg)
            face.aligned["face"] = None
 </s> add             aligned = AlignedFace(face.landmarks_xy,
                                  image=frame,
                                  centering="head",
                                  size=96)
            face.thumbnail = generate_thumbnail(aligned.face, size=96)
            self._alignments.thumbnails.add_thumbnail(filename, face_idx, face.thumbnail) </s> remove         """ Delete the :class:`~lib.faces_detect.DetectedFace` object for the given frame and face
 </s> add         """ Delete the :class:`~lib.align.DetectedFace` object for the given frame and face
          self._updated_frame_indices.add(frame_index)
          retval = self._frame_faces[frame_index]
          return retval
  














      def add(self, frame_index, pnt_x, width, pnt_y, height):
          """ Add a :class:`~lib.faces_detect.DetectedFace` object to the current frame with the
          given dimensions.
  
          Parameters
keep keep keep keep replace replace replace replace replace replace replace replace replace replace replace replace replace replace keep keep keep keep keep
 Extract - Increase area and move centering (#1095)

* Extract
  - Implement aligner re-feeding
  - Add extract type to pipeline.ExtractMedia
  - Add pose annotation to debug
* Convert
  - implement centering
  - remove usage of feed and reference face properties
  - Remove distributed option from convert
  - Force update of alignments file on legacy receive
* Train
  - Resize preview image to model output size
  - Force legacy centering if centering does not exist in model's state file
  - Enable training on legacy face sets

* Alignments Tool
  - Update draw to include head/pose
  - Remove DFL drop + linting
  - Remove remove-frames job
  - remove align-eyes option
  - Update legacy masks to new extract type
  - Exit if attempting to merge version 1.0 alignments files with version 2.0 alignments files
  - Re-generate thumbnails on legacy upgrade
* Mask Tool
  - Update for new extract + bugfix full frame
* Manual Tool
  - Update to new extraction method
   - Disable legacy alignments,
   - extract box bugfix
   - extract faces - size to 512 and center on head
* Preview Tool
  - Display based on model centering
* Sort Tool
  - Use alignments for sort by face

* lib.aligner
  - Add Pose Class
  - Add AlignedFace Class
  - center _MEAN_FACE on x
  - Add meta information with versioning to alignments file
  - lib.aligner.get_align_matrix to use landmarks not face
  - Refactor aligned faces in lib.faces_detect
* lib.logger
  - larger file log padding
* lib.config
  - Fix global changeable_items
* lib.face_filter
  - Use new extracted face images
* lib.image
  - bump thumbnail default size to 96px 
tools/manual/detected_faces.py