Skip to main content

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.

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mlabelimg-1.8.9.post2.tar.gz (247.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mlabelImg-1.8.9.post2-py2.py3-none-any.whl (259.1 kB view details)

Uploaded Python 2Python 3

File details

Details for the file mlabelimg-1.8.9.post2.tar.gz.

File metadata

  • Download URL: mlabelimg-1.8.9.post2.tar.gz
  • Upload date:
  • Size: 247.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.8

File hashes

Hashes for mlabelimg-1.8.9.post2.tar.gz
Algorithm Hash digest
SHA256 7e353bca13f837af94ad7df25c030de94647ef622d5c0fc37d9db0d36925ff20
MD5 21739bcd2520388ec41fc039e7330737
BLAKE2b-256 29817116c78d9cb7e02f15eca397ae61aaa50749068c8ca5d8a95acbb2b63478

See more details on using hashes here.

File details

Details for the file mlabelImg-1.8.9.post2-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for mlabelImg-1.8.9.post2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 d236e80972e0fb3809fa19c3d4eea560f804435545529ae704ddfdb2918de6e9
MD5 e2a53191d87093bd6f37296044040e9b
BLAKE2b-256 63ab71e207a07514a6143aafba440df85cea97033922192e79fecdfb4db61772

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page