label_processing.tensorflow_classifier

Functions

class_prediction(model, class_names, jpg_dir)

Create a dataframe with predicted classes for each picture with memory-safe batch processing.

create_dirs(dataframe, path)

Create separate directories for every class.

filter_pictures(jpg_dir, dataframe[, out_dir])

Create new folders for each class of the newly named classified pictures.

get_model(path_to_model)

Load a trained Keras Sequential image classifier model with cross-platform compatibility.

make_file_name(label_id, pic_class)

Create a fitting filename.

rename_picture(img_raw, path, filename, ...)

Rename the pictures using the predicted class.