HumanSignal / labelImg

LabelImg is now part of the Label Studio community. The popular image annotation tool created by Tzutalin is no longer actively being developed, but you can check out Label Studio, the open source data labeling tool for images, text, hypertext, audio, video and time-series data.
https://youtu.be/p0nR2YsCY_U
MIT License
22.15k stars 6.23k forks source link

Feature Request: Root Folder Flag #1006

Open sohang3112 opened 11 months ago

sohang3112 commented 11 months ago

I would like to request a new feature for labelimg: a root folder flag. This flag would allow users to specify the root folder for their images, labels, and classes.txt file when running labelimg from the command line.

For example, running labelimg --root=/path/to/folder/ would mean that the images folder is located at /path/to/folder/images/, the labels save folder is located at /path/to/folder/labels/, and the classes.txt file is located at /path/to/folder/labels/classes.txt. If a classes.txt file already exists in the specified location, it should be used.

Visually, the file structure would look like:

/path/to/folder
|- images/     
    |- *.jpg, *.png, etc.
|- labels/
    |- classes.txt
    |- *.txt - YOLO annotation label files

This feature would make it easier to organize images and annotations.