Skip to content

a tool to create labels for images with an index-based name

License

Notifications You must be signed in to change notification settings

yzwxx/Label_Lab

Repository files navigation

Label_Lab

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.


  demo screenshot

Usage

git clone the repository to your file directory and use the command below to run it on termial:

python lablab.py

HOT KEYS

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

WORKFLOW

  1. Select the image source file containing all the images to be labelled
  2. Select the result json line file
  3. 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.
  4. After creating all the labels,then save them using 'Alt+s'
  5. Move to next image and repeat the procedure from 3~5 untill all images are labelled.
  6. 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.

NOTICE

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.

About

a tool to create labels for images with an index-based name

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published