This repository is a fork of the popular image annotation tool, LabelImg, originally created by Tzutalin. This fork includes several improvements and bug fixes contributed by various developers. Below is a summary of the changes and enhancements made in this version:
- Dark Mode: Added dark mode support using the
qdarkstyle
library, contributed by mrzahaki. - Issue 825 Fix: Resolved the issue where pressing Ctrl+D with no label caused
labelImg.py
to crash, fixed by aeeeeeep. - Issue 465 Fix: Fixed the issue where saving YOLO labels corrupted
classes.txt
, resolved by POONAM2015. - Popup Position: Changed the position of pop-up windows, improved by lsh0902.
- PyQt4 Deprecation: Gradual removal of PyQt4 in progress.
- Polygon Vertex Logic: Improved logic for finding polygon vertices to enhance clickability.
- Auto annotate: Added the function of automatic annotation of the image using the Ultralytics module.
-
Open
cmd
and navigate to thelabelImg
directory. -
Run:
pip install -r requirements.txt
-
Run:
pyrcc5 -o libs/resources.py resources.qrc
-
Execute the application:
python labelImg.py
Key Combination | Action |
---|---|
Space | Auto annotate current image |
Ctrl + u | Load all images from a directory |
Ctrl + r | Change the default annotation target dir |
Ctrl + s | Save |
Ctrl + d | Copy the current label and rect box |
Ctrl + Shift + d | Delete the current image |
Ctrl + Space | Flag the current image as verified |
w | Create a rect box |
d | Next image |
a | Previous image |
del | Delete the selected rect box |
Ctrl++ | Zoom in |
Ctrl-- | Zoom out |
↑→↓← | Move selected rect box with keyboard arrows |