  
  
  class Alignments():
      """ The alignments file is a custom serialized ``.fsa`` file that holds information for each
      frame for a video or series of images.
  
      Specifically, it holds a list of faces that appear in each frame. Each face contains
 
</s> remove _VERSION = 2.0
 </s> add _VERSION = 2.1 </s> remove         """ Iterate through the faces folder pulling out various information """
 </s> add         """ Iterate through the faces folder pulling out various information for each face.

        Yields
        ------
        dict
            A dictionary for each face found containing the keys returned from
            :class:`lib.image.read_image_meta_batch`
        """ </s> remove         process_type = getattr(self, "get_multi_faces_{}".format(self.type))
 </s> add         process_type = getattr(self, "_get_multi_faces_{}".format(self._type)) </s> remove         action = self.job.replace("-", "_")
        processor = getattr(self, "get_{}".format(action))
 </s> add         action = self._job.replace("-", "_")
        processor = getattr(self, "_get_{}".format(action)) </s> remove     def get_multi_faces(self):
 </s> add     def _get_multi_faces(self):
# VERSION TRACKING
# 1.0 - Never really existed. Basically any alignments file prior to version 2.0
# 2.0 - Implementation of full head extract. Any alignments version below this will have used
#       legacy extract
# 2.1 - Alignments data to extracted face PNG header. SHA1 hashes of faces no longer calculated
#       or stored in alignments file

  
  
# VERSION TRACKING
# 1.0 - Never really existed. Basically any alignments file prior to version 2.0
# 2.0 - Implementation of full head extract. Any alignments version below this will have used
#       legacy extract
# 2.1 - Alignments data to extracted face PNG header. SHA1 hashes of faces no longer calculated
#       or stored in alignments file

  class Alignments():
      """ The alignments file is a custom serialized ``.fsa`` file that holds information for each
      frame for a video or series of images.
  
      Specifically, it holds a list of faces that appear in each frame. Each face contains
keep add keep keep keep keep keep
 Update extracted faces to use PNG EXIF data (#1123)

Documentation
  - Update Usage.md, align.rst and image.rst
lib.image.py
  - read_image - Remove hash return, add metadata return
  - Remove read_image_hash functions
  - Add read_image_meta functios
  - Replace encode_image_with_hash with encode_image (to store metadata)
  - Add png meta reading and writing functions
  - Update Image Loaders/Savers to handle metadata rather than hashes
lib.training_data
  - Naming updates to remove references to hashes
lib.align.Alignments
  - Add versioning notes
  - Increment alignments version to 2.1
  - Deprecate hashing lookup functions
  - Replace filter_hashes with filter_faces
lib.align.detected_face
  - DetectedFace
    - Remove hash property
    - Add png header data serializing/deserializing functions
  - Mask
    - Add png header data serializing/deserializing functions
  - add update_legacy_png_header function to update png meta data
lib.cli.args - Deprecate alignments files for training
- plugins.train.trainer
  - Update alignments/mask code to read png header data
- scripts.convert
  - Aligned images folder - read data from png headers
- scripts.extract
  - Write png header information and no longer store hash of face
- tools.alignments
  - remove leftover-faces, merge and update-hashes jobs
  - Update jobs to use png meta data rather than hashes
- tools.manual
  - Update extract code to output png meta data and don't store hashes
  - Perform check on launch that tool is not pointing at a faces folder
tools.mask
  - Update to use png meta data
tools.sort
  - Update to use png meta data 
lib/align/alignments.py