IMG_EXTENSIONS_2D

IMG_EXTENSIONS_2D

Contains the typical 2D file-extensions for images.

LMK_EXTENSIONS

LMK_EXTENSIONS

Contains all supported file-extensions for landmark files.

is_image_file

is_image_file(filename)[source]

Helper Function to determine whether a file is an image file or not

Parameters:filename (str) – the filename containing a possible image
Returns:True if file is image file, False otherwise
Return type:bool

is_landmark_file

is_landmark_file(filename)[source]

Helper Function to determine whether a file is a landmark file or not

Parameters:filename (str) – the filename containing possible landmarks
Returns:True if file is landmark file, False otherwise
Return type:bool

make_dataset

make_dataset(dir)[source]

Helper Function to make a dataset containing all images in a certain directory

Parameters:dir (the directory containing the dataset) –
Returns:list of image paths
Return type:list