These CLI programs help speed up and improve the manual image categorization process by providing a simple, but effective workflow.
CLI application to classify all images from a specific directory into two categories: A or B.
By calling the CLI application you will define the directory associated with A and B. When a image is classified, it is automatically moved from the source directory to the target directory assigned.
a: Move the shown image to directoryA;b: Move the shown image to directoryB;q: Exit the program;h: Print all commands and instructions in the terminal;
images_dir:- Source directory containing all images that should be classified.
- Kind: Positional argument.
-aor--dir-a:- Directory associated with the category
A.
- Directory associated with the category
bor--dir-b:- Directory associated with the category
B.
- Directory associated with the category
--create-dir:- If used both ,dir-a and dir-b, are going to be created if already do not exist.
$ python manual_binary_categorizer ./dataset/images -a ./target/classA -b ./target/classB --create-dir
CLI application to classify all images from a specific directory into various categories (Maximum of 34 classes).
By calling the CLI application you will define a list of output directories, corresponding to each class you want to classify. This list o directories will be associated with all digits and lower-case letters, in that order. When a image is classified, it is automatically moved from the source directory to the target directory assigned.
digitsandletters: Move the shown image to directory associated;- The directories listed are going to be assigned first by numeric order from [0,9] and then in alphabetical order [a, z].
q: Exit the program;h: Print all commands and instructions in the terminal;
images_dir:- Source directory containing all images that should be classified.
- Kind: Positional argument.
-dor--dir-list:- Output directories separated by space.
--create-dir:- If used both ,dir-a and dir-b, are going to be created if already do not exist.
$ python manual_multiclass_categorizer ./dataset/images -d ./target/classA ./target/classB ./target/classC --create-dir
All requirements are in the requirements.txt file. From pip, just run in the terminal the following command and you are ready to go.
$ pip install -r requirements.txt
Python>=3.8OpenCV>=4.5