It is a tool to create labels for images with an index-based name, written in Python and PyQt4 for graphical interface.
Currently, it supports two image formats, which are jpeg and png, respectively. The outputs are stored in a json line file for easy access.
git clone the repository to your file directory and use the command below to run it on termial:
python lablab.py
key-combo | functionalty |
---|---|
Alt+1 | select image source file |
Alt+2 | select result file |
Alt+3 | clear the input label entry |
Alt+a | move to previous image |
Alt+d | move to next image |
Alt+s | save the current labels |
Alt+q | exit the program |
- Select the image source file containing all the images to be labelled
- Select the result json line file
- Type the label for current image, press 'Enter' to create a new label. If the search bar auto-tip gives what we want just click it and press 'Enter' or just press 'Enter'. Remember to use 'Alt+3' to clear the entry when necessary.
- After creating all the labels,then save them using 'Alt+s'
- Move to next image and repeat the procedure from 3~5 untill all images are labelled.
- If we want to update old labels of one previous image,first move to it and then create and save new labels. The new labels will overwrite the old labels.
Since the tool use the index to refer to each image to be labelled, it is necessary for users to make sure that all the images in the directory is named like 1.jpg, 25.png. This can be easily done by a simple scipt.
The main purpose of this tool is to help creating customized labels other than selecting existing labels. I wrote it just for my own project. Any suggestion or pull request is welcomed.