create_dataset.py
def main(name, count, base_dir, clean, camera, run_train):
    """
    Basic script to create a dataset for face recognition app.

    :param name: Name of dataset
    :param count: Count of images to create
    :param base_dir: Base directory for storing the output
    :param clean: Should clean the folder if exists
    :param camera: Camera id for opencv lib
    :param run_train: Should run learning automatically
    """
    # cast strings to bool
    clean = bool(clean)
    run_train = bool(run_train)

    check_basedir(base_dir)
    dataset_dir = process_dataset_directory(base_dir, name, clean)
    create_dataset(dataset_dir, count, camera)
    if not run_train:
        print("Please run faces_train.py to let python learn from new created dataset.")
    else:
        train_faces()

    Basic script to create a dataset for face recognition app.

    :param name: Name of dataset
    :param count: Count of images to create
    :param base_dir: Base directory for storing the output
    :param clean: Should clean the folder if exists
    :param camera: Camera id for opencv lib
    :param run_train: Should run learning automatically
    
Basic script to create a dataset for face recognition app.
Basic script to create a dataset for face recognition app .
def main(name, count, base_dir, clean, camera, run_train):
    clean = bool(clean)
    run_train = bool(run_train)
    check_basedir(base_dir)
    dataset_dir = process_dataset_directory(base_dir, name, clean)
    create_dataset(dataset_dir, count, camera)
    if not run_train:
        print("Please run faces_train.py to let python learn from new created dataset.")
    else:
        train_faces()
def main ( name , count , base_dir , clean , camera , run_train ) : clean = bool ( clean ) run_train = bool ( run_train ) check_basedir ( base_dir ) dataset_dir = process_dataset_directory ( base_dir , name , clean ) create_dataset ( dataset_dir , count , camera ) if not run_train : print ( "Please run faces_train.py to let python learn from new created dataset." ) else : train_faces ( )
Basic script to create a dataset for face recognition app.
Basic script to create a dataset for face recognition app .
"""
    Basic script to create a dataset for face recognition app.

    :param name: Name of dataset
    :param count: Count of images to create
    :param base_dir: Base directory for storing the output
    :param clean: Should clean the folder if exists
    :param camera: Camera id for opencv lib
    :param run_train: Should run learning automatically
    """ # cast strings to bool
name
Name of dataset
Name of dataset
count
Count of images to create
Count of images to create
base_dir
Base directory for storing the output
Base directory for storing the output
clean
Should clean the folder if exists
Should clean the folder if exists
camera
Camera id for opencv lib
Camera id for opencv lib
run_train
Should run learning automatically
Should run learning automatically