ThumbsCreator

class tools.manual.thumbnails.ThumbsCreator(detected_faces: DetectedFaces, input_location: str, single_process: bool)

Bases: object

Background loader to generate thumbnails for the alignments file. Generates low resolution thumbnails in parallel threads for faster processing.

Parameters:
  • detected_faces (DetectedFaces) – The DetectedFace objects for this video

  • input_location (str) – The location of the input folder of frames or video file

  • single_process (bool) – True to generated thumbs in a single process otherwise False

Attributes Summary

has_thumbs

True if the alignments file holds thumbnail images otherwise False.

Methods Summary

generate_cache()

Extract the face thumbnails from a video or folder of images into the alignments file

Attributes Documentation

has_thumbs

True if the alignments file holds thumbnail images otherwise False.

Methods Documentation

generate_cache() None

Extract the face thumbnails from a video or folder of images into the alignments file

Return type:

None

generate_cache() None

Extract the face thumbnails from a video or folder of images into the alignments file

Return type:

None

property has_thumbs: bool

True if the alignments file holds thumbnail images otherwise False.