scripts.processing.rotation

Functions

is_valid_image(image_path)

Check if an image file is readable using OpenCV.

main()

Main script execution.

parse_arguments()

Parse command-line arguments using argparse.

remove_dot_underscore_files(directory)

Remove all files starting with "._" from the specified directory.

validate_model_path(model_path)

Validate the existence and accessibility of the model file.

validate_paths(input_dir, output_dir)

Validate input and output directories and retrieve valid images.