Science Score: 44.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
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (7.5%) to scientific vocabulary
Last synced: 6 months ago · JSON representation ·

Repository

Basic Info
  • Host: GitHub
  • Owner: lexian24
  • License: gpl-3.0
  • Language: Python
  • Default Branch: main
  • Size: 12.5 MB
Statistics
  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Created 8 months ago · Last pushed 8 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 Pip".

```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: Lx
  • Login: lexian24
  • Kind: user

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
  • Push event: 1
Last Year
  • Push event: 1

Dependencies

pyproject.toml pypi
  • imgviz *
  • loguru *
  • matplotlib *
  • natsort >=7.1.0
  • numpy *
  • osam >=0.2.3
  • pillow >=2.8
  • pyqt5 >=5.14.0
  • pyqt5-qt5 !=5.15.13 ; sys_platform == 'linux'
  • pyqt5-qt5 !=5.15.11,!=5.15.12,!=5.15.13,!=5.15.14,!=5.15.15,!=5.15.16 ; sys_platform == 'win32'
  • pyyaml *
  • scikit-image *
  • torch *
  • torchvision *
  • transformers *
uv.lock pypi
  • annotated-types 0.7.0
  • backports-tarfile 1.2.0
  • beautifulsoup4 4.13.3
  • certifi 2025.1.31
  • cffi 1.17.1
  • charset-normalizer 3.4.1
  • click 8.1.8
  • colorama 0.4.6
  • coloredlogs 15.0.1
  • contourpy 1.3.0
  • contourpy 1.3.1
  • cryptography 44.0.2
  • cycler 0.12.1
  • docutils 0.21.2
  • exceptiongroup 1.2.2
  • filelock 3.17.0
  • flatbuffers 25.2.10
  • fonttools 4.56.0
  • gdown 5.2.0
  • humanfriendly 10.0
  • id 1.5.0
  • idna 3.10
  • imageio 2.37.0
  • imgviz 1.7.6
  • importlib-metadata 8.6.1
  • importlib-resources 6.5.2
  • iniconfig 2.0.0
  • jaraco-classes 3.4.0
  • jaraco-context 6.0.1
  • jaraco-functools 4.1.0
  • jeepney 0.9.0
  • keyring 25.6.0
  • kiwisolver 1.4.7
  • kiwisolver 1.4.8
  • labelme 5.8.1
  • lazy-loader 0.4
  • loguru 0.7.3
  • markdown-it-py 3.0.0
  • matplotlib 3.9.4
  • matplotlib 3.10.1
  • mdurl 0.1.2
  • more-itertools 10.6.0
  • mpmath 1.3.0
  • mypy 1.15.0
  • mypy-extensions 1.0.0
  • natsort 8.4.0
  • networkx 3.2.1
  • networkx 3.4.2
  • nh3 0.2.21
  • numpy 2.0.2
  • numpy 2.2.3
  • onnxruntime 1.19.2
  • osam 0.2.3
  • packaging 24.2
  • pillow 11.1.0
  • pluggy 1.5.0
  • protobuf 5.29.3
  • pycparser 2.22
  • pydantic 2.10.6
  • pydantic-core 2.27.2
  • pygments 2.19.1
  • pyparsing 3.2.1
  • pyqt5 5.15.11
  • pyqt5-qt5 5.15.2
  • pyqt5-qt5 5.15.13
  • pyqt5-qt5 5.15.16
  • pyqt5-sip 12.17.0
  • pyreadline3 3.5.4
  • pysocks 1.7.1
  • pytest 8.3.5
  • pytest-qt 4.4.0
  • python-dateutil 2.9.0.post0
  • pywin32-ctypes 0.2.3
  • pyyaml 6.0.2
  • readme-renderer 44.0
  • requests 2.32.3
  • requests-toolbelt 1.0.0
  • rfc3986 2.0.0
  • rich 13.9.4
  • ruff 0.1.9
  • scikit-image 0.24.0
  • scikit-image 0.25.2
  • scipy 1.13.1
  • scipy 1.15.2
  • secretstorage 3.3.3
  • six 1.17.0
  • soupsieve 2.6
  • sympy 1.13.3
  • tifffile 2024.8.30
  • tifffile 2025.2.18
  • tomli 2.2.1
  • tqdm 4.67.1
  • twine 6.1.0
  • types-pillow 10.2.0.20240822
  • types-pyyaml 6.0.12.20241230
  • typing-extensions 4.12.2
  • urllib3 2.3.0
  • win32-setctime 1.2.0
  • zipp 3.21.0