Given an image of a flag, identify the name of the flag.
pip install flag-identification
For any of the commands below (except predict_flag
)
- Run
download_flags
to get flag images - Run
move_additional_flags --path /path/to/repo/additional_flags
to include flags not found in wikimedia - Run
prepare_flags
to augment images to prepare for training - Run
train_flags
to get the model - Run
predict_flag --path {image_path}
to cycle through flags from most confident to least confident