FaceToFile

class tools.alignments.jobs_faces.FaceToFile(alignments: AlignmentData, face_data: list[PNGHeader])

Bases: object

Updates any optional/missing keys in the alignments file with any data that has been populated in a PNGHeader. Includes masks and identity fields.

Parameters:
  • alignments (AlignmentData) – The loaded alignments containing faces to be removed

  • face_data (list[PNGHeader]) – List of PNGHeader objects

Methods Summary

__call__()

Parse through the face data updating any entries in the alignments file.

Methods Documentation

__call__() bool

Parse through the face data updating any entries in the alignments file.

Return type:

True if any alignment information was updated otherwise False

__call__() bool

Parse through the face data updating any entries in the alignments file.

Return type:

True if any alignment information was updated otherwise False