LabelImg is a graphical image annotation tool and label object bounding boxes in images (Modified Version)
Project description
Adapted LabelImg for Enhanced User Experience
This repository is a copy from HumanSignal/labelImg. The original repository is archived and no longer being maintained. So I make a copy from the latest version (1.8.6) to modify some function and fix some error for personal use.
Installation
Install with pip
pip install -U mlabelImg
Install from source
git clone https://github.com/PD-Mera/mlabelImg
pip install pyqt5 lxml
pyrcc5 -o mlabelImg/libs/resources.py mlabelImg/resources.qrc
pip install -e mlabelImg
Usage
Setup directory
Create a folder structure same as below
├── data
├── images
└── labels
Put all of your image in images
directory. And create a classes.txt
contain all class you want to label. Example of classes.txt
as below
dog
cat
pig
Put classes.txt
in 2 place, in labels
directory and same level as labels
directory
Full structure of workspace as below
├── data
├── images
│ ├── img1.jpg
│ ├── img2.jpg
│ └── ...
├── labels
│ └── classes.txt
└── classes.txt
Run mlabelImg
Run mlabelImg with
# mlabelImg [IMAGE_PATH] [PRE-DEFINED CLASS FILE]
mlabelImg .\data\images\ .\data\classes.txt
On GUI of labelImg:
-
File -> Change Save Dir -> (save label directory)
-
Choose
YOLO
format on the left tray
Next and previous image with D -> A
Label with W
Delete .\data\classes.txt
after labeling
Label format
With YOLO
format, label will be saved with format label_index x_center y_center w h
and normalize to scale [0, 1]
1 0.415842 0.863095 0.102970 0.101190
1 0.228713 0.315476 0.077228 0.053571
1 0.756436 0.328869 0.114851 0.050595
Reference
-
Author: TzuTa Lin
-
Author Email: tzu.ta.lin@gmail.com
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file mlabelimg-1.8.8.post1.tar.gz
.
File metadata
- Download URL: mlabelimg-1.8.8.post1.tar.gz
- Upload date:
- Size: 247.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d11f93723e5807065674d2695865ee296bcffec61d640edad96f59d32556b282 |
|
MD5 | 86efce941bc7eec8e983c61204266468 |
|
BLAKE2b-256 | a8d78d2313d3a928b741c48af6341904cc3f10c1d5a4130dbcac87fdb64c82e8 |
File details
Details for the file mlabelImg-1.8.8.post1-py2.py3-none-any.whl
.
File metadata
- Download URL: mlabelImg-1.8.8.post1-py2.py3-none-any.whl
- Upload date:
- Size: 258.8 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f0c8e8ff21b9e725038247735f1f528be3a40428ea13a45c69a77e3e89dd7c68 |
|
MD5 | bb2b66f424e9ad0ea150dcae90a458a2 |
|
BLAKE2b-256 | 6dafc6e4e0217270b7135be7c67807ba57bac4c08e59d0d58a5851f6a1448cca |