labelme

Image Polygonal Annotation with Python (polygon, rectangle, circle, line, point and image-level flag annotation).

https://github.com/wkentaro/labelme

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

annotations classification computer-vision deep-learning image-annotation instance-segmentation python semantic-segmentation video-annotation

Keywords from Contributors

yolov5s onnx distributed music audio deep-neural-networks diffusion tensor yolo spatial-ai
Last synced: 4 months ago · JSON representation ·

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
annotations classification computer-vision deep-learning image-annotation instance-segmentation python semantic-segmentation video-annotation
Created over 9 years ago · Last pushed 5 months ago
Metadata Files
Readme License Citation

README.md


labelme

Image Polygonal Annotation with Python

Installation | Usage | Examples


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:

Packaging status

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

  • --output specifies 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 --config flag.
  • Without the --nosortlabels flag, 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

Examples

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

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

All Time
  • Total Commits: 1,534
  • Total Committers: 68
  • Avg Commits per committer: 22.559
  • Development Distribution Score (DDS): 0.203
Past Year
  • Commits: 139
  • Committers: 6
  • Avg Commits per committer: 23.167
  • Development Distribution Score (DDS): 0.072
Top Committers
Name Email 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...

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
bug (56) issue::bug (20) priority: high (7) help wanted (4) enhancement (4) status: wip-by-author (4) priority: low (3) priority: medium (2) os: windows (1) wontfix (1) pr::feature (1) fix (1)
Pull Request Labels
pr::other (25) pr::fix (23) bug (11) status: wip-by-author (10) enhancement (10) feature (8) fix (7) pr::feature (6) priority: high (5) pr::refactor (4) other (2) status: wip-by-maintainer (2) pr::test (2) pr::chore (2) os: windows (1) pr::docs (1)

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
  • Versions: 195
  • Dependent Packages: 0
  • Dependent Repositories: 1
Rankings
Forks count: 0.1%
Stargazers count: 0.6%
Average: 3.5%
Dependent repos count: 4.8%
Dependent packages count: 8.5%
Last synced: 5 months ago
pypi.org: labelmeamit

Image Polygonal Annotation with Python

  • Versions: 9
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 18 Last month
Rankings
Forks count: 0.2%
Stargazers count: 0.2%
Dependent packages count: 6.6%
Average: 10.4%
Downloads: 14.4%
Dependent repos count: 30.6%
Maintainers (1)
Last synced: 5 months ago
pypi.org: labelme-test

Image Polygonal Annotation with Python

  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 1
  • Downloads: 4 Last month
Rankings
Stargazers count: 0.2%
Forks count: 0.2%
Dependent packages count: 7.4%
Average: 17.0%
Dependent repos count: 22.2%
Downloads: 55.0%
Maintainers (1)
Last synced: 5 months ago
pypi.org: labelme-v1

Image Polygonal Annotation with Python

  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 1
  • Downloads: 6 Last month
Rankings
Stargazers count: 0.2%
Forks count: 0.2%
Dependent packages count: 7.4%
Average: 18.4%
Dependent repos count: 22.2%
Downloads: 62.0%
Maintainers (1)
Last synced: 5 months ago
pypi.org: labelme-v0.1

Image Polygonal Annotation with Python

  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 6 Last month
Rankings
Forks count: 0.2%
Stargazers count: 0.2%
Dependent packages count: 6.6%
Average: 18.7%
Dependent repos count: 30.6%
Downloads: 56.1%
Maintainers (1)
Last synced: 5 months ago
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.

  • Versions: 25
  • Dependent Packages: 0
  • Dependent Repositories: 1
Rankings
Forks count: 2.0%
Stargazers count: 2.9%
Average: 20.1%
Dependent repos count: 24.1%
Dependent packages count: 51.5%
Last synced: 5 months ago
pypi.org: labelme-ytu

Image Polygonal Annotation with Python

  • Versions: 5
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 16 Last month
Rankings
Dependent packages count: 9.5%
Average: 36.1%
Dependent repos count: 62.6%
Maintainers (1)
Last synced: 5 months ago