Simple tool to label images for classification. Use the keyboard to label images, moving them into sub-directories ready for training a classifier.
python label_images.py path_to_images
Here's a screenshot of labeling hockey data into away jersey, home jersey, someone that isn't on the rink like a spectator or a referee
The setup is simple: setup a directory with all the images to label and sub-directories in that directory which are your label names (just create empty ones with the names of your labels if they don't exist). The sub-directories will automatically be detected as labels. Files will be moved to those sub-directories as you perform labeling.
The keyboard shortcut when labeling is the first letter of the label name (or the first unused letter if the first letter is already taken by another label). It's highlighted in brackets [] on the UI. You can also click on the UI buttons to label.
path_to_images=/home/myimages/ (contains img1.jpg, img2.jpg...) also contains sub directories which we turn into labels e.g. /home/myimages/cat/, /home/myimages/dog/ etc.
python label_images.py /home/myimages/
git clone https://github.com/marcsto/simple-image-labeler.git
pip install tk