Skip to main content

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.

Original README

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

Release files for mlabelImg 1.8.9.post2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mlabelImg 1.8.9.post2
File Size Uploaded
mlabelimg-1.8.9.post2.tar.gz 247.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mlabelImg 1.8.9.post2
File Interpreter ABI Platform
mlabelImg-1.8.9.post2-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 506.6 kB

Release files / mlabelimg-1.8.9.post2.tar.gz

Download URL mlabelimg-1.8.9.post2.tar.gz
Size 247.5 kB
Tags Source
SHA-256 checksum
How to use checksums
7e353bca13f837af94ad7df25c030de94647ef622d5c0fc37d9db0d36925ff20
BLAKE2b-256 checksum
How to use checksums
29817116c78d9cb7e02f15eca397ae61aaa50749068c8ca5d8a95acbb2b63478
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.11.8

Release files / mlabelImg-1.8.9.post2-py2.py3-none-any.whl

Download URL mlabelImg-1.8.9.post2-py2.py3-none-any.whl
Size 259.1 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
d236e80972e0fb3809fa19c3d4eea560f804435545529ae704ddfdb2918de6e9
BLAKE2b-256 checksum
How to use checksums
63ab71e207a07514a6143aafba440df85cea97033922192e79fecdfb4db61772
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.11.8

Release history Release notifications | RSS feed

This release

1.8.9.post2 This release

2 release files

1.8.9

2 release files

1.8.8

2 release files

1.8.7

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page