labelme
Image Polygonal Annotation with Python (polygon, rectangle, circle, line, point and image-level flag annotation).
Science Score: 54.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
✓Committers with academic emails
3 of 68 committers (4.4%) from academic institutions -
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (8.6%) to scientific vocabulary
Keywords
Keywords from Contributors
Repository
Image Polygonal Annotation with Python (polygon, rectangle, circle, line, point and image-level flag annotation).
Basic Info
- Host: GitHub
- Owner: wkentaro
- License: gpl-3.0
- Language: Python
- Default Branch: main
- Homepage: https://labelme.io
- Size: 46.1 MB
Statistics
- Stars: 14,940
- Watchers: 151
- Forks: 3,570
- Open Issues: 169
- Releases: 75
Topics
Metadata Files
README.md

labelme
Image Polygonal Annotation with Python
Description
Labelme is a graphical image annotation tool inspired by http://labelme.csail.mit.edu.
It is written in Python and uses Qt for its graphical interface.

VOC dataset example of instance segmentation.

Other examples (semantic segmentation, bbox detection, and classification).

Various primitives (polygon, rectangle, circle, line, and point).
Features
- [x] Image annotation for polygon, rectangle, circle, line and point. (tutorial)
- [x] Image flag annotation for classification and cleaning. (#166)
- [x] Video annotation. (video annotation)
- [x] GUI customization (predefined labels / flags, auto-saving, label validation, etc). (#144)
- [x] Exporting VOC-format dataset for semantic/instance segmentation. (semantic segmentation, instance segmentation)
- [x] Exporting COCO-format dataset for instance segmentation. (instance segmentation)
Installation
There are 3 options to install labelme:
Option 1: Using pip
For more detail, check "Install Labelme using Terminal"
```bash pip install labelme
To install the latest version from GitHub:
pip install git+https://github.com/wkentaro/labelme.git
```
Option 2: Using standalone executable (Easiest)
If you're willing to invest in the convenience of simple installation without any dependencies (Python, Qt), you can download the standalone executable from "Install Labelme as App".
It's a one-time payment for lifetime access, and it helps us to maintain this project.
Option 3: Using a package manager in each Linux distribution
In some Linux distributions, you can install labelme via their package managers (e.g., apt, pacman). The following systems are currently available:
Usage
Run labelme --help for detail.
The annotations are saved as a JSON file.
```bash labelme # just open gui
tutorial (single image example)
cd examples/tutorial labelme apc2016obj3.jpg # specify image file labelme apc2016obj3.jpg -O apc2016obj3.json # close window after the save labelme apc2016obj3.jpg --nodata # not include image data but relative image path in JSON file labelme apc2016obj3.jpg \ --labels highland6539selfsticknotes,meadindexcards,kongairdogsqueakairtennisball # specify label list
semantic segmentation example
cd examples/semanticsegmentation labelme dataannotated/ # Open directory to annotate all images in it labelme data_annotated/ --labels labels.txt # specify label list with a file ```
Command Line Arguments
--outputspecifies the location that annotations will be written to. If the location ends with .json, a single annotation will be written to this file. Only one image can be annotated if a location is specified with .json. If the location does not end with .json, the program will assume it is a directory. Annotations will be stored in this directory with a name that corresponds to the image that the annotation was made on.- The first time you run labelme, it will create a config file in
~/.labelmerc. You can edit this file and the changes will be applied the next time that you launch labelme. If you would prefer to use a config file from another location, you can specify this file with the--configflag. - Without the
--nosortlabelsflag, the program will list labels in alphabetical order. When the program is run with this flag, it will display labels in the order that they are provided. - Flags are assigned to an entire image. Example
- Labels are assigned to a single polygon. Example
FAQ
- How to convert JSON file to numpy array? See examples/tutorial.
- How to load label PNG file? See examples/tutorial.
- How to get annotations for semantic segmentation? See examples/semantic_segmentation.
- How to get annotations for instance segmentation? See examples/instance_segmentation.
Examples
- Image Classification
- Bounding Box Detection
- Semantic Segmentation
- Instance Segmentation
- Video Annotation
How to build standalone executable
bash
LABELME_PATH=./labelme
OSAM_PATH=$(python -c 'import os, osam; print(os.path.dirname(osam.__file__))')
pyinstaller labelme/labelme/__main__.py \
--name=Labelme \
--windowed \
--noconfirm \
--specpath=build \
--add-data=$(OSAM_PATH)/_models/yoloworld/clip/bpe_simple_vocab_16e6.txt.gz:osam/_models/yoloworld/clip \
--add-data=$(LABELME_PATH)/config/default_config.yaml:labelme/config \
--add-data=$(LABELME_PATH)/icons/*:labelme/icons \
--add-data=$(LABELME_PATH)/translate/*:translate \
--icon=$(LABELME_PATH)/icons/icon.png \
--onedir
Acknowledgement
This repo is the fork of mpitid/pylabelme.
Owner
- Name: Kentaro Wada
- Login: wkentaro
- Kind: user
- Location: Tokyo, Japan
- Company: @mujin
- Website: https://wkentaro.com
- Twitter: wkentaro_
- Repositories: 336
- Profile: https://github.com/wkentaro
Building intelligence to automate more.
Citation (CITATION.cff)
cff-version: 1.2.0 message: "If you use this software, please cite it as below." authors: - family-names: "Wada" given-names: "Kentaro" orcid: "https://orcid.org/0000-0002-6347-5156" title: "Labelme: Image Polygonal Annotation with Python" doi: 10.5281/zenodo.5711226 url: "https://github.com/wkentaro/labelme" license: GPL-3
GitHub Events
Total
- Create event: 43
- Release event: 7
- Issues event: 43
- Watch event: 1,501
- Delete event: 34
- Issue comment event: 130
- Push event: 104
- Pull request review event: 54
- Pull request review comment event: 29
- Pull request event: 108
- Fork event: 212
Last Year
- Create event: 43
- Release event: 7
- Issues event: 43
- Watch event: 1,501
- Delete event: 34
- Issue comment event: 130
- Push event: 104
- Pull request review event: 54
- Pull request review comment event: 29
- Pull request event: 108
- Fork event: 212
Committers
Last synced: 8 months ago
Top Committers
| Name | Commits | |
|---|---|---|
| Kentaro Wada | w****a@g****m | 1,222 |
| Michael Pitidis | m****d@g****m | 152 |
| Martijn Buijs | m****s@g****m | 19 |
| Hussein | s****d | 18 |
| Chen Zhang | t****a@m****m | 10 |
| cmerchant | c****t@c****m | 6 |
| なるみ | w****r@g****m | 6 |
| Bc. Martin Kubovčík | 7****7 | 6 |
| Wang Xin | x****4@g****m | 5 |
| PairZhu | 1****8@q****m | 4 |
| iamgd67 | i****7@s****m | 3 |
| Shohei Fujii | f****i@g****m | 3 |
| Naoya Yamaguchi | 7****i@g****m | 3 |
| Lingjie Zhu | l****u@n****n | 3 |
| LATENTIX\ht | ht@l****m | 3 |
| Alex Myczko | a****x@a****h | 3 |
| IlyaOvodov | 3****v | 3 |
| Michael Litvin | m****l@t****i | 3 |
| taashi-s | x****k@y****p | 2 |
| Grzegorz Ruciński | g****n@m****o | 2 |
| Akshar Patel | a****7@g****m | 2 |
| Christian Clauss | c****s@m****m | 2 |
| Eisoku Kuroiwa | k****a@j****p | 2 |
| Michał Woś | m****0@g****m | 2 |
| Jonne Engelberts | j****s@g****m | 2 |
| Roger Iyengar | ri@r****m | 2 |
| Sergey Shilin | s****n@g****m | 2 |
| Tatiana Malygina | m****a@g****m | 2 |
| haraduka | k****4@g****m | 2 |
| 박상민 | p****r@n****m | 2 |
| and 38 more... | ||
Committer Domains (Top 20 + Academic)
Issues and Pull Requests
Last synced: 4 months ago
All Time
- Total issues: 142
- Total pull requests: 171
- Average time to close issues: 4 months
- Average time to close pull requests: about 2 months
- Total issue authors: 131
- Total pull request authors: 64
- Average comments per issue: 2.72
- Average comments per pull request: 0.66
- Merged pull requests: 83
- Bot issues: 0
- Bot pull requests: 2
Past Year
- Issues: 42
- Pull requests: 92
- Average time to close issues: 16 days
- Average time to close pull requests: 4 days
- Issue authors: 39
- Pull request authors: 18
- Average comments per issue: 0.93
- Average comments per pull request: 0.18
- Merged pull requests: 58
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- monkeycc (5)
- withkun (3)
- ghost (2)
- wkentaro (2)
- sergiud (2)
- Erotemic (2)
- 1215232494 (2)
- raymondwm (1)
- NiHe001 (1)
- jiaerfei (1)
- Vlczech (1)
- polimorfo (1)
- vigneshrajap (1)
- muratcanersen (1)
- wwmwmwm (1)
Pull Request Authors
- wkentaro (84)
- michaelitvin (4)
- Ynjxsjmh (3)
- akx (3)
- mimalakhov (3)
- pelennor (3)
- xiyaowong (3)
- dependabot[bot] (2)
- saladjay (2)
- emmanuel-ferdman (2)
- ardiya (2)
- psomers3 (2)
- umut-ozkan (2)
- ipyffor (2)
- iamfat (2)
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 7
-
Total downloads:
- pypi 50 last-month
-
Total dependent packages: 0
(may contain duplicates) -
Total dependent repositories: 4
(may contain duplicates) - Total versions: 237
- Total maintainers: 3
proxy.golang.org: github.com/wkentaro/labelme
- Documentation: https://pkg.go.dev/github.com/wkentaro/labelme#section-documentation
- License: gpl-3.0
-
Latest release: v5.8.3+incompatible
published 6 months ago
Rankings
pypi.org: labelmeamit
Image Polygonal Annotation with Python
- Homepage: https://github.com/wkentaro/labelme
- Documentation: https://labelmeamit.readthedocs.io/
- License: GPLv3
-
Latest release: 1.0.5.2.8
published over 2 years ago
Rankings
Maintainers (1)
pypi.org: labelme-test
Image Polygonal Annotation with Python
- Homepage: https://github.com/wkentaro/labelme
- Documentation: https://labelme-test.readthedocs.io/
- License: GPLv3
-
Latest release: 3.16.2
published over 6 years ago
Rankings
Maintainers (1)
pypi.org: labelme-v1
Image Polygonal Annotation with Python
- Homepage: https://github.com/wkentaro/labelme
- Documentation: https://labelme-v1.readthedocs.io/
- License: GPLv3
-
Latest release: 3.16.2
published over 6 years ago
Rankings
Maintainers (1)
pypi.org: labelme-v0.1
Image Polygonal Annotation with Python
- Homepage: https://github.com/wkentaro/labelme
- Documentation: https://labelme-v0.1.readthedocs.io/
- License: GPLv3
-
Latest release: 3.16.2
published over 6 years ago
Rankings
Maintainers (1)
conda-forge.org: labelme
Labelme is a graphical image annotation tool inspired by http://labelme.csail.mit.edu. It is written in Python and uses Qt for its graphical interface.
- Homepage: https://github.com/wkentaro/labelme
- License: GPL-3.0-or-later
-
Latest release: 5.1.0
published about 3 years ago
Rankings
pypi.org: labelme-ytu
Image Polygonal Annotation with Python
- Homepage: https://github.com/wkentaro/labelme
- Documentation: https://labelme-ytu.readthedocs.io/
- License: GPLv3
-
Latest release: 5.5.4
published over 1 year ago