PNGHeader

class lib.align.objects.PNGHeader(alignments: PNGAlignments, source: PNGSource)

Bases: DataclassDict

Dataclass for storing all alignment and meta information in PNG Headers.

Methods Summary

from_dict(data_dict)

Load the contents from a serialized python dict into this dataclass

to_dict()

Obtain the contents of the dataclass object as a python dictionary

Methods Documentation

Parameters:
classmethod from_dict(data_dict: dict[str, Any]) Self

Load the contents from a serialized python dict into this dataclass

Parameters:

data_dict (dict[str, Any]) – The data to load into the dataclass

Return type:

Self

to_dict() dict[str, Any]

Obtain the contents of the dataclass object as a python dictionary

Return type:

The dataclass object as a python dictionary, with numpy arrays converted to lists

alignments: PNGAlignments = <dataclasses._MISSING_TYPE object>

The alignment information for the face

source: PNGSource = <dataclasses._MISSING_TYPE object>

The frame source information for the face