Full Code of wkentaro/labelme for AI

main 89a615e5d777 cached
162 files
1.1 MB
342.9k tokens
428 symbols
1 requests
Download .txt
Showing preview only (1,132K chars total). Download the full file or copy to clipboard to get everything.
Repository: wkentaro/labelme
Branch: main
Commit: 89a615e5d777
Files: 162
Total size: 1.1 MB

Directory structure:
gitextract_ghzsofy7/

├── .claude/
│   └── CLAUDE.md
├── .git-blame-ignore-revs
├── .github/
│   ├── ISSUE_TEMPLATE/
│   │   ├── 1.bug_report.yml
│   │   └── config.yml
│   └── workflows/
│       ├── ci.yml
│       ├── cla.yml
│       └── discord-notify.yml
├── .gitignore
├── .gitmodules
├── .python-version
├── CITATION.cff
├── CLA.md
├── LICENSE
├── Makefile
├── README.md
├── examples/
│   ├── bbox_detection/
│   │   ├── README.md
│   │   ├── data_annotated/
│   │   │   ├── 2011_000003.json
│   │   │   ├── 2011_000006.json
│   │   │   └── 2011_000025.json
│   │   ├── data_dataset_voc/
│   │   │   ├── Annotations/
│   │   │   │   ├── 2011_000003.xml
│   │   │   │   ├── 2011_000006.xml
│   │   │   │   └── 2011_000025.xml
│   │   │   └── class_names.txt
│   │   ├── labelme2voc.py
│   │   └── labels.txt
│   ├── classification/
│   │   ├── README.md
│   │   ├── data_annotated/
│   │   │   ├── 0001.json
│   │   │   └── 0002.json
│   │   └── flags.txt
│   ├── instance_segmentation/
│   │   ├── README.md
│   │   ├── data_annotated/
│   │   │   ├── 2011_000003.json
│   │   │   ├── 2011_000006.json
│   │   │   └── 2011_000025.json
│   │   ├── data_dataset_coco/
│   │   │   └── annotations.json
│   │   ├── data_dataset_voc/
│   │   │   ├── SegmentationClassNpy/
│   │   │   │   ├── 2011_000003.npy
│   │   │   │   ├── 2011_000006.npy
│   │   │   │   └── 2011_000025.npy
│   │   │   ├── SegmentationObjectNpy/
│   │   │   │   ├── 2011_000003.npy
│   │   │   │   ├── 2011_000006.npy
│   │   │   │   └── 2011_000025.npy
│   │   │   └── class_names.txt
│   │   ├── labelme2coco.py
│   │   ├── labelme2voc.py
│   │   └── labels.txt
│   ├── primitives/
│   │   └── primitives.json
│   ├── semantic_segmentation/
│   │   ├── README.md
│   │   ├── data_annotated/
│   │   │   ├── 2011_000003.json
│   │   │   ├── 2011_000006.json
│   │   │   └── 2011_000025.json
│   │   ├── data_dataset_voc/
│   │   │   ├── SegmentationClassNpy/
│   │   │   │   ├── 2011_000003.npy
│   │   │   │   ├── 2011_000006.npy
│   │   │   │   └── 2011_000025.npy
│   │   │   └── class_names.txt
│   │   └── labels.txt
│   ├── tutorial/
│   │   ├── README.md
│   │   ├── apc2016_obj3/
│   │   │   └── label_names.txt
│   │   ├── apc2016_obj3.json
│   │   ├── draw_json.py
│   │   ├── draw_label_png.py
│   │   ├── export_json.py
│   │   └── load_label_png.py
│   └── video_annotation/
│       ├── README.md
│       ├── data_annotated/
│       │   ├── 00000100.json
│       │   ├── 00000101.json
│       │   ├── 00000102.json
│       │   ├── 00000103.json
│       │   └── 00000104.json
│       ├── data_dataset_voc/
│       │   ├── SegmentationClass/
│       │   │   ├── 00000100.npy
│       │   │   ├── 00000101.npy
│       │   │   ├── 00000102.npy
│       │   │   ├── 00000103.npy
│       │   │   └── 00000104.npy
│       │   └── class_names.txt
│       └── labels.txt
├── labelme/
│   ├── __init__.py
│   ├── __main__.py
│   ├── _automation/
│   │   ├── __init__.py
│   │   ├── _osam_session.py
│   │   ├── bbox_from_text.py
│   │   └── polygon_from_mask.py
│   ├── _label_file.py
│   ├── app.py
│   ├── config/
│   │   ├── __init__.py
│   │   └── default_config.yaml
│   ├── shape.py
│   ├── testing.py
│   ├── translate/
│   │   ├── de_DE.qm
│   │   ├── de_DE.ts
│   │   ├── es_ES.qm
│   │   ├── es_ES.ts
│   │   ├── fa_IR.qm
│   │   ├── fa_IR.ts
│   │   ├── fr_FR.qm
│   │   ├── fr_FR.ts
│   │   ├── hu_HU.qm
│   │   ├── hu_HU.ts
│   │   ├── it_IT.qm
│   │   ├── it_IT.ts
│   │   ├── ja_JP.qm
│   │   ├── ja_JP.ts
│   │   ├── ko_KR.qm
│   │   ├── ko_KR.ts
│   │   ├── nl_NL.qm
│   │   ├── nl_NL.ts
│   │   ├── pl_PL.qm
│   │   ├── pl_PL.ts
│   │   ├── pt_BR.qm
│   │   ├── pt_BR.ts
│   │   ├── th_TH.qm
│   │   ├── th_TH.ts
│   │   ├── tr_TR.qm
│   │   ├── tr_TR.ts
│   │   ├── vi_VN.qm
│   │   ├── vi_VN.ts
│   │   ├── zh_CN.qm
│   │   ├── zh_CN.ts
│   │   ├── zh_TW.qm
│   │   └── zh_TW.ts
│   ├── utils/
│   │   ├── __init__.py
│   │   ├── _io.py
│   │   ├── image.py
│   │   ├── qt.py
│   │   └── shape.py
│   └── widgets/
│       ├── __init__.py
│       ├── _ai_assisted_annotation_widget.py
│       ├── _ai_text_to_annotation_widget.py
│       ├── _info_button.py
│       ├── _status.py
│       ├── brightness_contrast_dialog.py
│       ├── canvas.py
│       ├── download.py
│       ├── file_dialog_preview.py
│       ├── label_dialog.py
│       ├── label_list_widget.py
│       ├── tool_bar.py
│       ├── unique_label_qlist_widget.py
│       └── zoom_widget.py
├── pyproject.toml
├── tests/
│   ├── conftest.py
│   ├── e2e/
│   │   ├── __init__.py
│   │   ├── annotation_test.py
│   │   ├── config_test.py
│   │   ├── conftest.py
│   │   ├── file_loading_test.py
│   │   ├── navigation_test.py
│   │   └── smoke_test.py
│   └── unit/
│       ├── __init__.py
│       ├── _label_file_test.py
│       ├── config_test.py
│       ├── load_image_file_test.py
│       ├── shape_contains_point_test.py
│       ├── shape_test.py
│       ├── utils/
│       │   ├── __init__.py
│       │   ├── image_test.py
│       │   ├── qt_test.py
│       │   ├── shape_test.py
│       │   └── util.py
│       └── widgets/
│           ├── __init__.py
│           ├── canvas_test.py
│           ├── label_dialog_test.py
│           └── label_list_widget_test.py
└── tools/
    └── update_translate.py

================================================
FILE CONTENTS
================================================

================================================
FILE: .claude/CLAUDE.md
================================================
# Project Rules

- use `uv` to run Python commands (e.g., `uv run python`, `uv run pytest`).
- use `make test` to run tests.
- use `make update_translate` to update translation files (`.ts` and `.qm`).


================================================
FILE: .git-blame-ignore-revs
================================================
# Format code with black
5c9808446a179176c721bd7a59d621b41c95898c
# Mypy check # type: ignore
8a9cb1918d35c01abc804b40acb61f34bf8d4fc7
1f7ece25e26ed4e421a2dff3782217967f0443aa
e63d1b8374f7b706a91c51e7ca9478a092a81bbb
6ba57e4a7467f73a6f388716c477639826186db6
4c0ef54052a7fd15715be8e8a2f5ba39fba4efaa
1b2f32ce683938d1ede0ecf956cd59e85cce0fba
e83f3d68a69fe0a9a33c744fa428efb7a2a176b2
80f5a31723e6be3ae614e68a4aeaef8abec2162c
5e75e6cddf913e51ae413e58233c456bffba72ef
6a44111aded17402d03715f8b5d816a3ba19ba2f
34cff8833a442cfcea231e9bc5a719351f92427d
cbb6d829725f531bdb3cb30bcb13213604a4fe31
9998f0042bcf5287625dbcee8e900c026474a0fe
39c9e2a979ebe52575e0e14be32ec5793e93e9fd
28dd12c1d641fe8b0b528eda9cab75a7fe0de7f6
50719a6268d9948e2bd08034e3ea7308d13c1bea
4aba96809ca188f1a13f353a843cdb09c631ad22


================================================
FILE: .github/ISSUE_TEMPLATE/1.bug_report.yml
================================================
name: Bug Report
description: Create a bug report
labels: 'bug'
body:
  - type: markdown
    attributes:
      value: Thanks for taking the time to file a bug report! Please fill out this form as completely as possible.
  - type: markdown
    attributes:
      value: If you leave out sections there is a high likelihood it will be moved to the GitHub Discussions ["Q&A / Help" section](https://github.com/wkentaro/labelme/discussions/categories/q-a-help).
  - type: textarea
    attributes:
      label: Provide environment information
      description: Please run `which python; python --version; python -m pip list | grep labelme` in the root directory of your project and paste the results.
    validations:
      required: true
  - type: input
    attributes:
      label: What OS are you using?
      description: 'Please specify the exact version. For example: macOS 12.4, Ubuntu 20.04.4'
    validations:
      required: true
  - type: textarea
    attributes:
      label: Describe the Bug
      description: A clear and concise description of what the bug is.
    validations:
      required: true
  - type: textarea
    attributes:
      label: Expected Behavior
      description: A clear and concise description of what you expected to happen.
  - type: textarea
    attributes:
      label: To Reproduce
      description: Steps to reproduce the behavior, please provide a clear description of how to reproduce the issue, based on the linked minimal reproduction. Screenshots can be provided in the issue body below. If using code blocks, make sure that [syntax highlighting is correct](https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/creating-and-highlighting-code-blocks#syntax-highlighting) and double check that the rendered preview is not broken.
  - type: markdown
    attributes:
      value: Before posting the issue go through the steps you've written down to make sure the steps provided are detailed and clear.
  - type: markdown
    attributes:
      value: Contributors should be able to follow the steps provided in order to reproduce the bug.
  - type: markdown
    attributes:
      value: These steps are used to add integration tests to ensure the same issue does not happen again. Thanks in advance!


================================================
FILE: .github/ISSUE_TEMPLATE/config.yml
================================================
contact_links:
  - name: Ideas / Feature request
    url: https://github.com/wkentaro/labelme/discussions/categories/ideas-feature-requests
    about: Share ideas for new features
  - name: Q&A / Help
    url: https://github.com/wkentaro/labelme/discussions/categories/q-a-help
    about: Ask the community for help
  - name: Show and tell
    url: https://github.com/wkentaro/labelme/discussions/categories/show-and-tell
    about: Show off something you've made


================================================
FILE: .github/workflows/ci.yml
================================================
name: ci

on:
  push:
    branches:
      - main
  pull_request:

jobs:
  check:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v4
    - uses: astral-sh/setup-uv@v5
      with:
        python-version: "3.10"
    - uses: awalsh128/cache-apt-pkgs-action@v1
      with:
        packages: qttools5-dev
        version: 1.0
    - run: make setup
    - run: |
        make check

  build:

    runs-on: ${{ matrix.os }}
    strategy:
      matrix:
        os: [windows-latest, macos-latest, ubuntu-latest]

    steps:
    - uses: actions/checkout@v4

    - uses: astral-sh/setup-uv@v5
      with:
        python-version: "3.10"

    - shell: bash
      run: |
        make setup

    - uses: awalsh128/cache-apt-pkgs-action@v1
      if: matrix.os == 'ubuntu-latest'
      with:
        packages: xvfb libqt5widgets5
        version: 1.0
    - name: Test
      shell: bash
      if: matrix.os == 'ubuntu-latest'
      env:
        MPLBACKEND: 'agg'
      run: |
        Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
        export DISPLAY=:99

        make test

    - name: Run examples
      shell: bash
      if: matrix.os != 'windows-latest'
      env:
        MPLBACKEND: agg
      run: |
        labelme --help
        labelme --version
        (cd examples/primitives && ../tutorial/export_json.py primitives.json && rm -rf primitives)
        (cd examples/tutorial && rm -rf apc2016_obj3_json && ./export_json.py apc2016_obj3.json && python load_label_png.py && git checkout -- .)
        (cd examples/semantic_segmentation && rm -rf data_dataset_voc && ./labelme2voc.py data_annotated data_dataset_voc --labels labels.txt && git checkout -- .)
        (cd examples/instance_segmentation && rm -rf data_dataset_voc && ./labelme2voc.py data_annotated data_dataset_voc --labels labels.txt && git checkout -- .)
        (cd examples/video_annotation && rm -rf data_dataset_voc && ./labelme2voc.py data_annotated data_dataset_voc --labels labels.txt && git checkout -- .)

        uv pip install 'lxml<5.0.0'  # for bbox_detection/labelme2voc.py
        (cd examples/bbox_detection && rm -rf data_dataset_voc && ./labelme2voc.py data_annotated data_dataset_voc --labels labels.txt && git checkout -- .)

        uv pip install cython && uv pip install pycocotools  # for instance_segmentation/labelme2coco.py
        (cd examples/instance_segmentation && rm -rf data_dataset_coco && ./labelme2coco.py data_annotated data_dataset_coco --labels labels.txt && git checkout -- .)

    - name: Build wheel and install from it
      shell: bash
      run: |
        uv build
        uv pip install dist/labelme-*.whl


================================================
FILE: .github/workflows/cla.yml
================================================
name: CLA Assistant

on:
  pull_request_target:
    types: [opened, synchronize]
  issue_comment:
    types: [created]

jobs:
  cla:
    runs-on: ubuntu-latest
    steps:
      - name: CLA Assistant
        uses: contributor-assistant/github-action@v2.6.1
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
          PERSONAL_ACCESS_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
        with:
          path-to-signatures: "signatures/version1/cla.json"
          path-to-document: "https://github.com/wkentaro/labelme/blob/main/CLA.md"
          branch: "cla-signatures"
          allowlist: wkentaro,bot*


================================================
FILE: .github/workflows/discord-notify.yml
================================================
name: discord-notify

on:
  pull_request:
    types: [closed]
    branches: [main]

jobs:
  notify:
    if: |
      github.event.pull_request.merged == true &&
      contains(github.event.pull_request.labels.*.name, 'feature')
    runs-on: ubuntu-latest
    steps:
      - name: Send to Discord
        env:
          DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
          PR_TITLE: ${{ github.event.pull_request.title }}
          PR_BODY: ${{ github.event.pull_request.body }}
        run: |
          if [[ -z "$DISCORD_WEBHOOK" ]]; then
            echo "Error: DISCORD_WEBHOOK secret not configured"
            exit 1
          fi

          TYPE="🎉 **New feature merged!** Try it in the next release"
          COLOR=3066993

          MILESTONE="${{ github.event.pull_request.milestone.title }}"
          if [[ -z "$MILESTONE" ]]; then
            MILESTONE="None"
          fi

          TITLE_ESCAPED=$(echo "$PR_TITLE" | jq -Rs '.[:-1]')
          BODY_ESCAPED=$(echo "$PR_BODY" | jq -Rs '.[:-1] | if . == "" then "No description provided" elif length > 2000 then .[0:1997] + "..." else . end')

          curl -fsS -X POST "$DISCORD_WEBHOOK" \
            -H "Content-Type: application/json" \
            -d "{
              \"content\": \"$TYPE\",
              \"embeds\": [{
                \"title\": $TITLE_ESCAPED,
                \"url\": \"${{ github.event.pull_request.html_url }}\",
                \"color\": $COLOR,
                \"fields\": [
                  {
                    \"name\": \"Pull request\",
                    \"value\": \"[#${{ github.event.pull_request.number }}](${{ github.event.pull_request.html_url }})\",
                    \"inline\": true
                  },
                  {
                    \"name\": \"Milestone\",
                    \"value\": \"$MILESTONE\",
                    \"inline\": true
                  },
                  {
                    \"name\": \"💬 Feedback\",
                    \"value\": \"[Share your thoughts](https://github.com/wkentaro/labelme/discussions)\",
                    \"inline\": true
                  }
                ],
                \"footer\": {
                  \"text\": $BODY_ESCAPED
                }
              }]
            }"


================================================
FILE: .gitignore
================================================
/.cache/
/.pytest_cache/

/build/
/dist/
/*.egg-info/

*.py[cdo]

.DS_Store
.idea/


================================================
FILE: .gitmodules
================================================


================================================
FILE: .python-version
================================================
3.10


================================================
FILE: 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


================================================
FILE: CLA.md
================================================
# Contributor License Agreement (CLA)

*Version 1.0 — March 2026*

By submitting a pull request or otherwise contributing to this repository,
you agree to the following terms:

1. **License Grant**: You grant Kentaro Wada a perpetual, worldwide,
   non-exclusive, irrevocable, royalty-free license to reproduce, prepare
   derivative works of, publicly display, publicly perform, sublicense,
   and distribute your contribution under any license terms Kentaro Wada
   chooses, including terms different from those of this project's
   open-source license.

2. **Representations**: You represent that (a) you are legally entitled
   to grant the above license, and (b) your contribution is your original
   work or you have the right to submit it under these terms.

**How to sign:** When you open a pull request, the CLA Assistant bot will
ask you to sign by commenting `I have read the CLA Document and I hereby
sign the CLA`. Signing is required before your PR can be merged.


================================================
FILE: LICENSE
================================================
                    GNU GENERAL PUBLIC LICENSE
                       Version 3, 29 June 2007

 Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
 Everyone is permitted to copy and distribute verbatim copies
 of this license document, but changing it is not allowed.

                            Preamble

  The GNU General Public License is a free, copyleft license for
software and other kinds of works.

  The licenses for most software and other practical works are designed
to take away your freedom to share and change the works.  By contrast,
the GNU General Public License is intended to guarantee your freedom to
share and change all versions of a program--to make sure it remains free
software for all its users.  We, the Free Software Foundation, use the
GNU General Public License for most of our software; it applies also to
any other work released this way by its authors.  You can apply it to
your programs, too.

  When we speak of free software, we are referring to freedom, not
price.  Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
them if you wish), that you receive source code or can get it if you
want it, that you can change the software or use pieces of it in new
free programs, and that you know you can do these things.

  To protect your rights, we need to prevent others from denying you
these rights or asking you to surrender the rights.  Therefore, you have
certain responsibilities if you distribute copies of the software, or if
you modify it: responsibilities to respect the freedom of others.

  For example, if you distribute copies of such a program, whether
gratis or for a fee, you must pass on to the recipients the same
freedoms that you received.  You must make sure that they, too, receive
or can get the source code.  And you must show them these terms so they
know their rights.

  Developers that use the GNU GPL protect your rights with two steps:
(1) assert copyright on the software, and (2) offer you this License
giving you legal permission to copy, distribute and/or modify it.

  For the developers' and authors' protection, the GPL clearly explains
that there is no warranty for this free software.  For both users' and
authors' sake, the GPL requires that modified versions be marked as
changed, so that their problems will not be attributed erroneously to
authors of previous versions.

  Some devices are designed to deny users access to install or run
modified versions of the software inside them, although the manufacturer
can do so.  This is fundamentally incompatible with the aim of
protecting users' freedom to change the software.  The systematic
pattern of such abuse occurs in the area of products for individuals to
use, which is precisely where it is most unacceptable.  Therefore, we
have designed this version of the GPL to prohibit the practice for those
products.  If such problems arise substantially in other domains, we
stand ready to extend this provision to those domains in future versions
of the GPL, as needed to protect the freedom of users.

  Finally, every program is threatened constantly by software patents.
States should not allow patents to restrict development and use of
software on general-purpose computers, but in those that do, we wish to
avoid the special danger that patents applied to a free program could
make it effectively proprietary.  To prevent this, the GPL assures that
patents cannot be used to render the program non-free.

  The precise terms and conditions for copying, distribution and
modification follow.

                       TERMS AND CONDITIONS

  0. Definitions.

  "This License" refers to version 3 of the GNU General Public License.

  "Copyright" also means copyright-like laws that apply to other kinds of
works, such as semiconductor masks.

  "The Program" refers to any copyrightable work licensed under this
License.  Each licensee is addressed as "you".  "Licensees" and
"recipients" may be individuals or organizations.

  To "modify" a work means to copy from or adapt all or part of the work
in a fashion requiring copyright permission, other than the making of an
exact copy.  The resulting work is called a "modified version" of the
earlier work or a work "based on" the earlier work.

  A "covered work" means either the unmodified Program or a work based
on the Program.

  To "propagate" a work means to do anything with it that, without
permission, would make you directly or secondarily liable for
infringement under applicable copyright law, except executing it on a
computer or modifying a private copy.  Propagation includes copying,
distribution (with or without modification), making available to the
public, and in some countries other activities as well.

  To "convey" a work means any kind of propagation that enables other
parties to make or receive copies.  Mere interaction with a user through
a computer network, with no transfer of a copy, is not conveying.

  An interactive user interface displays "Appropriate Legal Notices"
to the extent that it includes a convenient and prominently visible
feature that (1) displays an appropriate copyright notice, and (2)
tells the user that there is no warranty for the work (except to the
extent that warranties are provided), that licensees may convey the
work under this License, and how to view a copy of this License.  If
the interface presents a list of user commands or options, such as a
menu, a prominent item in the list meets this criterion.

  1. Source Code.

  The "source code" for a work means the preferred form of the work
for making modifications to it.  "Object code" means any non-source
form of a work.

  A "Standard Interface" means an interface that either is an official
standard defined by a recognized standards body, or, in the case of
interfaces specified for a particular programming language, one that
is widely used among developers working in that language.

  The "System Libraries" of an executable work include anything, other
than the work as a whole, that (a) is included in the normal form of
packaging a Major Component, but which is not part of that Major
Component, and (b) serves only to enable use of the work with that
Major Component, or to implement a Standard Interface for which an
implementation is available to the public in source code form.  A
"Major Component", in this context, means a major essential component
(kernel, window system, and so on) of the specific operating system
(if any) on which the executable work runs, or a compiler used to
produce the work, or an object code interpreter used to run it.

  The "Corresponding Source" for a work in object code form means all
the source code needed to generate, install, and (for an executable
work) run the object code and to modify the work, including scripts to
control those activities.  However, it does not include the work's
System Libraries, or general-purpose tools or generally available free
programs which are used unmodified in performing those activities but
which are not part of the work.  For example, Corresponding Source
includes interface definition files associated with source files for
the work, and the source code for shared libraries and dynamically
linked subprograms that the work is specifically designed to require,
such as by intimate data communication or control flow between those
subprograms and other parts of the work.

  The Corresponding Source need not include anything that users
can regenerate automatically from other parts of the Corresponding
Source.

  The Corresponding Source for a work in source code form is that
same work.

  2. Basic Permissions.

  All rights granted under this License are granted for the term of
copyright on the Program, and are irrevocable provided the stated
conditions are met.  This License explicitly affirms your unlimited
permission to run the unmodified Program.  The output from running a
covered work is covered by this License only if the output, given its
content, constitutes a covered work.  This License acknowledges your
rights of fair use or other equivalent, as provided by copyright law.

  You may make, run and propagate covered works that you do not
convey, without conditions so long as your license otherwise remains
in force.  You may convey covered works to others for the sole purpose
of having them make modifications exclusively for you, or provide you
with facilities for running those works, provided that you comply with
the terms of this License in conveying all material for which you do
not control copyright.  Those thus making or running the covered works
for you must do so exclusively on your behalf, under your direction
and control, on terms that prohibit them from making any copies of
your copyrighted material outside their relationship with you.

  Conveying under any other circumstances is permitted solely under
the conditions stated below.  Sublicensing is not allowed; section 10
makes it unnecessary.

  3. Protecting Users' Legal Rights From Anti-Circumvention Law.

  No covered work shall be deemed part of an effective technological
measure under any applicable law fulfilling obligations under article
11 of the WIPO copyright treaty adopted on 20 December 1996, or
similar laws prohibiting or restricting circumvention of such
measures.

  When you convey a covered work, you waive any legal power to forbid
circumvention of technological measures to the extent such circumvention
is effected by exercising rights under this License with respect to
the covered work, and you disclaim any intention to limit operation or
modification of the work as a means of enforcing, against the work's
users, your or third parties' legal rights to forbid circumvention of
technological measures.

  4. Conveying Verbatim Copies.

  You may convey verbatim copies of the Program's source code as you
receive it, in any medium, provided that you conspicuously and
appropriately publish on each copy an appropriate copyright notice;
keep intact all notices stating that this License and any
non-permissive terms added in accord with section 7 apply to the code;
keep intact all notices of the absence of any warranty; and give all
recipients a copy of this License along with the Program.

  You may charge any price or no price for each copy that you convey,
and you may offer support or warranty protection for a fee.

  5. Conveying Modified Source Versions.

  You may convey a work based on the Program, or the modifications to
produce it from the Program, in the form of source code under the
terms of section 4, provided that you also meet all of these conditions:

    a) The work must carry prominent notices stating that you modified
    it, and giving a relevant date.

    b) The work must carry prominent notices stating that it is
    released under this License and any conditions added under section
    7.  This requirement modifies the requirement in section 4 to
    "keep intact all notices".

    c) You must license the entire work, as a whole, under this
    License to anyone who comes into possession of a copy.  This
    License will therefore apply, along with any applicable section 7
    additional terms, to the whole of the work, and all its parts,
    regardless of how they are packaged.  This License gives no
    permission to license the work in any other way, but it does not
    invalidate such permission if you have separately received it.

    d) If the work has interactive user interfaces, each must display
    Appropriate Legal Notices; however, if the Program has interactive
    interfaces that do not display Appropriate Legal Notices, your
    work need not make them do so.

  A compilation of a covered work with other separate and independent
works, which are not by their nature extensions of the covered work,
and which are not combined with it such as to form a larger program,
in or on a volume of a storage or distribution medium, is called an
"aggregate" if the compilation and its resulting copyright are not
used to limit the access or legal rights of the compilation's users
beyond what the individual works permit.  Inclusion of a covered work
in an aggregate does not cause this License to apply to the other
parts of the aggregate.

  6. Conveying Non-Source Forms.

  You may convey a covered work in object code form under the terms
of sections 4 and 5, provided that you also convey the
machine-readable Corresponding Source under the terms of this License,
in one of these ways:

    a) Convey the object code in, or embodied in, a physical product
    (including a physical distribution medium), accompanied by the
    Corresponding Source fixed on a durable physical medium
    customarily used for software interchange.

    b) Convey the object code in, or embodied in, a physical product
    (including a physical distribution medium), accompanied by a
    written offer, valid for at least three years and valid for as
    long as you offer spare parts or customer support for that product
    model, to give anyone who possesses the object code either (1) a
    copy of the Corresponding Source for all the software in the
    product that is covered by this License, on a durable physical
    medium customarily used for software interchange, for a price no
    more than your reasonable cost of physically performing this
    conveying of source, or (2) access to copy the
    Corresponding Source from a network server at no charge.

    c) Convey individual copies of the object code with a copy of the
    written offer to provide the Corresponding Source.  This
    alternative is allowed only occasionally and noncommercially, and
    only if you received the object code with such an offer, in accord
    with subsection 6b.

    d) Convey the object code by offering access from a designated
    place (gratis or for a charge), and offer equivalent access to the
    Corresponding Source in the same way through the same place at no
    further charge.  You need not require recipients to copy the
    Corresponding Source along with the object code.  If the place to
    copy the object code is a network server, the Corresponding Source
    may be on a different server (operated by you or a third party)
    that supports equivalent copying facilities, provided you maintain
    clear directions next to the object code saying where to find the
    Corresponding Source.  Regardless of what server hosts the
    Corresponding Source, you remain obligated to ensure that it is
    available for as long as needed to satisfy these requirements.

    e) Convey the object code using peer-to-peer transmission, provided
    you inform other peers where the object code and Corresponding
    Source of the work are being offered to the general public at no
    charge under subsection 6d.

  A separable portion of the object code, whose source code is excluded
from the Corresponding Source as a System Library, need not be
included in conveying the object code work.

  A "User Product" is either (1) a "consumer product", which means any
tangible personal property which is normally used for personal, family,
or household purposes, or (2) anything designed or sold for incorporation
into a dwelling.  In determining whether a product is a consumer product,
doubtful cases shall be resolved in favor of coverage.  For a particular
product received by a particular user, "normally used" refers to a
typical or common use of that class of product, regardless of the status
of the particular user or of the way in which the particular user
actually uses, or expects or is expected to use, the product.  A product
is a consumer product regardless of whether the product has substantial
commercial, industrial or non-consumer uses, unless such uses represent
the only significant mode of use of the product.

  "Installation Information" for a User Product means any methods,
procedures, authorization keys, or other information required to install
and execute modified versions of a covered work in that User Product from
a modified version of its Corresponding Source.  The information must
suffice to ensure that the continued functioning of the modified object
code is in no case prevented or interfered with solely because
modification has been made.

  If you convey an object code work under this section in, or with, or
specifically for use in, a User Product, and the conveying occurs as
part of a transaction in which the right of possession and use of the
User Product is transferred to the recipient in perpetuity or for a
fixed term (regardless of how the transaction is characterized), the
Corresponding Source conveyed under this section must be accompanied
by the Installation Information.  But this requirement does not apply
if neither you nor any third party retains the ability to install
modified object code on the User Product (for example, the work has
been installed in ROM).

  The requirement to provide Installation Information does not include a
requirement to continue to provide support service, warranty, or updates
for a work that has been modified or installed by the recipient, or for
the User Product in which it has been modified or installed.  Access to a
network may be denied when the modification itself materially and
adversely affects the operation of the network or violates the rules and
protocols for communication across the network.

  Corresponding Source conveyed, and Installation Information provided,
in accord with this section must be in a format that is publicly
documented (and with an implementation available to the public in
source code form), and must require no special password or key for
unpacking, reading or copying.

  7. Additional Terms.

  "Additional permissions" are terms that supplement the terms of this
License by making exceptions from one or more of its conditions.
Additional permissions that are applicable to the entire Program shall
be treated as though they were included in this License, to the extent
that they are valid under applicable law.  If additional permissions
apply only to part of the Program, that part may be used separately
under those permissions, but the entire Program remains governed by
this License without regard to the additional permissions.

  When you convey a copy of a covered work, you may at your option
remove any additional permissions from that copy, or from any part of
it.  (Additional permissions may be written to require their own
removal in certain cases when you modify the work.)  You may place
additional permissions on material, added by you to a covered work,
for which you have or can give appropriate copyright permission.

  Notwithstanding any other provision of this License, for material you
add to a covered work, you may (if authorized by the copyright holders of
that material) supplement the terms of this License with terms:

    a) Disclaiming warranty or limiting liability differently from the
    terms of sections 15 and 16 of this License; or

    b) Requiring preservation of specified reasonable legal notices or
    author attributions in that material or in the Appropriate Legal
    Notices displayed by works containing it; or

    c) Prohibiting misrepresentation of the origin of that material, or
    requiring that modified versions of such material be marked in
    reasonable ways as different from the original version; or

    d) Limiting the use for publicity purposes of names of licensors or
    authors of the material; or

    e) Declining to grant rights under trademark law for use of some
    trade names, trademarks, or service marks; or

    f) Requiring indemnification of licensors and authors of that
    material by anyone who conveys the material (or modified versions of
    it) with contractual assumptions of liability to the recipient, for
    any liability that these contractual assumptions directly impose on
    those licensors and authors.

  All other non-permissive additional terms are considered "further
restrictions" within the meaning of section 10.  If the Program as you
received it, or any part of it, contains a notice stating that it is
governed by this License along with a term that is a further
restriction, you may remove that term.  If a license document contains
a further restriction but permits relicensing or conveying under this
License, you may add to a covered work material governed by the terms
of that license document, provided that the further restriction does
not survive such relicensing or conveying.

  If you add terms to a covered work in accord with this section, you
must place, in the relevant source files, a statement of the
additional terms that apply to those files, or a notice indicating
where to find the applicable terms.

  Additional terms, permissive or non-permissive, may be stated in the
form of a separately written license, or stated as exceptions;
the above requirements apply either way.

  8. Termination.

  You may not propagate or modify a covered work except as expressly
provided under this License.  Any attempt otherwise to propagate or
modify it is void, and will automatically terminate your rights under
this License (including any patent licenses granted under the third
paragraph of section 11).

  However, if you cease all violation of this License, then your
license from a particular copyright holder is reinstated (a)
provisionally, unless and until the copyright holder explicitly and
finally terminates your license, and (b) permanently, if the copyright
holder fails to notify you of the violation by some reasonable means
prior to 60 days after the cessation.

  Moreover, your license from a particular copyright holder is
reinstated permanently if the copyright holder notifies you of the
violation by some reasonable means, this is the first time you have
received notice of violation of this License (for any work) from that
copyright holder, and you cure the violation prior to 30 days after
your receipt of the notice.

  Termination of your rights under this section does not terminate the
licenses of parties who have received copies or rights from you under
this License.  If your rights have been terminated and not permanently
reinstated, you do not qualify to receive new licenses for the same
material under section 10.

  9. Acceptance Not Required for Having Copies.

  You are not required to accept this License in order to receive or
run a copy of the Program.  Ancillary propagation of a covered work
occurring solely as a consequence of using peer-to-peer transmission
to receive a copy likewise does not require acceptance.  However,
nothing other than this License grants you permission to propagate or
modify any covered work.  These actions infringe copyright if you do
not accept this License.  Therefore, by modifying or propagating a
covered work, you indicate your acceptance of this License to do so.

  10. Automatic Licensing of Downstream Recipients.

  Each time you convey a covered work, the recipient automatically
receives a license from the original licensors, to run, modify and
propagate that work, subject to this License.  You are not responsible
for enforcing compliance by third parties with this License.

  An "entity transaction" is a transaction transferring control of an
organization, or substantially all assets of one, or subdividing an
organization, or merging organizations.  If propagation of a covered
work results from an entity transaction, each party to that
transaction who receives a copy of the work also receives whatever
licenses to the work the party's predecessor in interest had or could
give under the previous paragraph, plus a right to possession of the
Corresponding Source of the work from the predecessor in interest, if
the predecessor has it or can get it with reasonable efforts.

  You may not impose any further restrictions on the exercise of the
rights granted or affirmed under this License.  For example, you may
not impose a license fee, royalty, or other charge for exercise of
rights granted under this License, and you may not initiate litigation
(including a cross-claim or counterclaim in a lawsuit) alleging that
any patent claim is infringed by making, using, selling, offering for
sale, or importing the Program or any portion of it.

  11. Patents.

  A "contributor" is a copyright holder who authorizes use under this
License of the Program or a work on which the Program is based.  The
work thus licensed is called the contributor's "contributor version".

  A contributor's "essential patent claims" are all patent claims
owned or controlled by the contributor, whether already acquired or
hereafter acquired, that would be infringed by some manner, permitted
by this License, of making, using, or selling its contributor version,
but do not include claims that would be infringed only as a
consequence of further modification of the contributor version.  For
purposes of this definition, "control" includes the right to grant
patent sublicenses in a manner consistent with the requirements of
this License.

  Each contributor grants you a non-exclusive, worldwide, royalty-free
patent license under the contributor's essential patent claims, to
make, use, sell, offer for sale, import and otherwise run, modify and
propagate the contents of its contributor version.

  In the following three paragraphs, a "patent license" is any express
agreement or commitment, however denominated, not to enforce a patent
(such as an express permission to practice a patent or covenant not to
sue for patent infringement).  To "grant" such a patent license to a
party means to make such an agreement or commitment not to enforce a
patent against the party.

  If you convey a covered work, knowingly relying on a patent license,
and the Corresponding Source of the work is not available for anyone
to copy, free of charge and under the terms of this License, through a
publicly available network server or other readily accessible means,
then you must either (1) cause the Corresponding Source to be so
available, or (2) arrange to deprive yourself of the benefit of the
patent license for this particular work, or (3) arrange, in a manner
consistent with the requirements of this License, to extend the patent
license to downstream recipients.  "Knowingly relying" means you have
actual knowledge that, but for the patent license, your conveying the
covered work in a country, or your recipient's use of the covered work
in a country, would infringe one or more identifiable patents in that
country that you have reason to believe are valid.

  If, pursuant to or in connection with a single transaction or
arrangement, you convey, or propagate by procuring conveyance of, a
covered work, and grant a patent license to some of the parties
receiving the covered work authorizing them to use, propagate, modify
or convey a specific copy of the covered work, then the patent license
you grant is automatically extended to all recipients of the covered
work and works based on it.

  A patent license is "discriminatory" if it does not include within
the scope of its coverage, prohibits the exercise of, or is
conditioned on the non-exercise of one or more of the rights that are
specifically granted under this License.  You may not convey a covered
work if you are a party to an arrangement with a third party that is
in the business of distributing software, under which you make payment
to the third party based on the extent of your activity of conveying
the work, and under which the third party grants, to any of the
parties who would receive the covered work from you, a discriminatory
patent license (a) in connection with copies of the covered work
conveyed by you (or copies made from those copies), or (b) primarily
for and in connection with specific products or compilations that
contain the covered work, unless you entered into that arrangement,
or that patent license was granted, prior to 28 March 2007.

  Nothing in this License shall be construed as excluding or limiting
any implied license or other defenses to infringement that may
otherwise be available to you under applicable patent law.

  12. No Surrender of Others' Freedom.

  If conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License.  If you cannot convey a
covered work so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you may
not convey it at all.  For example, if you agree to terms that obligate you
to collect a royalty for further conveying from those to whom you convey
the Program, the only way you could satisfy both those terms and this
License would be to refrain entirely from conveying the Program.

  13. Use with the GNU Affero General Public License.

  Notwithstanding any other provision of this License, you have
permission to link or combine any covered work with a work licensed
under version 3 of the GNU Affero General Public License into a single
combined work, and to convey the resulting work.  The terms of this
License will continue to apply to the part which is the covered work,
but the special requirements of the GNU Affero General Public License,
section 13, concerning interaction through a network will apply to the
combination as such.

  14. Revised Versions of this License.

  The Free Software Foundation may publish revised and/or new versions of
the GNU General Public License from time to time.  Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.

  Each version is given a distinguishing version number.  If the
Program specifies that a certain numbered version of the GNU General
Public License "or any later version" applies to it, you have the
option of following the terms and conditions either of that numbered
version or of any later version published by the Free Software
Foundation.  If the Program does not specify a version number of the
GNU General Public License, you may choose any version ever published
by the Free Software Foundation.

  If the Program specifies that a proxy can decide which future
versions of the GNU General Public License can be used, that proxy's
public statement of acceptance of a version permanently authorizes you
to choose that version for the Program.

  Later license versions may give you additional or different
permissions.  However, no additional obligations are imposed on any
author or copyright holder as a result of your choosing to follow a
later version.

  15. Disclaimer of Warranty.

  THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
APPLICABLE LAW.  EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE.  THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
IS WITH YOU.  SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.

  16. Limitation of Liability.

  IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
SUCH DAMAGES.

  17. Interpretation of Sections 15 and 16.

  If the disclaimer of warranty and limitation of liability provided
above cannot be given local legal effect according to their terms,
reviewing courts shall apply local law that most closely approximates
an absolute waiver of all civil liability in connection with the
Program, unless a warranty or assumption of liability accompanies a
copy of the Program in return for a fee.

                     END OF TERMS AND CONDITIONS

            How to Apply These Terms to Your New Programs

  If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.

  To do so, attach the following notices to the program.  It is safest
to attach them to the start of each source file to most effectively
state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.

    <one line to give the program's name and a brief idea of what it does.>
    Copyright (C) <year>  <name of author>

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.

Also add information on how to contact you by electronic and paper mail.

  If the program does terminal interaction, make it output a short
notice like this when it starts in an interactive mode:

    <program>  Copyright (C) <year>  <name of author>
    This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
    This is free software, and you are welcome to redistribute it
    under certain conditions; type `show c' for details.

The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License.  Of course, your program's commands
might be different; for a GUI interface, you would use an "about box".

  You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU GPL, see
<http://www.gnu.org/licenses/>.

  The GNU General Public License does not permit incorporating your program
into proprietary programs.  If your program is a subroutine library, you
may consider it more useful to permit linking proprietary applications with
the library.  If this is what you want to do, use the GNU Lesser General
Public License instead of this License.  But first, please read
<http://www.gnu.org/philosophy/why-not-lgpl.html>.


================================================
FILE: Makefile
================================================
ifneq ($(OS),Windows_NT)
	# On Unix-based systems, use ANSI codes
	BLUE = \033[36m
	BOLD_BLUE = \033[1;36m
	BOLD_GREEN = \033[1;32m
	RED = \033[31m
	YELLOW = \033[33m
	BOLD = \033[1m
	NC = \033[0m
endif

escape = $(subst $$,\$$,$(subst ",\",$(subst ',\',$(1))))

define exec
	@echo "$(BOLD_BLUE)$(call escape,$(1))$(NC)"
	@$(1)
endef

help:
	@echo "$(BOLD_GREEN)Available targets:$(NC)"
	@grep -E '^[a-zA-Z_-].+:.*?# .*$$' $(MAKEFILE_LIST) | \
		awk 'BEGIN {FS = ":.*?# "}; \
		{printf "  $(BOLD_BLUE)%-20s$(NC) %s\n", $$1, $$2}'

PACKAGE_NAME:=labelme

setup:  # Setup the development environment
	$(call exec,uv sync)

format:  # Format code
	$(call exec,uv run ruff format)
	$(call exec,uv run ruff check --fix)

lint:
	$(call exec,uv run ruff format --check)
	$(call exec,uv run ruff check)
	$(call exec,uv run ty check --no-progress)

check_translate: update_translate
	$(call exec,git diff --exit-code labelme/translate)
	@if grep -r 'type="unfinished"' labelme/translate/*.ts; then \
		echo "$(RED)Error: unfinished translations found$(NC)"; \
		exit 1; \
	fi

check: lint check_translate # Run checks

test:  # Run tests
	$(call exec,uv run pytest -v tests/)

update_translate:
	$(call exec,uv run --no-sync tools/update_translate.py)


================================================
FILE: README.md
================================================
<h1 align="center">
  <img src="labelme/icons/icon-256.png" width="200" height="200"><br/>labelme
</h1>

<h4 align="center">
  Image annotation with Python.
</h4>

<div align="center">
  <a href="https://pypi.python.org/pypi/labelme"><img src="https://img.shields.io/pypi/v/labelme.svg"></a>
  <!-- <a href="https://pypi.org/project/labelme"><img src="https://img.shields.io/pypi/pyversions/labelme.svg"></a> -->
  <a href="https://github.com/wkentaro/labelme/actions"><img src="https://github.com/wkentaro/labelme/actions/workflows/ci.yml/badge.svg?branch=main&event=push"></a>
  <a href="https://discord.com/invite/uAjxGcJm83"><img src="https://dcbadge.limes.pink/api/server/uAjxGcJm83?style=flat"></a>
</div>

<div align="center">
  <a href="#installation"><b>Installation</b></a>
  | <a href="#usage"><b>Usage</b></a>
  | <a href="#examples"><b>Examples</b></a>
  | <a href="https://labelme.io"><b>labelme.io ↗</b></a>
  <!-- | <a href="https://github.com/wkentaro/labelme/discussions"><b>Community</b></a> -->
  <!-- | <a href="https://www.youtube.com/playlist?list=PLI6LvFw0iflh3o33YYnVIfOpaO0hc5Dzw"><b>Youtube FAQ</b></a> -->
</div>

<br/>

<div align="center">
  <img src="examples/instance_segmentation/.readme/annotation.jpg" width="70%">
</div>

## 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.

> Looking for a simple install without Python or Qt? Get the standalone app at **[labelme.io](https://labelme.io)**.

<img src="examples/instance_segmentation/data_dataset_voc/JPEGImages/2011_000006.jpg" width="19%" /> <img src="examples/instance_segmentation/data_dataset_voc/SegmentationClass/2011_000006.png" width="19%" /> <img src="examples/instance_segmentation/data_dataset_voc/SegmentationClassVisualization/2011_000006.jpg" width="19%" /> <img src="examples/instance_segmentation/data_dataset_voc/SegmentationObject/2011_000006.png" width="19%" /> <img src="examples/instance_segmentation/data_dataset_voc/SegmentationObjectVisualization/2011_000006.jpg" width="19%" />  
<i>VOC dataset example of instance segmentation.</i>

<img src="examples/semantic_segmentation/.readme/annotation.jpg" width="30%" /> <img src="examples/bbox_detection/.readme/annotation.jpg" width="30%" /> <img src="examples/classification/.readme/annotation_cat.jpg" width="35%" />  
<i>Other examples (semantic segmentation, bbox detection, and classification).</i>

<img src="https://user-images.githubusercontent.com/4310419/47907116-85667800-de82-11e8-83d0-b9f4eb33268f.gif" width="30%" /> <img src="https://user-images.githubusercontent.com/4310419/47922172-57972880-deae-11e8-84f8-e4324a7c856a.gif" width="30%" /> <img src="https://user-images.githubusercontent.com/14256482/46932075-92145f00-d080-11e8-8d09-2162070ae57c.png" width="32%" />  
<i>Various primitives (polygon, rectangle, circle, line, and point).</i>

<img src="https://github.com/user-attachments/assets/53bf09db-b097-48b7-9f32-ab490da5ac53" width="32%" />
<p><i>Multi-language support (English, 中文, 日本語, 한국어, Deutsch, Français, and more).</i></p>

## Features

- [x] Image annotation for polygon, rectangle, circle, line and point ([tutorial](examples/tutorial))
- [x] Image flag annotation for classification and cleaning ([#166](https://github.com/wkentaro/labelme/pull/166))
- [x] Video annotation ([video annotation](examples/video_annotation))
- [x] GUI customization (predefined labels / flags, auto-saving, label validation, etc) ([#144](https://github.com/wkentaro/labelme/pull/144))
- [x] Exporting VOC-format dataset for [semantic segmentation](examples/semantic_segmentation), [instance segmentation](examples/instance_segmentation)
- [x] Exporting COCO-format dataset for [instance segmentation](examples/instance_segmentation)
- [x] AI-assisted point-to-polygon/mask annotation by SAM, EfficientSAM models
- [x] AI text-to-annotation by YOLO-world, SAM3 models

**🌏 Available in 16 languages** - English &middot; 日本語 &middot; 한국어 &middot; 简体中文 &middot; 繁體中文 &middot; Deutsch &middot; Français &middot; Español &middot; Italiano &middot; Português &middot; Nederlands &middot; Magyar &middot; Tiếng Việt &middot; Türkçe &middot; Polski &middot; فارسی (`LANG=ja_JP.UTF-8 labelme`)


## Installation

There are 3 options to install labelme:

### Option 1: Using pip

For more detail, check ["Install Labelme using Terminal"](https://www.labelme.io/docs/install-labelme-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"](https://www.labelme.io/docs/install-labelme-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](https://repology.org/badge/vertical-allrepos/labelme.svg)](https://repology.org/project/labelme/versions)

## Usage

Run `labelme --help` for detail.  
The annotations are saved as a [JSON](http://www.json.org/) file.

```bash
labelme  # just open gui

# tutorial (single image example)
cd examples/tutorial
labelme apc2016_obj3.jpg  # specify image file
labelme apc2016_obj3.jpg --output annotations/  # save annotation JSON files to a directory
labelme apc2016_obj3.jpg --with-image-data  # include image data in JSON file
labelme apc2016_obj3.jpg \
  --labels highland_6539_self_stick_notes,mead_index_cards,kong_air_dog_squeakair_tennis_ball  # specify label list

# semantic segmentation example
cd examples/semantic_segmentation
labelme data_annotated/  # 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 at `~/.labelmerc`. Add only the settings you want to override. For all available options and their defaults, see [`default_config.yaml`](labelme/config/default_config.yaml). 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](examples/classification)
- Labels are assigned to a single polygon. [Example](examples/bbox_detection)

### FAQ

- **How to convert JSON file to numpy array?** See [examples/tutorial](examples/tutorial#convert-to-dataset).
- **How to load label PNG file?** See [examples/tutorial](examples/tutorial#how-to-load-label-png-file).
- **How to get annotations for semantic segmentation?** See [examples/semantic_segmentation](examples/semantic_segmentation).
- **How to get annotations for instance segmentation?** See [examples/instance_segmentation](examples/instance_segmentation).


## Examples

* [Image Classification](examples/classification)
* [Bounding Box Detection](examples/bbox_detection)
* [Semantic Segmentation](examples/semantic_segmentation)
* [Instance Segmentation](examples/instance_segmentation)
* [Video Annotation](examples/video_annotation)


## How to build standalone executable

```bash
LABELME_PATH=./labelme
OSAM_PATH=$(python -c 'import os, osam; print(os.path.dirname(osam.__file__))')
pip install 'numpy<2.0'  # numpy>=2.0 causes build errors (see #1532)
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-256.png \
  --onedir
```


## Acknowledgement

This repo is the fork of [mpitid/pylabelme](https://github.com/mpitid/pylabelme).


================================================
FILE: examples/bbox_detection/README.md
================================================
# Bounding Box Detection Example


## Usage

```bash
labelme data_annotated --labels labels.txt
```

![](.readme/annotation.jpg)


## Convert to VOC-format Dataset

```bash
# It generates:
#   - data_dataset_voc/JPEGImages
#   - data_dataset_voc/Annotations
#   - data_dataset_voc/AnnotationsVisualization
./labelme2voc.py data_annotated data_dataset_voc --labels labels.txt
```

<img src="data_dataset_voc/JPEGImages/2011_000003.jpg" width="33%" /> <img src="data_dataset_voc/AnnotationsVisualization/2011_000003.jpg" width="33%" />

<i>Fig1. JPEG image (left), Bounding box annotation visualization (right).</i>


================================================
FILE: examples/bbox_detection/data_annotated/2011_000003.json
================================================
{
  "version": "4.0.0",
  "flags": {},
  "shapes": [
    {
      "label": "person",
      "points": [
        [
          191.0,
          107.36900369003689
        ],
        [
          313.0,
          329.36900369003695
        ]
      ],
      "group_id": null,
      "shape_type": "rectangle",
      "flags": {}
    },
    {
      "label": "person",
      "points": [
        [
          365.0,
          83.0
        ],
        [
          500.0,
          333.0
        ]
      ],
      "group_id": null,
      "shape_type": "rectangle",
      "flags": {}
    }
  ],
  "imagePath": "2011_000003.jpg",
  "imageData": null,
  "imageHeight": 338,
  "imageWidth": 500
}

================================================
FILE: examples/bbox_detection/data_annotated/2011_000006.json
================================================
{
  "version": "4.0.0",
  "flags": {},
  "shapes": [
    {
      "label": "person",
      "points": [
        [
          91.0,
          107.0
        ],
        [
          240.0,
          330.0
        ]
      ],
      "group_id": null,
      "shape_type": "rectangle",
      "flags": {}
    },
    {
      "label": "person",
      "points": [
        [
          178.0,
          110.0
        ],
        [
          298.0,
          282.0
        ]
      ],
      "group_id": null,
      "shape_type": "rectangle",
      "flags": {}
    },
    {
      "label": "person",
      "points": [
        [
          254.38461538461536,
          115.38461538461539
        ],
        [
          369.38461538461536,
          292.38461538461536
        ]
      ],
      "group_id": null,
      "shape_type": "rectangle",
      "flags": {}
    },
    {
      "label": "person",
      "points": [
        [
          395.0,
          81.0
        ],
        [
          447.0,
          117.0
        ]
      ],
      "group_id": null,
      "shape_type": "rectangle",
      "flags": {}
    }
  ],
  "imagePath": "2011_000006.jpg",
  "imageData": null,
  "imageHeight": 375,
  "imageWidth": 500
}

================================================
FILE: examples/bbox_detection/data_annotated/2011_000025.json
================================================
{
  "version": "4.0.0",
  "flags": {},
  "shapes": [
    {
      "label": "bus",
      "points": [
        [
          84.0,
          20.384615384615387
        ],
        [
          435.0,
          373.38461538461536
        ]
      ],
      "group_id": null,
      "shape_type": "rectangle",
      "flags": {}
    },
    {
      "label": "bus",
      "points": [
        [
          1.0,
          99.0
        ],
        [
          107.0,
          282.0
        ]
      ],
      "group_id": null,
      "shape_type": "rectangle",
      "flags": {}
    },
    {
      "label": "car",
      "points": [
        [
          409.0,
          167.0
        ],
        [
          500.0,
          266.0
        ]
      ],
      "group_id": null,
      "shape_type": "rectangle",
      "flags": {}
    }
  ],
  "imagePath": "2011_000025.jpg",
  "imageData": null,
  "imageHeight": 375,
  "imageWidth": 500
}

================================================
FILE: examples/bbox_detection/data_dataset_voc/Annotations/2011_000003.xml
================================================
<annotation>
  <folder/>
  <filename>2011_000003.jpg</filename>
  <database/>
  <annotation/>
  <image/>
  <size>
    <height>338</height>
    <width>500</width>
    <depth>3</depth>
  </size>
  <segmented/>
  <object>
    <name>person</name>
    <pose/>
    <truncated/>
    <difficult/>
    <bndbox>
      <xmin>191.0</xmin>
      <ymin>107.36900369003689</ymin>
      <xmax>313.0</xmax>
      <ymax>329.36900369003695</ymax>
    </bndbox>
  </object>
  <object>
    <name>person</name>
    <pose/>
    <truncated/>
    <difficult/>
    <bndbox>
      <xmin>365.0</xmin>
      <ymin>83.0</ymin>
      <xmax>500.0</xmax>
      <ymax>333.0</ymax>
    </bndbox>
  </object>
</annotation>


================================================
FILE: examples/bbox_detection/data_dataset_voc/Annotations/2011_000006.xml
================================================
<annotation>
  <folder/>
  <filename>2011_000006.jpg</filename>
  <database/>
  <annotation/>
  <image/>
  <size>
    <height>375</height>
    <width>500</width>
    <depth>3</depth>
  </size>
  <segmented/>
  <object>
    <name>person</name>
    <pose/>
    <truncated/>
    <difficult/>
    <bndbox>
      <xmin>91.0</xmin>
      <ymin>107.0</ymin>
      <xmax>240.0</xmax>
      <ymax>330.0</ymax>
    </bndbox>
  </object>
  <object>
    <name>person</name>
    <pose/>
    <truncated/>
    <difficult/>
    <bndbox>
      <xmin>178.0</xmin>
      <ymin>110.0</ymin>
      <xmax>298.0</xmax>
      <ymax>282.0</ymax>
    </bndbox>
  </object>
  <object>
    <name>person</name>
    <pose/>
    <truncated/>
    <difficult/>
    <bndbox>
      <xmin>254.38461538461536</xmin>
      <ymin>115.38461538461539</ymin>
      <xmax>369.38461538461536</xmax>
      <ymax>292.38461538461536</ymax>
    </bndbox>
  </object>
  <object>
    <name>person</name>
    <pose/>
    <truncated/>
    <difficult/>
    <bndbox>
      <xmin>395.0</xmin>
      <ymin>81.0</ymin>
      <xmax>447.0</xmax>
      <ymax>117.0</ymax>
    </bndbox>
  </object>
</annotation>


================================================
FILE: examples/bbox_detection/data_dataset_voc/Annotations/2011_000025.xml
================================================
<annotation>
  <folder/>
  <filename>2011_000025.jpg</filename>
  <database/>
  <annotation/>
  <image/>
  <size>
    <height>375</height>
    <width>500</width>
    <depth>3</depth>
  </size>
  <segmented/>
  <object>
    <name>bus</name>
    <pose/>
    <truncated/>
    <difficult/>
    <bndbox>
      <xmin>84.0</xmin>
      <ymin>20.384615384615387</ymin>
      <xmax>435.0</xmax>
      <ymax>373.38461538461536</ymax>
    </bndbox>
  </object>
  <object>
    <name>bus</name>
    <pose/>
    <truncated/>
    <difficult/>
    <bndbox>
      <xmin>1.0</xmin>
      <ymin>99.0</ymin>
      <xmax>107.0</xmax>
      <ymax>282.0</ymax>
    </bndbox>
  </object>
  <object>
    <name>car</name>
    <pose/>
    <truncated/>
    <difficult/>
    <bndbox>
      <xmin>409.0</xmin>
      <ymin>167.0</ymin>
      <xmax>500.0</xmax>
      <ymax>266.0</ymax>
    </bndbox>
  </object>
</annotation>


================================================
FILE: examples/bbox_detection/data_dataset_voc/class_names.txt
================================================
_background_
aeroplane
bicycle
bird
boat
bottle
bus
car
cat
chair
cow
diningtable
dog
horse
motorbike
person
potted plant
sheep
sofa
train
tv/monitor

================================================
FILE: examples/bbox_detection/labelme2voc.py
================================================
#!/usr/bin/env python


import argparse
import glob
import os
import os.path as osp
import sys

import imgviz

import labelme

try:
    import lxml.builder  # type: ignore
    import lxml.etree  # type: ignore
except ImportError:
    print("Please install lxml:\n\n    pip install lxml\n")
    sys.exit(1)


def main():
    parser = argparse.ArgumentParser(
        formatter_class=argparse.ArgumentDefaultsHelpFormatter
    )
    parser.add_argument("input_dir", help="input annotated directory")
    parser.add_argument("output_dir", help="output dataset directory")
    parser.add_argument("--labels", help="labels file", required=True)
    parser.add_argument("--noviz", help="no visualization", action="store_true")
    args = parser.parse_args()

    if osp.exists(args.output_dir):
        print("Output directory already exists:", args.output_dir)
        sys.exit(1)
    os.makedirs(args.output_dir)
    os.makedirs(osp.join(args.output_dir, "JPEGImages"))
    os.makedirs(osp.join(args.output_dir, "Annotations"))
    if not args.noviz:
        os.makedirs(osp.join(args.output_dir, "AnnotationsVisualization"))
    print("Creating dataset:", args.output_dir)

    class_names = []
    class_name_to_id = {}
    for i, line in enumerate(open(args.labels).readlines()):
        class_id = i - 1  # starts with -1
        class_name = line.strip()
        class_name_to_id[class_name] = class_id
        if class_id == -1:
            assert class_name == "__ignore__"
            continue
        elif class_id == 0:
            assert class_name == "_background_"
        class_names.append(class_name)
    class_names = tuple(class_names)
    print("class_names:", class_names)
    out_class_names_file = osp.join(args.output_dir, "class_names.txt")
    with open(out_class_names_file, "w") as f:
        f.writelines("\n".join(class_names))
    print("Saved class_names:", out_class_names_file)

    for filename in glob.glob(osp.join(args.input_dir, "*.json")):
        print("Generating dataset from:", filename)

        label_file = labelme.LabelFile(filename=filename)

        base = osp.splitext(osp.basename(filename))[0]
        out_img_file = osp.join(args.output_dir, "JPEGImages", f"{base}.jpg")
        out_xml_file = osp.join(args.output_dir, "Annotations", f"{base}.xml")
        if not args.noviz:
            out_viz_file = osp.join(
                args.output_dir, "AnnotationsVisualization", f"{base}.jpg"
            )

        img = labelme.utils.img_data_to_arr(label_file.imageData)
        imgviz.io.imsave(out_img_file, img)

        maker = lxml.builder.ElementMaker()
        xml = maker.annotation(
            maker.folder(),
            maker.filename(f"{base}.jpg"),
            maker.database(),  # e.g., The VOC2007 Database
            maker.annotation(),  # e.g., Pascal VOC2007
            maker.image(),  # e.g., flickr
            maker.size(
                maker.height(str(img.shape[0])),
                maker.width(str(img.shape[1])),
                maker.depth(str(img.shape[2])),
            ),
            maker.segmented(),
        )

        bboxes: list[list[float]] = []
        labels = []
        for shape in label_file.shapes:
            if shape["shape_type"] != "rectangle":
                print(
                    "Skipping shape: label={label}, shape_type={shape_type}".format(
                        **shape
                    )
                )
                continue

            class_name = shape["label"]
            class_id = class_names.index(class_name)

            (xmin, ymin), (xmax, ymax) = shape["points"]
            # swap if min is larger than max.
            xmin, xmax = sorted([xmin, xmax])
            ymin, ymax = sorted([ymin, ymax])

            bboxes.append([ymin, xmin, ymax, xmax])
            labels.append(class_id)

            xml.append(
                maker.object(
                    maker.name(shape["label"]),
                    maker.pose(),
                    maker.truncated(),
                    maker.difficult(),
                    maker.bndbox(
                        maker.xmin(str(xmin)),
                        maker.ymin(str(ymin)),
                        maker.xmax(str(xmax)),
                        maker.ymax(str(ymax)),
                    ),
                )
            )

        if not args.noviz:
            captions: list[str] = [class_names[label] for label in labels]
            viz = imgviz.instances2rgb(
                image=img,
                labels=labels,
                bboxes=bboxes,
                captions=captions,
                font_size=15,
            )
            imgviz.io.imsave(out_viz_file, viz)

        with open(out_xml_file, "wb") as f:
            f.write(lxml.etree.tostring(xml, pretty_print=True))


if __name__ == "__main__":
    main()


================================================
FILE: examples/bbox_detection/labels.txt
================================================
__ignore__
_background_
aeroplane
bicycle
bird
boat
bottle
bus
car
cat
chair
cow
diningtable
dog
horse
motorbike
person
potted plant
sheep
sofa
train
tv/monitor

================================================
FILE: examples/classification/README.md
================================================
# Classification Example


## Usage

```bash
labelme data_annotated --flags flags.txt
```

<img src=".readme/annotation_cat.jpg" width="100%" />
<img src=".readme/annotation_dog.jpg" width="100%" />


================================================
FILE: examples/classification/data_annotated/0001.json
================================================
{
  "version": "4.0.0",
  "flags": {
    "__ignore__": false,
    "cat": true,
    "dog": false
  },
  "shapes": [],
  "imagePath": "0001.jpg",
  "imageData": null,
  "imageHeight": 480,
  "imageWidth": 640
}

================================================
FILE: examples/classification/data_annotated/0002.json
================================================
{
  "version": "4.0.0",
  "flags": {
    "__ignore__": false,
    "cat": false,
    "dog": true
  },
  "shapes": [],
  "imagePath": "0002.jpg",
  "imageData": null,
  "imageHeight": 480,
  "imageWidth": 640
}

================================================
FILE: examples/classification/flags.txt
================================================
__ignore__
cat
dog


================================================
FILE: examples/instance_segmentation/README.md
================================================
# Instance Segmentation Example

## Annotation

```bash
labelme data_annotated --labels labels.txt --validatelabel exact --config '{shift_auto_shape_color: -2}'
labelme data_annotated --labels labels.txt --labelflags '{.*: [occluded, truncated], person: [male]}'
```

![](.readme/annotation.jpg)

## Convert to VOC-format Dataset

```bash
# It generates:
#   - data_dataset_voc/JPEGImages
#   - data_dataset_voc/SegmentationClass
#   - data_dataset_voc/SegmentationClassNpy
#   - data_dataset_voc/SegmentationClassVisualization
#   - data_dataset_voc/SegmentationObject
#   - data_dataset_voc/SegmentationObjectNpy
#   - data_dataset_voc/SegmentationObjectVisualization
./labelme2voc.py data_annotated data_dataset_voc --labels labels.txt
```

<img src="data_dataset_voc/JPEGImages/2011_000003.jpg" width="33%" /> <img src="data_dataset_voc/SegmentationClassVisualization/2011_000003.jpg" width="33%" /> <img src="data_dataset_voc/SegmentationObjectVisualization/2011_000003.jpg" width="33%" />  
Fig 1. JPEG image (left), JPEG class label visualization (center), JPEG instance label visualization (right)


Note that the label file contains only very low label values (ex. `0, 4, 14`), and
`255` indicates the `__ignore__` label value (`-1` in the npy file).  
You can see the label PNG file by following.

```bash
../tutorial/draw_label_png.py data_dataset_voc/SegmentationClass/2011_000003.png   # left
../tutorial/draw_label_png.py data_dataset_voc/SegmentationObject/2011_000003.png  # right
```

<img src=".readme/draw_label_png_class.jpg" width="33%" /> <img src=".readme/draw_label_png_object.jpg" width="33%" />


## Convert to COCO-format Dataset

```bash
# It generates:
#   - data_dataset_coco/JPEGImages
#   - data_dataset_coco/annotations.json
./labelme2coco.py data_annotated data_dataset_coco --labels labels.txt
```


================================================
FILE: examples/instance_segmentation/data_annotated/2011_000003.json
================================================
{
  "version": "4.0.0",
  "flags": {},
  "shapes": [
    {
      "label": "person",
      "points": [
        [
          250.8142292490119,
          107.33596837944665
        ],
        [
          229.8142292490119,
          119.33596837944665
        ],
        [
          221.8142292490119,
          135.33596837944665
        ],
        [
          223.8142292490119,
          148.33596837944665
        ],
        [
          217.8142292490119,
          161.33596837944665
        ],
        [
          202.8142292490119,
          168.33596837944665
        ],
        [
          192.8142292490119,
          200.33596837944665
        ],
        [
          194.8142292490119,
          222.33596837944665
        ],
        [
          199.8142292490119,
          227.33596837944665
        ],
        [
          191.8142292490119,
          234.33596837944665
        ],
        [
          197.8142292490119,
          264.3359683794467
        ],
        [
          213.8142292490119,
          295.3359683794467
        ],
        [
          214.8142292490119,
          320.3359683794467
        ],
        [
          221.8142292490119,
          327.3359683794467
        ],
        [
          235.8142292490119,
          326.3359683794467
        ],
        [
          240.8142292490119,
          323.3359683794467
        ],
        [
          235.8142292490119,
          298.3359683794467
        ],
        [
          238.8142292490119,
          287.3359683794467
        ],
        [
          234.8142292490119,
          268.3359683794467
        ],
        [
          257.81422924901193,
          258.3359683794467
        ],
        [
          264.81422924901193,
          264.3359683794467
        ],
        [
          256.81422924901193,
          273.3359683794467
        ],
        [
          259.81422924901193,
          282.3359683794467
        ],
        [
          284.81422924901193,
          288.3359683794467
        ],
        [
          297.81422924901193,
          278.3359683794467
        ],
        [
          288.81422924901193,
          270.3359683794467
        ],
        [
          281.81422924901193,
          270.3359683794467
        ],
        [
          283.81422924901193,
          264.3359683794467
        ],
        [
          292.81422924901193,
          261.3359683794467
        ],
        [
          308.81422924901193,
          236.33596837944665
        ],
        [
          313.81422924901193,
          217.33596837944665
        ],
        [
          309.81422924901193,
          208.33596837944665
        ],
        [
          312.81422924901193,
          202.33596837944665
        ],
        [
          308.81422924901193,
          185.33596837944665
        ],
        [
          291.81422924901193,
          173.33596837944665
        ],
        [
          269.81422924901193,
          159.33596837944665
        ],
        [
          261.81422924901193,
          154.33596837944665
        ],
        [
          264.81422924901193,
          142.33596837944665
        ],
        [
          273.81422924901193,
          137.33596837944665
        ],
        [
          278.81422924901193,
          130.33596837944665
        ],
        [
          270.81422924901193,
          121.33596837944665
        ]
      ],
      "group_id": null,
      "shape_type": "polygon",
      "flags": {}
    },
    {
      "label": "person",
      "points": [
        [
          482.81422924901193,
          87.18098682963114
        ],
        [
          468.81422924901193,
          92.18098682963114
        ],
        [
          460.81422924901193,
          112.18098682963114
        ],
        [
          460.81422924901193,
          129.18098682963114
        ],
        [
          444.81422924901193,
          139.18098682963114
        ],
        [
          419.81422924901193,
          155.18098682963114
        ],
        [
          410.81422924901193,
          165.18098682963114
        ],
        [
          403.81422924901193,
          170.18098682963114
        ],
        [
          394.81422924901193,
          172.18098682963114
        ],
        [
          386.81422924901193,
          170.18098682963114
        ],
        [
          386.81422924901193,
          186.18098682963114
        ],
        [
          392.81422924901193,
          184.18098682963114
        ],
        [
          410.81422924901193,
          189.18098682963114
        ],
        [
          414.81422924901193,
          194.18098682963114
        ],
        [
          437.81422924901193,
          191.18098682963114
        ],
        [
          434.81422924901193,
          206.18098682963114
        ],
        [
          390.81422924901193,
          197.18098682963114
        ],
        [
          386.81422924901193,
          197.18098682963114
        ],
        [
          387.81422924901193,
          210.18098682963114
        ],
        [
          381.81422924901193,
          214.18098682963114
        ],
        [
          372.81422924901193,
          214.18098682963114
        ],
        [
          372.81422924901193,
          218.18098682963114
        ],
        [
          400.81422924901193,
          272.18098682963114
        ],
        [
          389.81422924901193,
          274.18098682963114
        ],
        [
          389.81422924901193,
          276.18098682963114
        ],
        [
          403.81422924901193,
          284.18098682963114
        ],
        [
          444.81422924901193,
          285.18098682963114
        ],
        [
          443.81422924901193,
          261.18098682963114
        ],
        [
          426.81422924901193,
          246.18098682963114
        ],
        [
          462.81422924901193,
          258.18098682963114
        ],
        [
          474.81422924901193,
          272.18098682963114
        ],
        [
          477.81422924901193,
          282.18098682963114
        ],
        [
          473.81422924901193,
          291.18098682963114
        ],
        [
          471.81422924901193,
          298.18098682963114
        ],
        [
          472.81422924901193,
          319.18098682963114
        ],
        [
          480.81422924901193,
          334.18098682963114
        ],
        [
          494.81422924901193,
          337.18098682963114
        ],
        [
          498.81422924901193,
          331.18098682963114
        ],
        [
          494.81422924901193,
          310.18098682963114
        ],
        [
          499.81422924901193,
          299.18098682963114
        ],
        [
          499.81422924901193,
          92.18098682963114
        ]
      ],
      "group_id": 0,
      "shape_type": "polygon",
      "flags": {}
    },
    {
      "label": "person",
      "points": [
        [
          370.81422924901193,
          170.33596837944665
        ],
        [
          366.81422924901193,
          173.33596837944665
        ],
        [
          365.81422924901193,
          182.33596837944665
        ],
        [
          368.81422924901193,
          185.33596837944665
        ]
      ],
      "group_id": 0,
      "shape_type": "polygon",
      "flags": {}
    },
    {
      "label": "bottle",
      "points": [
        [
          374.81422924901193,
          159.33596837944665
        ],
        [
          369.81422924901193,
          170.33596837944665
        ],
        [
          369.81422924901193,
          210.33596837944665
        ],
        [
          375.81422924901193,
          212.33596837944665
        ],
        [
          387.81422924901193,
          209.33596837944665
        ],
        [
          385.81422924901193,
          185.33596837944665
        ],
        [
          385.81422924901193,
          168.33596837944665
        ],
        [
          385.81422924901193,
          165.33596837944665
        ],
        [
          382.81422924901193,
          159.33596837944665
        ]
      ],
      "group_id": null,
      "shape_type": "polygon",
      "flags": {}
    },
    {
      "label": "__ignore__",
      "points": [
        [
          338.81422924901193,
          266.3359683794467
        ],
        [
          313.81422924901193,
          269.3359683794467
        ],
        [
          297.81422924901193,
          277.3359683794467
        ],
        [
          282.81422924901193,
          288.3359683794467
        ],
        [
          273.81422924901193,
          302.3359683794467
        ],
        [
          272.81422924901193,
          320.3359683794467
        ],
        [
          279.81422924901193,
          337.3359683794467
        ],
        [
          428.81422924901193,
          337.3359683794467
        ],
        [
          432.81422924901193,
          316.3359683794467
        ],
        [
          423.81422924901193,
          296.3359683794467
        ],
        [
          403.81422924901193,
          283.3359683794467
        ],
        [
          370.81422924901193,
          270.3359683794467
        ]
      ],
      "group_id": null,
      "shape_type": "polygon",
      "flags": {}
    }
  ],
  "imagePath": "2011_000003.jpg",
  "imageData": null,
  "imageHeight": 338,
  "imageWidth": 500
}

================================================
FILE: examples/instance_segmentation/data_annotated/2011_000006.json
================================================
{
  "version": "4.0.0",
  "flags": {},
  "shapes": [
    {
      "label": "person",
      "points": [
        [
          204.936170212766,
          108.56382978723406
        ],
        [
          183.936170212766,
          141.56382978723406
        ],
        [
          166.936170212766,
          150.56382978723406
        ],
        [
          108.93617021276599,
          203.56382978723406
        ],
        [
          92.93617021276599,
          228.56382978723406
        ],
        [
          95.93617021276599,
          244.56382978723406
        ],
        [
          105.93617021276599,
          244.56382978723406
        ],
        [
          116.93617021276599,
          223.56382978723406
        ],
        [
          163.936170212766,
          187.56382978723406
        ],
        [
          147.936170212766,
          212.56382978723406
        ],
        [
          117.93617021276599,
          222.56382978723406
        ],
        [
          108.93617021276599,
          243.56382978723406
        ],
        [
          100.93617021276599,
          325.56382978723406
        ],
        [
          135.936170212766,
          329.56382978723406
        ],
        [
          148.936170212766,
          319.56382978723406
        ],
        [
          150.936170212766,
          295.56382978723406
        ],
        [
          169.936170212766,
          272.56382978723406
        ],
        [
          171.936170212766,
          249.56382978723406
        ],
        [
          178.936170212766,
          246.56382978723406
        ],
        [
          186.936170212766,
          225.56382978723406
        ],
        [
          214.936170212766,
          219.56382978723406
        ],
        [
          242.936170212766,
          157.56382978723406
        ],
        [
          228.936170212766,
          146.56382978723406
        ],
        [
          228.936170212766,
          125.56382978723406
        ],
        [
          216.936170212766,
          112.56382978723406
        ]
      ],
      "group_id": null,
      "shape_type": "polygon",
      "flags": {}
    },
    {
      "label": "person",
      "points": [
        [
          271.936170212766,
          109.56382978723406
        ],
        [
          249.936170212766,
          110.56382978723406
        ],
        [
          244.936170212766,
          150.56382978723406
        ],
        [
          215.936170212766,
          219.56382978723406
        ],
        [
          208.936170212766,
          245.56382978723406
        ],
        [
          214.936170212766,
          220.56382978723406
        ],
        [
          188.936170212766,
          227.56382978723406
        ],
        [
          170.936170212766,
          246.56382978723406
        ],
        [
          170.936170212766,
          275.56382978723406
        ],
        [
          221.936170212766,
          278.56382978723406
        ],
        [
          233.936170212766,
          259.56382978723406
        ],
        [
          246.936170212766,
          253.56382978723406
        ],
        [
          245.936170212766,
          256.56382978723406
        ],
        [
          242.936170212766,
          251.56382978723406
        ],
        [
          262.936170212766,
          256.56382978723406
        ],
        [
          304.936170212766,
          226.56382978723406
        ],
        [
          297.936170212766,
          199.56382978723406
        ],
        [
          308.936170212766,
          164.56382978723406
        ],
        [
          296.936170212766,
          148.56382978723406
        ]
      ],
      "group_id": null,
      "shape_type": "polygon",
      "flags": {}
    },
    {
      "label": "person",
      "points": [
        [
          308.936170212766,
          115.56382978723406
        ],
        [
          298.936170212766,
          145.56382978723406
        ],
        [
          309.936170212766,
          166.56382978723406
        ],
        [
          297.936170212766,
          200.56382978723406
        ],
        [
          305.936170212766,
          228.56382978723406
        ],
        [
          262.936170212766,
          258.56382978723406
        ],
        [
          252.936170212766,
          284.56382978723406
        ],
        [
          272.936170212766,
          291.56382978723406
        ],
        [
          281.936170212766,
          250.56382978723406
        ],
        [
          326.936170212766,
          235.56382978723406
        ],
        [
          351.936170212766,
          239.56382978723406
        ],
        [
          365.936170212766,
          223.56382978723406
        ],
        [
          371.936170212766,
          187.56382978723406
        ],
        [
          353.936170212766,
          168.56382978723406
        ],
        [
          344.936170212766,
          143.56382978723406
        ],
        [
          336.936170212766,
          115.56382978723406
        ]
      ],
      "group_id": null,
      "shape_type": "polygon",
      "flags": {}
    },
    {
      "label": "chair",
      "points": [
        [
          309.7054009819968,
          242.94844517184941
        ],
        [
          282.7054009819968,
          251.94844517184941
        ],
        [
          271.7054009819968,
          287.9484451718494
        ],
        [
          175.70540098199677,
          275.9484451718494
        ],
        [
          149.70540098199677,
          296.9484451718494
        ],
        [
          151.70540098199677,
          319.9484451718494
        ],
        [
          160.70540098199677,
          328.9484451718494
        ],
        [
          165.54250204582655,
          375.38461538461536
        ],
        [
          486.7054009819968,
          373.9484451718494
        ],
        [
          498.7054009819968,
          336.9484451718494
        ],
        [
          498.7054009819968,
          202.94844517184941
        ],
        [
          454.7054009819968,
          193.94844517184941
        ],
        [
          435.7054009819968,
          212.94844517184941
        ],
        [
          368.7054009819968,
          224.94844517184941
        ],
        [
          351.7054009819968,
          241.94844517184941
        ]
      ],
      "group_id": null,
      "shape_type": "polygon",
      "flags": {}
    },
    {
      "label": "person",
      "points": [
        [
          425.936170212766,
          82.56382978723406
        ],
        [
          404.936170212766,
          109.56382978723406
        ],
        [
          400.936170212766,
          114.56382978723406
        ],
        [
          437.936170212766,
          114.56382978723406
        ],
        [
          448.936170212766,
          102.56382978723406
        ],
        [
          446.936170212766,
          91.56382978723406
        ]
      ],
      "group_id": null,
      "shape_type": "polygon",
      "flags": {}
    },
    {
      "label": "__ignore__",
      "points": [
        [
          457.936170212766,
          85.56382978723406
        ],
        [
          439.936170212766,
          117.56382978723406
        ],
        [
          477.936170212766,
          117.56382978723406
        ],
        [
          474.936170212766,
          87.56382978723406
        ]
      ],
      "group_id": null,
      "shape_type": "polygon",
      "flags": {}
    },
    {
      "label": "sofa",
      "points": [
        [
          183.936170212766,
          140.56382978723406
        ],
        [
          125.93617021276599,
          140.56382978723406
        ],
        [
          110.93617021276599,
          187.56382978723406
        ],
        [
          22.936170212765987,
          199.56382978723406
        ],
        [
          18.936170212765987,
          218.56382978723406
        ],
        [
          22.936170212765987,
          234.56382978723406
        ],
        [
          93.93617021276599,
          239.56382978723406
        ],
        [
          91.93617021276599,
          229.56382978723406
        ],
        [
          110.93617021276599,
          203.56382978723406
        ]
      ],
      "group_id": 0,
      "shape_type": "polygon",
      "flags": {}
    },
    {
      "label": "sofa",
      "points": [
        [
          103.93617021276599,
          290.56382978723406
        ],
        [
          58.93617021276599,
          303.56382978723406
        ],
        [
          97.93617021276599,
          311.56382978723406
        ]
      ],
      "group_id": 0,
      "shape_type": "polygon",
      "flags": {}
    },
    {
      "label": "sofa",
      "points": [
        [
          348.936170212766,
          146.56382978723406
        ],
        [
          472.936170212766,
          149.56382978723406
        ],
        [
          477.936170212766,
          162.56382978723406
        ],
        [
          471.936170212766,
          196.56382978723406
        ],
        [
          453.936170212766,
          192.56382978723406
        ],
        [
          434.936170212766,
          213.56382978723406
        ],
        [
          368.936170212766,
          226.56382978723406
        ],
        [
          375.936170212766,
          187.56382978723406
        ],
        [
          353.936170212766,
          164.56382978723406
        ]
      ],
      "group_id": 0,
      "shape_type": "polygon",
      "flags": {}
    },
    {
      "label": "sofa",
      "points": [
        [
          246.936170212766,
          252.56382978723406
        ],
        [
          219.936170212766,
          277.56382978723406
        ],
        [
          254.936170212766,
          287.56382978723406
        ],
        [
          261.936170212766,
          256.56382978723406
        ]
      ],
      "group_id": 0,
      "shape_type": "polygon",
      "flags": {}
    }
  ],
  "imagePath": "2011_000006.jpg",
  "imageData": null,
  "imageHeight": 375,
  "imageWidth": 500
}

================================================
FILE: examples/instance_segmentation/data_annotated/2011_000025.json
================================================
{
  "version": "4.0.0",
  "flags": {},
  "shapes": [
    {
      "label": "bus",
      "points": [
        [
          260.936170212766,
          23.33306055646483
        ],
        [
          193.936170212766,
          20.33306055646483
        ],
        [
          124.93617021276599,
          40.33306055646483
        ],
        [
          89.93617021276599,
          102.33306055646483
        ],
        [
          81.93617021276599,
          151.33306055646483
        ],
        [
          108.93617021276599,
          146.33306055646483
        ],
        [
          88.93617021276599,
          245.33306055646483
        ],
        [
          89.93617021276599,
          323.33306055646483
        ],
        [
          116.93617021276599,
          368.33306055646483
        ],
        [
          158.936170212766,
          369.33306055646483
        ],
        [
          165.936170212766,
          338.33306055646483
        ],
        [
          347.936170212766,
          336.33306055646483
        ],
        [
          349.936170212766,
          370.33306055646483
        ],
        [
          391.936170212766,
          374.33306055646483
        ],
        [
          403.936170212766,
          336.33306055646483
        ],
        [
          425.936170212766,
          333.33306055646483
        ],
        [
          421.936170212766,
          282.33306055646483
        ],
        [
          428.936170212766,
          253.33306055646483
        ],
        [
          428.936170212766,
          237.33306055646483
        ],
        [
          409.936170212766,
          221.33306055646483
        ],
        [
          409.936170212766,
          151.33306055646483
        ],
        [
          430.936170212766,
          144.33306055646483
        ],
        [
          433.936170212766,
          113.33306055646483
        ],
        [
          431.936170212766,
          97.33306055646483
        ],
        [
          408.936170212766,
          91.33306055646483
        ],
        [
          395.936170212766,
          51.33306055646483
        ],
        [
          338.936170212766,
          26.33306055646483
        ]
      ],
      "group_id": null,
      "shape_type": "polygon",
      "flags": {}
    },
    {
      "label": "bus",
      "points": [
        [
          88.93617021276599,
          115.56382978723406
        ],
        [
          0.9361702127659877,
          96.56382978723406
        ],
        [
          0.0,
          251.968085106388
        ],
        [
          0.9361702127659877,
          265.56382978723406
        ],
        [
          27.936170212765987,
          265.56382978723406
        ],
        [
          29.936170212765987,
          283.56382978723406
        ],
        [
          63.93617021276599,
          281.56382978723406
        ],
        [
          89.93617021276599,
          252.56382978723406
        ],
        [
          100.93617021276599,
          183.56382978723406
        ],
        [
          108.93617021276599,
          145.56382978723406
        ],
        [
          81.93617021276599,
          151.56382978723406
        ]
      ],
      "group_id": null,
      "shape_type": "polygon",
      "flags": {}
    },
    {
      "label": "car",
      "points": [
        [
          413.936170212766,
          168.94844517184944
        ],
        [
          497.936170212766,
          168.94844517184944
        ],
        [
          497.936170212766,
          256.94844517184936
        ],
        [
          431.936170212766,
          258.94844517184936
        ],
        [
          430.936170212766,
          236.94844517184944
        ],
        [
          408.936170212766,
          218.94844517184944
        ]
      ],
      "group_id": null,
      "shape_type": "polygon",
      "flags": {}
    }
  ],
  "imagePath": "2011_000025.jpg",
  "imageData": null,
  "imageHeight": 375,
  "imageWidth": 500
}

================================================
FILE: examples/instance_segmentation/data_dataset_coco/annotations.json
================================================
{"info": {"description": null, "url": null, "version": null, "year": 2020, "contributor": null, "date_created": "2020-01-26 05:46:30.244442"}, "licenses": [{"url": null, "id": 0, "name": null}], "images": [{"license": 0, "url": null, "file_name": "JPEGImages/2011_000003.jpg", "height": 338, "width": 500, "date_captured": null, "id": 0}, {"license": 0, "url": null, "file_name": "JPEGImages/2011_000025.jpg", "height": 375, "width": 500, "date_captured": null, "id": 1}, {"license": 0, "url": null, "file_name": "JPEGImages/2011_000006.jpg", "height": 375, "width": 500, "date_captured": null, "id": 2}], "type": "instances", "annotations": [{"id": 0, "image_id": 0, "category_id": 15, "segmentation": [[250.8142292490119, 107.33596837944665, 229.8142292490119, 119.33596837944665, 221.8142292490119, 135.33596837944665, 223.8142292490119, 148.33596837944665, 217.8142292490119, 161.33596837944665, 202.8142292490119, 168.33596837944665, 192.8142292490119, 200.33596837944665, 194.8142292490119, 222.33596837944665, 199.8142292490119, 227.33596837944665, 191.8142292490119, 234.33596837944665, 197.8142292490119, 264.3359683794467, 213.8142292490119, 295.3359683794467, 214.8142292490119, 320.3359683794467, 221.8142292490119, 327.3359683794467, 235.8142292490119, 326.3359683794467, 240.8142292490119, 323.3359683794467, 235.8142292490119, 298.3359683794467, 238.8142292490119, 287.3359683794467, 234.8142292490119, 268.3359683794467, 257.81422924901193, 258.3359683794467, 264.81422924901193, 264.3359683794467, 256.81422924901193, 273.3359683794467, 259.81422924901193, 282.3359683794467, 284.81422924901193, 288.3359683794467, 297.81422924901193, 278.3359683794467, 288.81422924901193, 270.3359683794467, 281.81422924901193, 270.3359683794467, 283.81422924901193, 264.3359683794467, 292.81422924901193, 261.3359683794467, 308.81422924901193, 236.33596837944665, 313.81422924901193, 217.33596837944665, 309.81422924901193, 208.33596837944665, 312.81422924901193, 202.33596837944665, 308.81422924901193, 185.33596837944665, 291.81422924901193, 173.33596837944665, 269.81422924901193, 159.33596837944665, 261.81422924901193, 154.33596837944665, 264.81422924901193, 142.33596837944665, 273.81422924901193, 137.33596837944665, 278.81422924901193, 130.33596837944665, 270.81422924901193, 121.33596837944665]], "area": 15689.0, "bbox": [191.0, 107.0, 123.0, 221.0], "iscrowd": 0}, {"id": 1, "image_id": 0, "category_id": 15, "segmentation": [[482.81422924901193, 87.18098682963114, 468.81422924901193, 92.18098682963114, 460.81422924901193, 112.18098682963114, 460.81422924901193, 129.18098682963114, 444.81422924901193, 139.18098682963114, 419.81422924901193, 155.18098682963114, 410.81422924901193, 165.18098682963114, 403.81422924901193, 170.18098682963114, 394.81422924901193, 172.18098682963114, 386.81422924901193, 170.18098682963114, 386.81422924901193, 186.18098682963114, 392.81422924901193, 184.18098682963114, 410.81422924901193, 189.18098682963114, 414.81422924901193, 194.18098682963114, 437.81422924901193, 191.18098682963114, 434.81422924901193, 206.18098682963114, 390.81422924901193, 197.18098682963114, 386.81422924901193, 197.18098682963114, 387.81422924901193, 210.18098682963114, 381.81422924901193, 214.18098682963114, 372.81422924901193, 214.18098682963114, 372.81422924901193, 218.18098682963114, 400.81422924901193, 272.18098682963114, 389.81422924901193, 274.18098682963114, 389.81422924901193, 276.18098682963114, 403.81422924901193, 284.18098682963114, 444.81422924901193, 285.18098682963114, 443.81422924901193, 261.18098682963114, 426.81422924901193, 246.18098682963114, 462.81422924901193, 258.18098682963114, 474.81422924901193, 272.18098682963114, 477.81422924901193, 282.18098682963114, 473.81422924901193, 291.18098682963114, 471.81422924901193, 298.18098682963114, 472.81422924901193, 319.18098682963114, 480.81422924901193, 334.18098682963114, 494.81422924901193, 337.18098682963114, 498.81422924901193, 331.18098682963114, 494.81422924901193, 310.18098682963114, 499.81422924901193, 299.18098682963114, 499.81422924901193, 92.18098682963114], [370.81422924901193, 170.33596837944665, 366.81422924901193, 173.33596837944665, 365.81422924901193, 182.33596837944665, 368.81422924901193, 185.33596837944665]], "area": 17254.0, "bbox": [365.0, 87.0, 135.0, 251.0], "iscrowd": 0}, {"id": 2, "image_id": 0, "category_id": 5, "segmentation": [[374.81422924901193, 159.33596837944665, 369.81422924901193, 170.33596837944665, 369.81422924901193, 210.33596837944665, 375.81422924901193, 212.33596837944665, 387.81422924901193, 209.33596837944665, 385.81422924901193, 185.33596837944665, 385.81422924901193, 168.33596837944665, 385.81422924901193, 165.33596837944665, 382.81422924901193, 159.33596837944665]], "area": 873.0, "bbox": [369.0, 159.0, 19.0, 54.0], "iscrowd": 0}, {"id": 3, "image_id": 1, "category_id": 6, "segmentation": [[260.936170212766, 23.33306055646483, 193.936170212766, 20.33306055646483, 124.93617021276599, 40.33306055646483, 89.93617021276599, 102.33306055646483, 81.93617021276599, 151.33306055646483, 108.93617021276599, 146.33306055646483, 88.93617021276599, 245.33306055646483, 89.93617021276599, 323.33306055646483, 116.93617021276599, 368.33306055646483, 158.936170212766, 369.33306055646483, 165.936170212766, 338.33306055646483, 347.936170212766, 336.33306055646483, 349.936170212766, 370.33306055646483, 391.936170212766, 374.33306055646483, 403.936170212766, 336.33306055646483, 425.936170212766, 333.33306055646483, 421.936170212766, 282.33306055646483, 428.936170212766, 253.33306055646483, 428.936170212766, 237.33306055646483, 409.936170212766, 221.33306055646483, 409.936170212766, 151.33306055646483, 430.936170212766, 144.33306055646483, 433.936170212766, 113.33306055646483, 431.936170212766, 97.33306055646483, 408.936170212766, 91.33306055646483, 395.936170212766, 51.33306055646483, 338.936170212766, 26.33306055646483]], "area": 102701.0, "bbox": [81.0, 20.0, 353.0, 355.0], "iscrowd": 0}, {"id": 4, "image_id": 1, "category_id": 6, "segmentation": [[88.93617021276599, 115.56382978723406, 0.9361702127659877, 96.56382978723406, 0.0, 251.968085106388, 0.9361702127659877, 265.56382978723406, 27.936170212765987, 265.56382978723406, 29.936170212765987, 283.56382978723406, 63.93617021276599, 281.56382978723406, 89.93617021276599, 252.56382978723406, 100.93617021276599, 183.56382978723406, 108.93617021276599, 145.56382978723406, 81.93617021276599, 151.56382978723406]], "area": 15781.0, "bbox": [0.0, 96.0, 109.0, 188.0], "iscrowd": 0}, {"id": 5, "image_id": 1, "category_id": 7, "segmentation": [[413.936170212766, 168.94844517184944, 497.936170212766, 168.94844517184944, 497.936170212766, 256.94844517184936, 431.936170212766, 258.94844517184936, 430.936170212766, 236.94844517184944, 408.936170212766, 218.94844517184944]], "area": 7256.0, "bbox": [408.0, 168.0, 90.0, 91.0], "iscrowd": 0}, {"id": 6, "image_id": 2, "category_id": 15, "segmentation": [[204.936170212766, 108.56382978723406, 183.936170212766, 141.56382978723406, 166.936170212766, 150.56382978723406, 108.93617021276599, 203.56382978723406, 92.93617021276599, 228.56382978723406, 95.93617021276599, 244.56382978723406, 105.93617021276599, 244.56382978723406, 116.93617021276599, 223.56382978723406, 163.936170212766, 187.56382978723406, 147.936170212766, 212.56382978723406, 117.93617021276599, 222.56382978723406, 108.93617021276599, 243.56382978723406, 100.93617021276599, 325.56382978723406, 135.936170212766, 329.56382978723406, 148.936170212766, 319.56382978723406, 150.936170212766, 295.56382978723406, 169.936170212766, 272.56382978723406, 171.936170212766, 249.56382978723406, 178.936170212766, 246.56382978723406, 186.936170212766, 225.56382978723406, 214.936170212766, 219.56382978723406, 242.936170212766, 157.56382978723406, 228.936170212766, 146.56382978723406, 228.936170212766, 125.56382978723406, 216.936170212766, 112.56382978723406]], "area": 15203.0, "bbox": [92.0, 108.0, 151.0, 222.0], "iscrowd": 0}, {"id": 7, "image_id": 2, "category_id": 15, "segmentation": [[271.936170212766, 109.56382978723406, 249.936170212766, 110.56382978723406, 244.936170212766, 150.56382978723406, 215.936170212766, 219.56382978723406, 208.936170212766, 245.56382978723406, 214.936170212766, 220.56382978723406, 188.936170212766, 227.56382978723406, 170.936170212766, 246.56382978723406, 170.936170212766, 275.56382978723406, 221.936170212766, 278.56382978723406, 233.936170212766, 259.56382978723406, 246.936170212766, 253.56382978723406, 245.936170212766, 256.56382978723406, 242.936170212766, 251.56382978723406, 262.936170212766, 256.56382978723406, 304.936170212766, 226.56382978723406, 297.936170212766, 199.56382978723406, 308.936170212766, 164.56382978723406, 296.936170212766, 148.56382978723406]], "area": 11735.0, "bbox": [170.0, 109.0, 139.0, 170.0], "iscrowd": 0}, {"id": 8, "image_id": 2, "category_id": 15, "segmentation": [[308.936170212766, 115.56382978723406, 298.936170212766, 145.56382978723406, 309.936170212766, 166.56382978723406, 297.936170212766, 200.56382978723406, 305.936170212766, 228.56382978723406, 262.936170212766, 258.56382978723406, 252.936170212766, 284.56382978723406, 272.936170212766, 291.56382978723406, 281.936170212766, 250.56382978723406, 326.936170212766, 235.56382978723406, 351.936170212766, 239.56382978723406, 365.936170212766, 223.56382978723406, 371.936170212766, 187.56382978723406, 353.936170212766, 168.56382978723406, 344.936170212766, 143.56382978723406, 336.936170212766, 115.56382978723406]], "area": 7597.0, "bbox": [252.0, 115.0, 120.0, 177.0], "iscrowd": 0}, {"id": 9, "image_id": 2, "category_id": 9, "segmentation": [[309.7054009819968, 242.94844517184941, 282.7054009819968, 251.94844517184941, 271.7054009819968, 287.9484451718494, 175.70540098199677, 275.9484451718494, 149.70540098199677, 296.9484451718494, 151.70540098199677, 319.9484451718494, 160.70540098199677, 328.9484451718494, 165.54250204582655, 375.38461538461536, 486.7054009819968, 373.9484451718494, 498.7054009819968, 336.9484451718494, 498.7054009819968, 202.94844517184941, 454.7054009819968, 193.94844517184941, 435.7054009819968, 212.94844517184941, 368.7054009819968, 224.94844517184941, 351.7054009819968, 241.94844517184941]], "area": 44532.0, "bbox": [149.0, 193.0, 350.0, 182.0], "iscrowd": 0}, {"id": 10, "image_id": 2, "category_id": 15, "segmentation": [[425.936170212766, 82.56382978723406, 404.936170212766, 109.56382978723406, 400.936170212766, 114.56382978723406, 437.936170212766, 114.56382978723406, 448.936170212766, 102.56382978723406, 446.936170212766, 91.56382978723406]], "area": 996.0, "bbox": [400.0, 82.0, 49.0, 33.0], "iscrowd": 0}, {"id": 11, "image_id": 2, "category_id": 18, "segmentation": [[183.936170212766, 140.56382978723406, 125.93617021276599, 140.56382978723406, 110.93617021276599, 187.56382978723406, 22.936170212765987, 199.56382978723406, 18.936170212765987, 218.56382978723406, 22.936170212765987, 234.56382978723406, 93.93617021276599, 239.56382978723406, 91.93617021276599, 229.56382978723406, 110.93617021276599, 203.56382978723406], [103.93617021276599, 290.56382978723406, 58.93617021276599, 303.56382978723406, 97.93617021276599, 311.56382978723406], [348.936170212766, 146.56382978723406, 472.936170212766, 149.56382978723406, 477.936170212766, 162.56382978723406, 471.936170212766, 196.56382978723406, 453.936170212766, 192.56382978723406, 434.936170212766, 213.56382978723406, 368.936170212766, 226.56382978723406, 375.936170212766, 187.56382978723406, 353.936170212766, 164.56382978723406], [246.936170212766, 252.56382978723406, 219.936170212766, 277.56382978723406, 254.936170212766, 287.56382978723406, 261.936170212766, 256.56382978723406]], "area": 14001.0, "bbox": [18.0, 140.0, 460.0, 172.0], "iscrowd": 0}], "categories": [{"supercategory": null, "id": 0, "name": "_background_"}, {"supercategory": null, "id": 1, "name": "aeroplane"}, {"supercategory": null, "id": 2, "name": "bicycle"}, {"supercategory": null, "id": 3, "name": "bird"}, {"supercategory": null, "id": 4, "name": "boat"}, {"supercategory": null, "id": 5, "name": "bottle"}, {"supercategory": null, "id": 6, "name": "bus"}, {"supercategory": null, "id": 7, "name": "car"}, {"supercategory": null, "id": 8, "name": "cat"}, {"supercategory": null, "id": 9, "name": "chair"}, {"supercategory": null, "id": 10, "name": "cow"}, {"supercategory": null, "id": 11, "name": "diningtable"}, {"supercategory": null, "id": 12, "name": "dog"}, {"supercategory": null, "id": 13, "name": "horse"}, {"supercategory": null, "id": 14, "name": "motorbike"}, {"supercategory": null, "id": 15, "name": "person"}, {"supercategory": null, "id": 16, "name": "potted plant"}, {"supercategory": null, "id": 17, "name": "sheep"}, {"supercategory": null, "id": 18, "name": "sofa"}, {"supercategory": null, "id": 19, "name": "train"}, {"supercategory": null, "id": 20, "name": "tv/monitor"}]}

================================================
FILE: examples/instance_segmentation/data_dataset_voc/class_names.txt
================================================
_background_
aeroplane
bicycle
bird
boat
bottle
bus
car
cat
chair
cow
diningtable
dog
horse
motorbike
person
potted plant
sheep
sofa
train
tv/monitor

================================================
FILE: examples/instance_segmentation/labelme2coco.py
================================================
#!/usr/bin/env python

import argparse
import collections
import datetime
import glob
import json
import os
import os.path as osp
import sys
import uuid

import imgviz
import numpy as np

import labelme

try:
    import pycocotools.mask  # type: ignore
except ImportError:
    print("Please install pycocotools:\n\n    pip install pycocotools\n")
    sys.exit(1)


def main():
    parser = argparse.ArgumentParser(
        formatter_class=argparse.ArgumentDefaultsHelpFormatter
    )
    parser.add_argument("input_dir", help="input annotated directory")
    parser.add_argument("output_dir", help="output dataset directory")
    parser.add_argument("--labels", help="labels file", required=True)
    parser.add_argument("--noviz", help="no visualization", action="store_true")
    args = parser.parse_args()

    if osp.exists(args.output_dir):
        print("Output directory already exists:", args.output_dir)
        sys.exit(1)
    os.makedirs(args.output_dir)
    os.makedirs(osp.join(args.output_dir, "JPEGImages"))
    if not args.noviz:
        os.makedirs(osp.join(args.output_dir, "Visualization"))
    print("Creating dataset:", args.output_dir)

    now = datetime.datetime.now()

    data = dict(
        info=dict(
            description=None,
            url=None,
            version=None,
            year=now.year,
            contributor=None,
            date_created=now.strftime("%Y-%m-%d %H:%M:%S.%f"),
        ),
        licenses=[
            dict(
                url=None,
                id=0,
                name=None,
            )
        ],
        type="instances",
    )
    data["images"] = []  # license, url, file_name, height, width, date_captured, id
    data["categories"] = []  # supercategory, id, name
    data[
        "annotations"
    ] = []  # segmentation, area, iscrowd, image_id, bbox, category_id, id

    class_name_to_id = {}
    for i, line in enumerate(open(args.labels).readlines()):
        class_id = i - 1  # starts with -1
        class_name = line.strip()
        if class_id == -1:
            assert class_name == "__ignore__"
            continue
        class_name_to_id[class_name] = class_id
        data["categories"].append(
            dict(
                supercategory=None,
                id=class_id,
                name=class_name,
            )
        )

    out_ann_file = osp.join(args.output_dir, "annotations.json")
    label_files = glob.glob(osp.join(args.input_dir, "*.json"))
    for image_id, filename in enumerate(label_files):
        print("Generating dataset from:", filename)

        label_file = labelme.LabelFile(filename=filename)

        base = osp.splitext(osp.basename(filename))[0]
        out_img_file = osp.join(args.output_dir, "JPEGImages", f"{base}.jpg")

        img = labelme.utils.img_data_to_arr(label_file.imageData)
        if img.ndim == 3 and img.shape[2] == 4:
            img = imgviz.rgba2rgb(img)
        imgviz.io.imsave(out_img_file, img)
        data["images"].append(
            dict(
                license=0,
                url=None,
                file_name=osp.relpath(out_img_file, osp.dirname(out_ann_file)),
                height=img.shape[0],
                width=img.shape[1],
                date_captured=None,
                id=image_id,
            )
        )

        masks = {}  # for area
        segmentations = collections.defaultdict(list)  # for segmentation
        for shape in label_file.shapes:
            points: list[list[int | float]] = shape["points"]
            label = shape["label"]
            group_id = shape.get("group_id")
            shape_type = shape.get("shape_type", "polygon")
            mask = labelme.utils.shape_to_mask(img.shape[:2], points, shape_type)

            if group_id is None:
                group_id = uuid.uuid1()

            instance = (label, group_id)

            if instance in masks:
                masks[instance] = masks[instance] | mask
            else:
                masks[instance] = mask

            points_coco: list[int | float]
            if shape_type == "rectangle":
                (x1, y1), (x2, y2) = points
                x1, x2 = sorted([x1, x2])
                y1, y2 = sorted([y1, y2])
                points_coco = [x1, y1, x2, y1, x2, y2, x1, y2]
            if shape_type == "circle":
                (x1, y1), (x2, y2) = points
                r = np.linalg.norm([x2 - x1, y2 - y1])
                # r(1-cos(a/2))<x, a=2*pi/N => N>pi/arccos(1-x/r)
                # x: tolerance of the gap between the arc and the line segment
                n_points_circle = max(int(np.pi / np.arccos(1 - 1 / r)), 12)
                i = np.arange(n_points_circle)
                x = x1 + r * np.sin(2 * np.pi / n_points_circle * i)
                y = y1 + r * np.cos(2 * np.pi / n_points_circle * i)
                points_coco = np.stack((x, y), axis=1).flatten().tolist()
            else:
                points_coco = np.asarray(points).flatten().tolist()

            segmentations[instance].append(points_coco)
        segmentations = dict(segmentations)

        for instance, mask in masks.items():
            cls_name, group_id = instance
            if cls_name not in class_name_to_id:
                continue
            cls_id = class_name_to_id[cls_name]

            mask = np.asfortranarray(mask.astype(np.uint8))
            mask = pycocotools.mask.encode(mask)
            area = float(pycocotools.mask.area(mask))
            bbox = pycocotools.mask.toBbox(mask).flatten().tolist()

            data["annotations"].append(
                dict(
                    id=len(data["annotations"]),
                    image_id=image_id,
                    category_id=cls_id,
                    segmentation=segmentations[instance],
                    area=area,
                    bbox=bbox,
                    iscrowd=0,
                )
            )

        if not args.noviz:
            viz = img
            if masks:
                labels, captions, masks = zip(
                    *[
                        (class_name_to_id[cnm], cnm, msk)
                        for (cnm, gid), msk in masks.items()
                        if cnm in class_name_to_id
                    ]
                )
                viz = imgviz.instances2rgb(
                    image=img,
                    labels=labels,
                    masks=masks,
                    captions=captions,
                    font_size=15,
                    line_width=2,
                )
            out_viz_file = osp.join(args.output_dir, "Visualization", f"{base}.jpg")
            imgviz.io.imsave(out_viz_file, viz)

    with open(out_ann_file, "w") as f:
        json.dump(data, f)


if __name__ == "__main__":
    main()


================================================
FILE: examples/instance_segmentation/labelme2voc.py
================================================
#!/usr/bin/env python


import argparse
import glob
import os
import os.path as osp
import sys

import imgviz
import numpy as np

import labelme


def main():
    parser = argparse.ArgumentParser(
        formatter_class=argparse.ArgumentDefaultsHelpFormatter
    )
    parser.add_argument("input_dir", help="Input annotated directory")
    parser.add_argument("output_dir", help="Output dataset directory")
    parser.add_argument(
        "--labels", help="Labels file or comma separated text", required=True
    )
    parser.add_argument(
        "--noobject", help="Flag not to generate object label", action="store_true"
    )
    parser.add_argument(
        "--nonpy", help="Flag not to generate .npy files", action="store_true"
    )
    parser.add_argument(
        "--noviz", help="Flag to disable visualization", action="store_true"
    )
    args = parser.parse_args()

    if osp.exists(args.output_dir):
        print("Output directory already exists:", args.output_dir)
        sys.exit(1)
    os.makedirs(args.output_dir)
    os.makedirs(osp.join(args.output_dir, "JPEGImages"))
    os.makedirs(osp.join(args.output_dir, "SegmentationClass"))
    if not args.nonpy:
        os.makedirs(osp.join(args.output_dir, "SegmentationClassNpy"))
    if not args.noviz:
        os.makedirs(osp.join(args.output_dir, "SegmentationClassVisualization"))
    if not args.noobject:
        os.makedirs(osp.join(args.output_dir, "SegmentationObject"))
        if not args.nonpy:
            os.makedirs(osp.join(args.output_dir, "SegmentationObjectNpy"))
        if not args.noviz:
            os.makedirs(osp.join(args.output_dir, "SegmentationObjectVisualization"))
    print("Creating dataset:", args.output_dir)

    if osp.exists(args.labels):
        with open(args.labels) as f:
            labels = [label.strip() for label in f if label]
    else:
        labels = [label.strip() for label in args.labels.split(",")]

    class_names: list[str] = []
    class_name_to_id = {}
    for i, label in enumerate(labels):
        class_id = i - 1  # starts with -1
        class_name = label.strip()
        class_name_to_id[class_name] = class_id
        if class_id == -1:
            assert class_name == "__ignore__"
            continue
        elif class_id == 0:
            assert class_name == "_background_"
        class_names.append(class_name)
    print("class_names:", class_names)
    out_class_names_file = osp.join(args.output_dir, "class_names.txt")
    with open(out_class_names_file, "w") as f:
        f.writelines("\n".join(class_names))
    print("Saved class_names:", out_class_names_file)

    for filename in sorted(glob.glob(osp.join(args.input_dir, "*.json"))):
        print("Generating dataset from:", filename)

        label_file = labelme.LabelFile(filename=filename)

        base = osp.splitext(osp.basename(filename))[0]
        out_img_file = osp.join(args.output_dir, "JPEGImages", f"{base}.jpg")
        out_clsp_file = osp.join(args.output_dir, "SegmentationClass", f"{base}.png")
        if not args.nonpy:
            out_cls_file = osp.join(
                args.output_dir, "SegmentationClassNpy", f"{base}.npy"
            )
        if not args.noviz:
            out_clsv_file = osp.join(
                args.output_dir,
                "SegmentationClassVisualization",
                f"{base}.jpg",
            )
        if not args.noobject:
            out_insp_file = osp.join(
                args.output_dir, "SegmentationObject", f"{base}.png"
            )
            if not args.nonpy:
                out_ins_file = osp.join(
                    args.output_dir, "SegmentationObjectNpy", f"{base}.npy"
                )
            if not args.noviz:
                out_insv_file = osp.join(
                    args.output_dir,
                    "SegmentationObjectVisualization",
                    f"{base}.jpg",
                )

        img = labelme.utils.img_data_to_arr(label_file.imageData)
        imgviz.io.imsave(out_img_file, img)

        cls, ins = labelme.utils.shapes_to_label(
            img_shape=img.shape,
            shapes=label_file.shapes,
            label_name_to_value=class_name_to_id,
        )
        ins[cls == -1] = 0  # ignore it.

        # class label
        labelme.utils.lblsave(out_clsp_file, cls)
        if not args.nonpy:
            np.save(out_cls_file, cls)
        if not args.noviz:
            clsv = imgviz.label2rgb(
                cls,
                imgviz.rgb2gray(img),
                label_names=class_names,
                font_size=15,
                loc="rb",
            )
            imgviz.io.imsave(out_clsv_file, clsv)

        if not args.noobject:
            # instance label
            labelme.utils.lblsave(out_insp_file, ins)
            if not args.nonpy:
                np.save(out_ins_file, ins)
            if not args.noviz:
                instance_ids = np.unique(ins)
                instance_names = [str(i) for i in range(max(instance_ids) + 1)]
                insv = imgviz.label2rgb(
                    ins,
                    imgviz.rgb2gray(img),
                    label_names=instance_names,
                    font_size=15,
                    loc="rb",
                )
                imgviz.io.imsave(out_insv_file, insv)


if __name__ == "__main__":
    main()


================================================
FILE: examples/instance_segmentation/labels.txt
================================================
__ignore__
_background_
aeroplane
bicycle
bird
boat
bottle
bus
car
cat
chair
cow
diningtable
dog
horse
motorbike
person
potted plant
sheep
sofa
train
tv/monitor

================================================
FILE: examples/primitives/primitives.json
================================================
{
  "version": "5.7.0",
  "flags": {},
  "shapes": [
    {
      "label": "rectangle",
      "points": [
        [
          32.0,
          35.0
        ],
        [
          132.0,
          135.0
        ]
      ],
      "group_id": null,
      "description": null,
      "shape_type": "rectangle",
      "flags": {},
      "mask": null
    },
    {
      "label": "circle",
      "points": [
        [
          195.0,
          84.0
        ],
        [
          225.0,
          125.0
        ]
      ],
      "group_id": null,
      "description": null,
      "shape_type": "circle",
      "flags": {},
      "mask": null
    },
    {
      "label": "rectangle",
      "points": [
        [
          391.0,
          33.0
        ],
        [
          542.0,
          135.0
        ]
      ],
      "group_id": null,
      "description": null,
      "shape_type": "rectangle",
      "flags": {},
      "mask": null
    },
    {
      "label": "polygon",
      "points": [
        [
          69.0,
          318.0
        ],
        [
          45.0,
          403.0
        ],
        [
          173.0,
          406.0
        ],
        [
          198.0,
          321.0
        ]
      ],
      "group_id": null,
      "description": null,
      "shape_type": "polygon",
      "flags": {},
      "mask": null
    },
    {
      "label": "line",
      "points": [
        [
          188.0,
          178.0
        ],
        [
          160.0,
          224.0
        ]
      ],
      "group_id": null,
      "description": null,
      "shape_type": "line",
      "flags": {},
      "mask": null
    },
    {
      "label": "point",
      "points": [
        [
          345.0,
          174.0
        ]
      ],
      "group_id": null,
      "description": null,
      "shape_type": "point",
      "flags": {},
      "mask": null
    },
    {
      "label": "line_strip",
      "points": [
        [
          440.53703703703707,
          181.46296296296293
        ],
        [
          402.53703703703707,
          274.46296296296293
        ],
        [
          544.5370370370371,
          275.46296296296293
        ]
      ],
      "group_id": null,
      "description": null,
      "shape_type": "linestrip",
      "flags": {},
      "mask": null
    },
    {
      "label": "octagon",
      "points": [
        [
          417.39759036144574,
          305.0
        ],
        [
          516.3975903614457,
          404.0
        ]
      ],
      "group_id": null,
      "description": "",
      "shape_type": "mask",
      "flags": {},
      "mask": "iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAAAAABVicqIAAABd0lEQVR4nN3aUYrDMAwE0Bnd/86zdMt2aWI7TqwRJPooFGS9SE5DwSHOBV8furLoQq48CDfflY6005SJ9JOUhBxlaB2Z6VRryPRtoatlztzdGDLMIcYMk4Shw0SiyzCV6DBMJppM5BvgGEkxsCuz6QQWJUZXkBXhKcsuktkIe0hqsI24dgS+TtpIdiNsIcYIX2nuEd+2wzoubhFnI7BuPL8RayO4+y2Mz4CiYFowj4v/iLkRPGDj8R5SFEwLVeOiFeBTNh6vVsK/7SgaF+0En7LxeBDCCkSPGRdCFQjsoapbWGZBdT9GVSDeUOWzS8b6+kPsER/OjfhCv5+FT2FVIK7QF6L7dqINort2ogoEO8Q5r/CVVgPRHTtRE9H9OlEHsbUSrsJdJLEVdRFXRN9fCQ0Qj4ENktOK7CemODzMzGhGc9dN+wHzgiP3mwU4feh/ntFCnUlGq1XofqVkJkerBQ6ztLZ8JlELaydTdXnldLL1zzMvPAt+AJy8O66XXMiCAAAAAElFTkSuQmCC"
    }
  ],
  "imagePath": "primitives.jpg",
  "imageData": null,
  "imageHeight": 450,
  "imageWidth": 560
}

================================================
FILE: examples/semantic_segmentation/README.md
================================================
# Semantic Segmentation Example

## Annotation

```bash
labelme data_annotated --labels labels.txt --validatelabel exact --config '{shift_auto_shape_color: -2}'
```

![](.readme/annotation.jpg)


## Convert to VOC-format Dataset

```bash
# It generates:
#   - data_dataset_voc/JPEGImages
#   - data_dataset_voc/SegmentationClass
#   - data_dataset_voc/SegmentationClassNpy
#   - data_dataset_voc/SegmentationClassVisualization
./labelme2voc.py data_annotated data_dataset_voc --labels labels.txt --noobject
```

<img src="data_dataset_voc/JPEGImages/2011_000003.jpg" width="33%" /> <img src="data_dataset_voc/SegmentationClass/2011_000003.png" width="33%" /> <img src="data_dataset_voc/SegmentationClassVisualization/2011_000003.jpg" width="33%" />

Fig 1. JPEG image (left), PNG label (center), JPEG label visualization (right)  


Note that the label file contains only very low label values (ex. `0, 4, 14`), and
`255` indicates the `__ignore__` label value (`-1` in the npy file).  
You can see the label PNG file by following.

```bash
../tutorial/draw_label_png.py data_dataset_voc/SegmentationClass/2011_000003.png
```

<img src=".readme/draw_label_png.jpg" width="33%" />


================================================
FILE: examples/semantic_segmentation/data_annotated/2011_000003.json
================================================
{
  "version": "4.0.0",
  "flags": {},
  "shapes": [
    {
      "label": "person",
      "points": [
        [
          250.8142292490119,
          106.96696468940974
        ],
        [
          229.8142292490119,
          118.96696468940974
        ],
        [
          221.8142292490119,
          134.96696468940974
        ],
        [
          223.8142292490119,
          147.96696468940974
        ],
        [
          217.8142292490119,
          160.96696468940974
        ],
        [
          202.8142292490119,
          167.96696468940974
        ],
        [
          192.8142292490119,
          199.96696468940974
        ],
        [
          194.8142292490119,
          221.96696468940974
        ],
        [
          199.8142292490119,
          226.96696468940974
        ],
        [
          191.8142292490119,
          233.96696468940974
        ],
        [
          197.8142292490119,
          263.9669646894098
        ],
        [
          213.8142292490119,
          294.9669646894098
        ],
        [
          214.8142292490119,
          319.9669646894098
        ],
        [
          221.8142292490119,
          326.9669646894098
        ],
        [
          235.8142292490119,
          325.9669646894098
        ],
        [
          240.8142292490119,
          322.9669646894098
        ],
        [
          235.8142292490119,
          297.9669646894098
        ],
        [
          238.8142292490119,
          286.9669646894098
        ],
        [
          234.8142292490119,
          267.9669646894098
        ],
        [
          257.81422924901193,
          257.9669646894098
        ],
        [
          264.81422924901193,
          263.9669646894098
        ],
        [
          256.81422924901193,
          272.9669646894098
        ],
        [
          259.81422924901193,
          281.9669646894098
        ],
        [
          284.81422924901193,
          287.9669646894098
        ],
        [
          297.81422924901193,
          277.9669646894098
        ],
        [
          288.81422924901193,
          269.9669646894098
        ],
        [
          281.81422924901193,
          269.9669646894098
        ],
        [
          283.81422924901193,
          263.9669646894098
        ],
        [
          292.81422924901193,
          260.9669646894098
        ],
        [
          308.81422924901193,
          235.96696468940974
        ],
        [
          313.81422924901193,
          216.96696468940974
        ],
        [
          309.81422924901193,
          207.96696468940974
        ],
        [
          312.81422924901193,
          201.96696468940974
        ],
        [
          308.81422924901193,
          184.96696468940974
        ],
        [
          291.81422924901193,
          172.96696468940974
        ],
        [
          269.81422924901193,
          158.96696468940974
        ],
        [
          261.81422924901193,
          153.96696468940974
        ],
        [
          264.81422924901193,
          141.96696468940974
        ],
        [
          273.81422924901193,
          136.96696468940974
        ],
        [
          278.81422924901193,
          129.96696468940974
        ],
        [
          270.81422924901193,
          120.96696468940974
        ]
      ],
      "group_id": null,
      "shape_type": "polygon",
      "flags": {}
    },
    {
      "label": "person",
      "points": [
        [
          482.81422924901193,
          85.33596837944665
        ],
        [
          468.81422924901193,
          90.33596837944665
        ],
        [
          460.81422924901193,
          110.33596837944665
        ],
        [
          460.81422924901193,
          127.33596837944665
        ],
        [
          444.81422924901193,
          137.33596837944665
        ],
        [
          419.81422924901193,
          153.33596837944665
        ],
        [
          410.81422924901193,
          163.33596837944665
        ],
        [
          403.81422924901193,
          168.33596837944665
        ],
        [
          394.81422924901193,
          170.33596837944665
        ],
        [
          386.81422924901193,
          168.33596837944665
        ],
        [
          386.81422924901193,
          184.33596837944665
        ],
        [
          392.81422924901193,
          182.33596837944665
        ],
        [
          410.81422924901193,
          187.33596837944665
        ],
        [
          414.81422924901193,
          192.33596837944665
        ],
        [
          437.81422924901193,
          189.33596837944665
        ],
        [
          434.81422924901193,
          204.33596837944665
        ],
        [
          390.81422924901193,
          195.33596837944665
        ],
        [
          386.81422924901193,
          195.33596837944665
        ],
        [
          387.81422924901193,
          208.33596837944665
        ],
        [
          381.81422924901193,
          212.33596837944665
        ],
        [
          372.81422924901193,
          212.33596837944665
        ],
        [
          372.81422924901193,
          216.33596837944665
        ],
        [
          400.81422924901193,
          270.3359683794467
        ],
        [
          389.81422924901193,
          272.3359683794467
        ],
        [
          389.81422924901193,
          274.3359683794467
        ],
        [
          403.81422924901193,
          282.3359683794467
        ],
        [
          444.81422924901193,
          283.3359683794467
        ],
        [
          443.81422924901193,
          259.3359683794467
        ],
        [
          426.81422924901193,
          244.33596837944665
        ],
        [
          462.81422924901193,
          256.3359683794467
        ],
        [
          474.81422924901193,
          270.3359683794467
        ],
        [
          477.81422924901193,
          280.3359683794467
        ],
        [
          473.81422924901193,
          289.3359683794467
        ],
        [
          471.81422924901193,
          296.3359683794467
        ],
        [
          472.81422924901193,
          317.3359683794467
        ],
        [
          480.81422924901193,
          332.3359683794467
        ],
        [
          494.81422924901193,
          335.3359683794467
        ],
        [
          498.81422924901193,
          329.3359683794467
        ],
        [
          494.81422924901193,
          308.3359683794467
        ],
        [
          499.81422924901193,
          297.3359683794467
        ],
        [
          499.81422924901193,
          90.33596837944665
        ]
      ],
      "group_id": null,
      "shape_type": "polygon",
      "flags": {}
    },
    {
      "label": "person",
      "points": [
        [
          370.81422924901193,
          170.33596837944665
        ],
        [
          366.81422924901193,
          173.33596837944665
        ],
        [
          365.81422924901193,
          182.33596837944665
        ],
        [
          368.81422924901193,
          185.33596837944665
        ]
      ],
      "group_id": null,
      "shape_type": "polygon",
      "flags": {}
    },
    {
      "label": "bottle",
      "points": [
        [
          374.81422924901193,
          159.33596837944665
        ],
        [
          369.81422924901193,
          170.33596837944665
        ],
        [
          369.81422924901193,
          210.33596837944665
        ],
        [
          375.81422924901193,
          212.33596837944665
        ],
        [
          387.81422924901193,
          209.33596837944665
        ],
        [
          385.81422924901193,
          185.33596837944665
        ],
        [
          385.81422924901193,
          168.33596837944665
        ],
        [
          385.81422924901193,
          165.33596837944665
        ],
        [
          382.81422924901193,
          159.33596837944665
        ]
      ],
      "group_id": null,
      "shape_type": "polygon",
      "flags": {}
    },
    {
      "label": "__ignore__",
      "points": [
        [
          338.81422924901193,
          266.3359683794467
        ],
        [
          313.81422924901193,
          269.3359683794467
        ],
        [
          297.81422924901193,
          277.3359683794467
        ],
        [
          282.81422924901193,
          288.3359683794467
        ],
        [
          273.81422924901193,
          302.3359683794467
        ],
        [
          272.81422924901193,
          320.3359683794467
        ],
        [
          279.81422924901193,
          337.3359683794467
        ],
        [
          428.81422924901193,
          337.3359683794467
        ],
        [
          432.81422924901193,
          316.3359683794467
        ],
        [
          423.81422924901193,
          296.3359683794467
        ],
        [
          403.81422924901193,
          283.3359683794467
        ],
        [
          370.81422924901193,
          270.3359683794467
        ]
      ],
      "group_id": null,
      "shape_type": "polygon",
      "flags": {}
    }
  ],
  "imagePath": "2011_000003.jpg",
  "imageData": null,
  "imageHeight": 338,
  "imageWidth": 500
}

================================================
FILE: examples/semantic_segmentation/data_annotated/2011_000006.json
================================================
{
  "version": "4.0.0",
  "flags": {},
  "shapes": [
    {
      "label": "person",
      "points": [
        [
          204.936170212766,
          108.56382978723406
        ],
        [
          183.936170212766,
          141.56382978723406
        ],
        [
          166.936170212766,
          150.56382978723406
        ],
        [
          108.93617021276599,
          203.56382978723406
        ],
        [
          92.93617021276599,
          228.56382978723406
        ],
        [
          95.93617021276599,
          244.56382978723406
        ],
        [
          105.93617021276599,
          244.56382978723406
        ],
        [
          116.93617021276599,
          223.56382978723406
        ],
        [
          163.936170212766,
          187.56382978723406
        ],
        [
          147.936170212766,
          212.56382978723406
        ],
        [
          117.93617021276599,
          222.56382978723406
        ],
        [
          108.93617021276599,
          243.56382978723406
        ],
        [
          100.93617021276599,
          325.56382978723406
        ],
        [
          135.936170212766,
          329.56382978723406
        ],
        [
          148.936170212766,
          319.56382978723406
        ],
        [
          150.936170212766,
          295.56382978723406
        ],
        [
          169.936170212766,
          272.56382978723406
        ],
        [
          171.936170212766,
          249.56382978723406
        ],
        [
          178.936170212766,
          246.56382978723406
        ],
        [
          186.936170212766,
          225.56382978723406
        ],
        [
          214.936170212766,
          219.56382978723406
        ],
        [
          242.936170212766,
          157.56382978723406
        ],
        [
          228.936170212766,
          146.56382978723406
        ],
        [
          228.936170212766,
          125.56382978723406
        ],
        [
          216.936170212766,
          112.56382978723406
        ]
      ],
      "group_id": null,
      "shape_type": "polygon",
      "flags": {}
    },
    {
      "label": "person",
      "points": [
        [
          271.936170212766,
          109.56382978723406
        ],
        [
          249.936170212766,
          110.56382978723406
        ],
        [
          244.936170212766,
          150.56382978723406
        ],
        [
          215.936170212766,
          219.56382978723406
        ],
        [
          208.936170212766,
          245.56382978723406
        ],
        [
          214.936170212766,
          220.56382978723406
        ],
        [
          188.936170212766,
          227.56382978723406
        ],
        [
          170.936170212766,
          246.56382978723406
        ],
        [
          170.936170212766,
          275.56382978723406
        ],
        [
          221.936170212766,
          278.56382978723406
        ],
        [
          233.936170212766,
          259.56382978723406
        ],
        [
          246.936170212766,
          253.56382978723406
        ],
        [
          245.936170212766,
          256.56382978723406
        ],
        [
          242.936170212766,
          251.56382978723406
        ],
        [
          262.936170212766,
          256.56382978723406
        ],
        [
          304.936170212766,
          226.56382978723406
        ],
        [
          297.936170212766,
          199.56382978723406
        ],
        [
          308.936170212766,
          164.56382978723406
        ],
        [
          296.936170212766,
          148.56382978723406
        ]
      ],
      "group_id": null,
      "shape_type": "polygon",
      "flags": {}
    },
    {
      "label": "person",
      "points": [
        [
          308.936170212766,
          115.56382978723406
        ],
        [
          298.936170212766,
          145.56382978723406
        ],
        [
          309.936170212766,
          166.56382978723406
        ],
        [
          297.936170212766,
          200.56382978723406
        ],
        [
          305.936170212766,
          228.56382978723406
        ],
        [
          262.936170212766,
          258.56382978723406
        ],
        [
          252.936170212766,
          284.56382978723406
        ],
        [
          272.936170212766,
          291.56382978723406
        ],
        [
          281.936170212766,
          250.56382978723406
        ],
        [
          326.936170212766,
          235.56382978723406
        ],
        [
          351.936170212766,
          239.56382978723406
        ],
        [
          365.936170212766,
          223.56382978723406
        ],
        [
          371.936170212766,
          187.56382978723406
        ],
        [
          353.936170212766,
          168.56382978723406
        ],
        [
          344.936170212766,
          143.56382978723406
        ],
        [
          336.936170212766,
          115.56382978723406
        ]
      ],
      "group_id": null,
      "shape_type": "polygon",
      "flags": {}
    },
    {
      "label": "chair",
      "points": [
        [
          308.936170212766,
          243.33306055646483
        ],
        [
          281.936170212766,
          252.33306055646483
        ],
        [
          270.936170212766,
          288.33306055646483
        ],
        [
          174.936170212766,
          276.33306055646483
        ],
        [
          148.936170212766,
          297.33306055646483
        ],
        [
          150.936170212766,
          320.33306055646483
        ],
        [
          159.936170212766,
          329.33306055646483
        ],
        [
          164.77327127659578,
          375.7692307692308
        ],
        [
          485.936170212766,
          374.33306055646483
        ],
        [
          497.936170212766,
          337.33306055646483
        ],
        [
          497.936170212766,
          203.33306055646483
        ],
        [
          453.936170212766,
          194.33306055646483
        ],
        [
          434.936170212766,
          213.33306055646483
        ],
        [
          367.936170212766,
          225.33306055646483
        ],
        [
          350.936170212766,
          242.33306055646483
        ]
      ],
      "group_id": null,
      "shape_type": "polygon",
      "flags": {}
    },
    {
      "label": "person",
      "points": [
        [
          425.936170212766,
          82.56382978723406
        ],
        [
          404.936170212766,
          109.56382978723406
        ],
        [
          400.936170212766,
          114.56382978723406
        ],
        [
          437.936170212766,
          114.56382978723406
        ],
        [
          448.936170212766,
          102.56382978723406
        ],
        [
          446.936170212766,
          91.56382978723406
        ]
      ],
      "group_id": null,
      "shape_type": "polygon",
      "flags": {}
    },
    {
      "label": "__ignore__",
      "points": [
        [
          457.936170212766,
          85.56382978723406
        ],
        [
          439.936170212766,
          117.56382978723406
        ],
        [
          477.936170212766,
          117.56382978723406
        ],
        [
          474.936170212766,
          87.56382978723406
        ]
      ],
      "group_id": null,
      "shape_type": "polygon",
      "flags": {}
    },
    {
      "label": "sofa",
      "points": [
        [
          183.936170212766,
          140.56382978723406
        ],
        [
          125.93617021276599,
          140.56382978723406
        ],
        [
          110.93617021276599,
          187.56382978723406
        ],
        [
          22.936170212765987,
          199.56382978723406
        ],
        [
          18.936170212765987,
          218.56382978723406
        ],
        [
          22.936170212765987,
          234.56382978723406
        ],
        [
          93.93617021276599,
          239.56382978723406
        ],
        [
          91.93617021276599,
          229.56382978723406
        ],
        [
          110.93617021276599,
          203.56382978723406
        ]
      ],
      "group_id": null,
      "shape_type": "polygon",
      "flags": {}
    },
    {
      "label": "sofa",
      "points": [
        [
          103.93617021276599,
          290.56382978723406
        ],
        [
          58.93617021276599,
          303.56382978723406
        ],
        [
          97.93617021276599,
          311.56382978723406
        ]
      ],
      "group_id": null,
      "shape_type": "polygon",
      "flags": {}
    },
    {
      "label": "sofa",
      "points": [
        [
          348.936170212766,
          146.56382978723406
        ],
        [
          472.936170212766,
          149.56382978723406
        ],
        [
          477.936170212766,
          162.56382978723406
        ],
        [
          471.936170212766,
          196.56382978723406
        ],
        [
          453.936170212766,
          192.56382978723406
        ],
        [
          434.936170212766,
          213.56382978723406
        ],
        [
          368.936170212766,
          226.56382978723406
        ],
        [
          375.936170212766,
          187.56382978723406
        ],
        [
          353.936170212766,
          164.56382978723406
        ]
      ],
      "group_id": null,
      "shape_type": "polygon",
      "flags": {}
    },
    {
      "label": "sofa",
      "points": [
        [
          246.936170212766,
          252.56382978723406
        ],
        [
          219.936170212766,
          277.56382978723406
        ],
        [
          254.936170212766,
          287.56382978723406
        ],
        [
          261.936170212766,
          256.56382978723406
        ]
      ],
      "group_id": null,
      "shape_type": "polygon",
      "flags": {}
    }
  ],
  "imagePath": "2011_000006.jpg",
  "imageData": null,
  "imageHeight": 375,
  "imageWidth": 500
}

================================================
FILE: examples/semantic_segmentation/data_annotated/2011_000025.json
================================================
{
  "version": "4.0.0",
  "flags": {},
  "shapes": [
    {
      "label": "bus",
      "points": [
        [
          260.936170212766,
          22.948445171849443
        ],
        [
          193.936170212766,
          19.948445171849443
        ],
        [
          124.93617021276599,
          39.94844517184944
        ],
        [
          89.93617021276599,
          101.94844517184944
        ],
        [
          81.93617021276599,
          150.94844517184944
        ],
        [
          108.93617021276599,
          145.94844517184944
        ],
        [
          88.93617021276599,
          244.94844517184944
        ],
        [
          89.93617021276599,
          322.94844517184936
        ],
        [
          116.93617021276599,
          367.94844517184936
        ],
        [
          158.936170212766,
          368.94844517184936
        ],
        [
          165.936170212766,
          337.94844517184936
        ],
        [
          347.936170212766,
          335.94844517184936
        ],
        [
          349.936170212766,
          369.94844517184936
        ],
        [
          391.936170212766,
          373.94844517184936
        ],
        [
          403.936170212766,
          335.94844517184936
        ],
        [
          425.936170212766,
          332.94844517184936
        ],
        [
          421.936170212766,
          281.94844517184936
        ],
        [
          428.936170212766,
          252.94844517184944
        ],
        [
          428.936170212766,
          236.94844517184944
        ],
        [
          409.936170212766,
          220.94844517184944
        ],
        [
          409.936170212766,
          150.94844517184944
        ],
        [
          430.936170212766,
          143.94844517184944
        ],
        [
          433.936170212766,
          112.94844517184944
        ],
        [
          431.936170212766,
          96.94844517184944
        ],
        [
          408.936170212766,
          90.94844517184944
        ],
        [
          395.936170212766,
          50.94844517184944
        ],
        [
          338.936170212766,
          25.948445171849443
        ]
      ],
      "group_id": null,
      "shape_type": "polygon",
      "flags": {}
    },
    {
      "label": "bus",
      "points": [
        [
          88.93617021276599,
          115.56382978723406
        ],
        [
          0.9361702127659877,
          96.56382978723406
        ],
        [
          0.0,
          251.968085106388
        ],
        [
          0.9361702127659877,
          265.56382978723406
        ],
        [
          27.936170212765987,
          265.56382978723406
        ],
        [
          29.936170212765987,
          283.56382978723406
        ],
        [
          63.93617021276599,
          281.56382978723406
        ],
        [
          89.93617021276599,
          252.56382978723406
        ],
        [
          100.93617021276599,
          183.56382978723406
        ],
        [
          108.93617021276599,
          145.56382978723406
        ],
        [
          81.93617021276599,
          151.56382978723406
        ]
      ],
      "group_id": null,
      "shape_type": "polygon",
      "flags": {}
    },
    {
      "label": "car",
      "points": [
        [
          413.936170212766,
          168.56382978723406
        ],
        [
          497.936170212766,
          168.56382978723406
        ],
        [
          497.936170212766,
          256.56382978723406
        ],
        [
          431.936170212766,
          258.56382978723406
        ],
        [
          430.936170212766,
          236.56382978723406
        ],
        [
          408.936170212766,
          218.56382978723406
        ]
      ],
      "group_id": null,
      "shape_type": "polygon",
      "flags": {}
    }
  ],
  "imagePath": "2011_000025.jpg",
  "imageData": null,
  "imageHeight": 375,
  "imageWidth": 500
}

================================================
FILE: examples/semantic_segmentation/data_dataset_voc/class_names.txt
================================================
_background_
aeroplane
bicycle
bird
boat
bottle
bus
car
cat
chair
cow
diningtable
dog
horse
motorbike
person
potted plant
sheep
sofa
train
tv/monitor

================================================
FILE: examples/semantic_segmentation/labels.txt
================================================
__ignore__
_background_
aeroplane
bicycle
bird
boat
bottle
bus
car
cat
chair
cow
diningtable
dog
horse
motorbike
person
potted plant
sheep
sofa
train
tv/monitor

================================================
FILE: examples/tutorial/README.md
================================================
# Tutorial (Single Image Example)

## Annotation

```bash
labelme apc2016_obj3.jpg
```

![](.readme/annotation.jpg)


## Visualization

To view the json file quickly, you can use utility script:

```bash
./draw_json.py apc2016_obj3.json
```

<img src=".readme/draw_json.jpg" width="70%" />


## Convert to Dataset

To convert the json to set of image and label, you can run following:


```bash
./export_json.py apc2016_obj3.json
```

It generates standard files from the JSON file.

- [img.png](apc2016_obj3/img.png): Image file.
- [label.png](apc2016_obj3/label.png): uint8 label file.
- [label_viz.png](apc2016_obj3/label_viz.png): Visualization of `label.png`.
- [label_names.txt](apc2016_obj3/label_names.txt): Label names for values in `label.png`.

## How to load label PNG file?

Note that loading `label.png` is a bit difficult
(`scipy.misc.imread`, `skimage.io.imread` may not work correctly),
and please use `PIL.Image.open` to avoid unexpected behavior:

```python
# see load_label_png.py also.
>>> import numpy as np
>>> import PIL.Image

>>> label_png = 'apc2016_obj3/label.png'
>>> lbl = np.asarray(PIL.Image.open(label_png))
>>> print(lbl.dtype)
dtype('uint8')
>>> np.unique(lbl)
array([0, 1, 2, 3], dtype=uint8)
>>> lbl.shape
(907, 1210)
```

Also, you can see the label PNG file by:

```bash
./draw_label_png.py apc2016_obj3/label.png
```

<img src=".readme/draw_label_png.jpg" width="35%" />


================================================
FILE: examples/tutorial/apc2016_obj3/label_names.txt
================================================
_background_
highland_6539_self_stick_notes
kong_air_dog_squeakair_tennis_ball
mead_index_cards
shelf


================================================
FILE: examples/tutorial/apc2016_obj3.json
================================================
{
  "version": "4.0.0",
  "flags": {},
  "shapes": [
    {
      "label": "shelf",
      "points": [
        [
          7.942307692307736,
          80.76150251617551
        ],
        [
          171.94230769230774,
          714.7615025161755
        ],
        [
          968.9423076923077,
          733.7615025161755
        ],
        [
          1181.9423076923076,
          110.76150251617551
        ]
      ],
      "group_id": null,
      "shape_type": "polygon",
      "flags": {}
    },
    {
      "label": "highland_6539_self_stick_notes",
      "points": [
        [
          430.16339869281046,
          516.2450980392157
        ],
        [
          390.9477124183006,
          606.4411764705883
        ],
        [
          398.7908496732026,
          697.2908496732026
        ],
        [
          522.3202614379085,
          711.6699346405229
        ],
        [
          762.18954248366,
          721.4738562091503
        ],
        [
          777.2222222222222,
          634.5457516339869
        ],
        [
          761.5359477124183,
          537.8137254901961
        ],
        [
          634.0849673202614,
          518.8594771241831
        ],
        [
          573.3006535947712,
          512.9771241830066
        ],
        [
          534.0849673202614,
          513.6307189542484
        ]
      ],
      "group_id": null,
      "shape_type": "polygon",
      "flags": {}
    },
    {
      "label": "mead_index_cards",
      "points": [
        [
          447.156862745098,
          394.6764705882353
        ],
        [
          410.55555555555554,
          480.95098039215685
        ],
        [
          415.1307189542483,
          522.781045751634
        ],
        [
          422.9738562091503,
          522.781045751634
        ],
        [
          427.5490196078431,
          515.5915032679738
        ],
        [
          570.032679738562,
          512.3235294117648
        ],
        [
          732.1241830065359,
          528.0098039215686
        ],
        [
          733.4313725490196,
          492.71568627450984
        ],
        [
          724.9346405228757,
          407.0947712418301
        ]
      ],
      "group_id": null,
      "shape_type": "polygon",
      "flags": {}
    },
    {
      "label": "kong_air_dog_squeakair_tennis_ball",
      "points": [
        [
          419.05228758169926,
          266.5718954248366
        ],
        [
          343.235294117647,
          303.1732026143791
        ],
        [
          511.2091503267974,
          318.859477124183
        ],
        [
          519.7058823529411,
          334.5457516339869
        ],
        [
          533.4313725490196,
          339.7745098039216
        ],
        [
          551.7320261437908,
          349.57843137254906
        ],
        [
          573.3006535947712,
          354.15359477124184
        ],
        [
          592.2549019607843,
          353.5
        ],
        [
          604.0196078431372,
          345.0032679738562
        ],
        [
          613.1699346405228,
          341.7352941176471
        ],
        [
          687.0261437908497,
          365.91830065359477
        ],
        [
          696.1764705882352,
          358.07516339869284
        ],
        [
          727.5490196078431,
          329.3169934640523
        ],
        [
          677.2222222222222,
          306.44117647058823
        ],
        [
          651.078431372549,
          273.76143790849676
        ],
        [
          632.1241830065359,
          272.4542483660131
        ],
        [
          612.516339869281,
          248.27124183006538
        ],
        [
          596.8300653594771,
          241.08169934640526
        ],
        [
          577.2222222222222,
          234.54575163398695
        ],
        [
          563.4967320261437,
          234.54575163398695
        ],
        [
          545.1960784313725,
          235.19934640522877
        ],
        [
          534.7385620915032,
          242.3888888888889
        ],
        [
          526.2418300653594,
          247.61764705882354
        ],
        [
          513.1699346405228,
          258.7287581699347
        ],
        [
          507.28758169934633,
          266.5718954248366
        ],
        [
          502.0588235294117,
          272.4542483660131
        ],
        [
          496.17647058823525,
          273.1078431372549
        ],
        [
          474.6078431372549,
          273.1078431372549
        ]
      ],
      "group_id": null,
      "shape_type": "polygon",
      "flags": {}
    }
  ],
  "imagePath": "apc2016_obj3.json",
  "imageData": "/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAgGBgcGBQgHBwcJCQgKDBQNDAsLDBkSEw8UHRofHh0aHBwgJC4nICIsIxwcKDcpLDAxNDQ0Hyc5PTgyPC4zNDL/2wBDAQkJCQwLDBgNDRgyIRwhMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjL/wAARCAOLBLoDASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk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SEYFLgYOeaQDl4Ofwp2wHAPSmDrj+tSDkfypDAHApo4zzT1GG571IiDJ9fegCMZ6eh608Hjj6UhXB4pyevrmkMNoUetTAYiAFRgk9KcO3H5UhjmA3YyKACXHNPdQxGBmkH1560hidselPxuAP8AKgkbSfbHFPRRsBzzigYwHA60pOVDdu1ABySc+tIWJX0BoAQEHAppBGcc0lORSSTQA5F3YPQCpSoBximAgZzwBSs2Op/SkULkZODn0pR8zAUiDK5z+VP+XcOwoAp3kgYrCG5JyRWxZRCKIKCfbNZMCCe/L7cgVvIAF4FdtONkcNSV5Due9Lj3PNAH0NHGBzWhmLinKM4pBT04INAHO3533UmT0OKpHritnUtLmSQzxKWibk47VkPG4PzLz6VzSg2zpjJWGbRu9vao3LSyCGMZJParENldXb7I
Download .txt
gitextract_ghzsofy7/

├── .claude/
│   └── CLAUDE.md
├── .git-blame-ignore-revs
├── .github/
│   ├── ISSUE_TEMPLATE/
│   │   ├── 1.bug_report.yml
│   │   └── config.yml
│   └── workflows/
│       ├── ci.yml
│       ├── cla.yml
│       └── discord-notify.yml
├── .gitignore
├── .gitmodules
├── .python-version
├── CITATION.cff
├── CLA.md
├── LICENSE
├── Makefile
├── README.md
├── examples/
│   ├── bbox_detection/
│   │   ├── README.md
│   │   ├── data_annotated/
│   │   │   ├── 2011_000003.json
│   │   │   ├── 2011_000006.json
│   │   │   └── 2011_000025.json
│   │   ├── data_dataset_voc/
│   │   │   ├── Annotations/
│   │   │   │   ├── 2011_000003.xml
│   │   │   │   ├── 2011_000006.xml
│   │   │   │   └── 2011_000025.xml
│   │   │   └── class_names.txt
│   │   ├── labelme2voc.py
│   │   └── labels.txt
│   ├── classification/
│   │   ├── README.md
│   │   ├── data_annotated/
│   │   │   ├── 0001.json
│   │   │   └── 0002.json
│   │   └── flags.txt
│   ├── instance_segmentation/
│   │   ├── README.md
│   │   ├── data_annotated/
│   │   │   ├── 2011_000003.json
│   │   │   ├── 2011_000006.json
│   │   │   └── 2011_000025.json
│   │   ├── data_dataset_coco/
│   │   │   └── annotations.json
│   │   ├── data_dataset_voc/
│   │   │   ├── SegmentationClassNpy/
│   │   │   │   ├── 2011_000003.npy
│   │   │   │   ├── 2011_000006.npy
│   │   │   │   └── 2011_000025.npy
│   │   │   ├── SegmentationObjectNpy/
│   │   │   │   ├── 2011_000003.npy
│   │   │   │   ├── 2011_000006.npy
│   │   │   │   └── 2011_000025.npy
│   │   │   └── class_names.txt
│   │   ├── labelme2coco.py
│   │   ├── labelme2voc.py
│   │   └── labels.txt
│   ├── primitives/
│   │   └── primitives.json
│   ├── semantic_segmentation/
│   │   ├── README.md
│   │   ├── data_annotated/
│   │   │   ├── 2011_000003.json
│   │   │   ├── 2011_000006.json
│   │   │   └── 2011_000025.json
│   │   ├── data_dataset_voc/
│   │   │   ├── SegmentationClassNpy/
│   │   │   │   ├── 2011_000003.npy
│   │   │   │   ├── 2011_000006.npy
│   │   │   │   └── 2011_000025.npy
│   │   │   └── class_names.txt
│   │   └── labels.txt
│   ├── tutorial/
│   │   ├── README.md
│   │   ├── apc2016_obj3/
│   │   │   └── label_names.txt
│   │   ├── apc2016_obj3.json
│   │   ├── draw_json.py
│   │   ├── draw_label_png.py
│   │   ├── export_json.py
│   │   └── load_label_png.py
│   └── video_annotation/
│       ├── README.md
│       ├── data_annotated/
│       │   ├── 00000100.json
│       │   ├── 00000101.json
│       │   ├── 00000102.json
│       │   ├── 00000103.json
│       │   └── 00000104.json
│       ├── data_dataset_voc/
│       │   ├── SegmentationClass/
│       │   │   ├── 00000100.npy
│       │   │   ├── 00000101.npy
│       │   │   ├── 00000102.npy
│       │   │   ├── 00000103.npy
│       │   │   └── 00000104.npy
│       │   └── class_names.txt
│       └── labels.txt
├── labelme/
│   ├── __init__.py
│   ├── __main__.py
│   ├── _automation/
│   │   ├── __init__.py
│   │   ├── _osam_session.py
│   │   ├── bbox_from_text.py
│   │   └── polygon_from_mask.py
│   ├── _label_file.py
│   ├── app.py
│   ├── config/
│   │   ├── __init__.py
│   │   └── default_config.yaml
│   ├── shape.py
│   ├── testing.py
│   ├── translate/
│   │   ├── de_DE.qm
│   │   ├── de_DE.ts
│   │   ├── es_ES.qm
│   │   ├── es_ES.ts
│   │   ├── fa_IR.qm
│   │   ├── fa_IR.ts
│   │   ├── fr_FR.qm
│   │   ├── fr_FR.ts
│   │   ├── hu_HU.qm
│   │   ├── hu_HU.ts
│   │   ├── it_IT.qm
│   │   ├── it_IT.ts
│   │   ├── ja_JP.qm
│   │   ├── ja_JP.ts
│   │   ├── ko_KR.qm
│   │   ├── ko_KR.ts
│   │   ├── nl_NL.qm
│   │   ├── nl_NL.ts
│   │   ├── pl_PL.qm
│   │   ├── pl_PL.ts
│   │   ├── pt_BR.qm
│   │   ├── pt_BR.ts
│   │   ├── th_TH.qm
│   │   ├── th_TH.ts
│   │   ├── tr_TR.qm
│   │   ├── tr_TR.ts
│   │   ├── vi_VN.qm
│   │   ├── vi_VN.ts
│   │   ├── zh_CN.qm
│   │   ├── zh_CN.ts
│   │   ├── zh_TW.qm
│   │   └── zh_TW.ts
│   ├── utils/
│   │   ├── __init__.py
│   │   ├── _io.py
│   │   ├── image.py
│   │   ├── qt.py
│   │   └── shape.py
│   └── widgets/
│       ├── __init__.py
│       ├── _ai_assisted_annotation_widget.py
│       ├── _ai_text_to_annotation_widget.py
│       ├── _info_button.py
│       ├── _status.py
│       ├── brightness_contrast_dialog.py
│       ├── canvas.py
│       ├── download.py
│       ├── file_dialog_preview.py
│       ├── label_dialog.py
│       ├── label_list_widget.py
│       ├── tool_bar.py
│       ├── unique_label_qlist_widget.py
│       └── zoom_widget.py
├── pyproject.toml
├── tests/
│   ├── conftest.py
│   ├── e2e/
│   │   ├── __init__.py
│   │   ├── annotation_test.py
│   │   ├── config_test.py
│   │   ├── conftest.py
│   │   ├── file_loading_test.py
│   │   ├── navigation_test.py
│   │   └── smoke_test.py
│   └── unit/
│       ├── __init__.py
│       ├── _label_file_test.py
│       ├── config_test.py
│       ├── load_image_file_test.py
│       ├── shape_contains_point_test.py
│       ├── shape_test.py
│       ├── utils/
│       │   ├── __init__.py
│       │   ├── image_test.py
│       │   ├── qt_test.py
│       │   ├── shape_test.py
│       │   └── util.py
│       └── widgets/
│           ├── __init__.py
│           ├── canvas_test.py
│           ├── label_dialog_test.py
│           └── label_list_widget_test.py
└── tools/
    └── update_translate.py
Download .txt
SYMBOL INDEX (428 symbols across 53 files)

FILE: examples/bbox_detection/labelme2voc.py
  function main (line 22) | def main():

FILE: examples/instance_segmentation/labelme2coco.py
  function main (line 25) | def main():

FILE: examples/instance_segmentation/labelme2voc.py
  function main (line 16) | def main():

FILE: examples/tutorial/draw_json.py
  function main (line 12) | def main():

FILE: examples/tutorial/draw_label_png.py
  function main (line 12) | def main():

FILE: examples/tutorial/export_json.py
  function main (line 17) | def main():

FILE: examples/tutorial/load_label_png.py
  function main (line 12) | def main():

FILE: labelme/__main__.py
  class _LoggerIO (line 25) | class _LoggerIO(io.StringIO):
    method write (line 26) | def write(self, s: AnyStr) -> int:
    method flush (line 32) | def flush(self) -> None:
    method writable (line 35) | def writable(self) -> bool:
    method readable (line 38) | def readable(self) -> bool:
    method seekable (line 41) | def seekable(self) -> bool:
    method closed (line 45) | def closed(self) -> bool:
  function _setup_loguru (line 49) | def _setup_loguru(logger_level: str) -> None:
  function _handle_exception (line 80) | def _handle_exception(exc_type, exc_value, exc_traceback):
  function main (line 102) | def main():

FILE: labelme/_automation/_osam_session.py
  class OsamSession (line 11) | class OsamSession:
    method __init__ (line 16) | def __init__(
    method model_name (line 28) | def model_name(self) -> str:
    method run (line 31) | def run(
    method _get_or_compute_embedding (line 75) | def _get_or_compute_embedding(
    method _get_or_load_model (line 89) | def _get_or_load_model(self) -> osam.types.Model:

FILE: labelme/_automation/bbox_from_text.py
  function get_bboxes_from_texts (line 17) | def get_bboxes_from_texts(
  function nms_bboxes (line 65) | def nms_bboxes(
  function get_shapes_from_bboxes (line 100) | def get_shapes_from_bboxes(

FILE: labelme/_automation/polygon_from_mask.py
  function _get_contour_length (line 8) | def _get_contour_length(contour: NDArray[np.float32]) -> float:
  function compute_polygon_from_mask (line 14) | def compute_polygon_from_mask(mask: NDArray[np.bool_]) -> NDArray[np.flo...

FILE: labelme/_label_file.py
  function _open (line 25) | def _open(name, mode):
  class ShapeDict (line 32) | class ShapeDict(TypedDict):
  function _load_shape_json_obj (line 43) | def _load_shape_json_obj(shape_json_obj: dict) -> ShapeDict:
  class LabelFileError (line 133) | class LabelFileError(Exception):
  class LabelFile (line 137) | class LabelFile:
    method __init__ (line 141) | def __init__(self, filename: str | None = None):
    method load_image_file (line 150) | def load_image_file(filename):
    method load (line 172) | def load(self, filename):
    method _check_image_height_and_width (line 222) | def _check_image_height_and_width(imageData, imageHeight, imageWidth):
    method save (line 239) | def save(
    method is_label_file (line 279) | def is_label_file(filename):
  function _imread (line 286) | def _imread(filename: str) -> PIL.Image.Image:
  function _imread_tiff (line 299) | def _imread_tiff(filename: str) -> PIL.Image.Image:
  function _normalize_to_uint8 (line 318) | def _normalize_to_uint8(arr: NDArray) -> NDArray[np.uint8]:

FILE: labelme/app.py
  class _ZoomMode (line 67) | class _ZoomMode(enum.Enum):
  class _StatusBarWidgets (line 83) | class _StatusBarWidgets(NamedTuple):
  class _CanvasWidgets (line 88) | class _CanvasWidgets(NamedTuple):
  class _DockWidgets (line 94) | class _DockWidgets(NamedTuple):
  class _Actions (line 106) | class _Actions(NamedTuple):
  class _Menus (line 159) | class _Menus(NamedTuple):
  class MainWindow (line 168) | class MainWindow(QtWidgets.QMainWindow):
    method __init__ (line 200) | def __init__(
    method _setup_actions (line 283) | def _setup_actions(self) -> _Actions:
    method _setup_menus (line 781) | def _setup_menus(self) -> _Menus:
    method _setup_toolbars (line 891) | def _setup_toolbars(self) -> None:
    method _setup_app_state (line 937) | def _setup_app_state(
    method _setup_status_bar (line 995) | def _setup_status_bar(self) -> _StatusBarWidgets:
    method _setup_canvas (line 1003) | def _setup_canvas(self) -> _CanvasWidgets:
    method _setup_dock_widgets (line 1040) | def _setup_dock_widgets(self) -> _DockWidgets:
    method _load_config (line 1123) | def _load_config(
    method menu (line 1153) | def menu(self, title, actions=None):
    method noShapes (line 1161) | def noShapes(self) -> bool:
    method populateModeActions (line 1164) | def populateModeActions(self) -> None:
    method _get_window_title (line 1177) | def _get_window_title(self, dirty: bool) -> str:
    method setDirty (line 1191) | def setDirty(self) -> None:
    method setClean (line 1207) | def setClean(self) -> None:
    method toggleActions (line 1219) | def toggleActions(self, value: bool = True) -> None:
    method queueEvent (line 1226) | def queueEvent(self, function: Callable[[], None]) -> None:
    method show_status_message (line 1229) | def show_status_message(self, message: str, delay: int = 500) -> None:
    method _submit_ai_prompt (line 1232) | def _submit_ai_prompt(self, _) -> None:
    method resetState (line 1313) | def resetState(self) -> None:
    method currentItem (line 1322) | def currentItem(self) -> LabelListWidgetItem | None:
    method addRecentFile (line 1328) | def addRecentFile(self, filename: str) -> None:
    method undoShapeEdit (line 1337) | def undoShapeEdit(self) -> None:
    method tutorial (line 1343) | def tutorial(self):
    method toggleDrawingSensitive (line 1347) | def toggleDrawingSensitive(self, drawing=True):
    method _switch_canvas_mode (line 1357) | def _switch_canvas_mode(
    method updateFileMenu (line 1377) | def updateFileMenu(self):
    method popLabelListMenu (line 1394) | def popLabelListMenu(self, point: QtCore.QPoint) -> None:
    method validateLabel (line 1397) | def validateLabel(self, label):
    method _edit_label (line 1409) | def _edit_label(self, value=None):
    method fileSearchChanged (line 1503) | def fileSearchChanged(self):
    method fileSelectionChanged (line 1508) | def fileSelectionChanged(self) -> None:
    method shapeSelectionChanged (line 1524) | def shapeSelectionChanged(self, selected_shapes: list[Shape]) -> None:
    method addLabel (line 1546) | def addLabel(self, shape: Shape) -> None:
    method _update_shape_color (line 1572) | def _update_shape_color(self, shape: Shape) -> None:
    method _get_rgb_by_label (line 1584) | def _get_rgb_by_label(
    method remLabels (line 1623) | def remLabels(self, shapes: list[Shape]) -> None:
    method _load_shapes (line 1628) | def _load_shapes(self, shapes: list[Shape], replace: bool = True) -> N...
    method _load_shape_dicts (line 1641) | def _load_shape_dicts(self, shape_dicts: list[ShapeDict]) -> None:
    method _load_flags (line 1672) | def _load_flags(
    method saveLabels (line 1686) | def saveLabels(self, filename):
    method duplicateSelectedShape (line 1745) | def duplicateSelectedShape(self) -> None:
    method pasteSelectedShape (line 1749) | def pasteSelectedShape(self) -> None:
    method copySelectedShape (line 1754) | def copySelectedShape(self) -> None:
    method _label_selection_changed (line 1760) | def _label_selection_changed(self) -> None:
    method labelItemChanged (line 1770) | def labelItemChanged(self, item: LabelListWidgetItem) -> None:
    method labelOrderChanged (line 1776) | def labelOrderChanged(self) -> None:
    method newShape (line 1784) | def newShape(self) -> None:
    method scrollRequest (line 1824) | def scrollRequest(self, delta: int, orientation: Qt.Orientation) -> None:
    method setScroll (line 1830) | def setScroll(self, orientation: Qt.Orientation, value: float) -> None:
    method _set_zoom (line 1835) | def _set_zoom(self, value: int, pos: QtCore.QPointF | None = None) -> ...
    method _set_zoom_to_original (line 1869) | def _set_zoom_to_original(self):
    method _add_zoom (line 1873) | def _add_zoom(self, increment: float, pos: QtCore.QPointF | None = Non...
    method _zoom_requested (line 1884) | def _zoom_requested(self, delta: int, pos: QtCore.QPointF) -> None:
    method setFitWindow (line 1887) | def setFitWindow(self, value=True):
    method setFitWidth (line 1893) | def setFitWidth(self, value=True):
    method enableKeepPrevScale (line 1899) | def enableKeepPrevScale(self, enabled):
    method onNewBrightnessContrast (line 1903) | def onNewBrightnessContrast(self, qimage):
    method brightnessContrast (line 1908) | def brightnessContrast(self, value: bool, is_initial_load: bool = False):
    method toggleShapes (line 1958) | def toggleShapes(self, value):
    method _load_file (line 1965) | def _load_file(self, filename=None):
    method resizeEvent (line 2102) | def resizeEvent(self, a0: QtGui.QResizeEvent) -> None:
    method _paint_canvas (line 2111) | def _paint_canvas(self) -> None:
    method _adjust_scale (line 2121) | def _adjust_scale(self) -> None:
    method scaleFitWindow (line 2124) | def scaleFitWindow(self) -> float:
    method scaleFitWidth (line 2136) | def scaleFitWidth(self):
    method enableSaveImageWithData (line 2141) | def enableSaveImageWithData(self, enabled):
    method _reset_layout (line 2145) | def _reset_layout(self):
    method closeEvent (line 2149) | def closeEvent(self, a0: QtGui.QCloseEvent) -> None:
    method dragEnterEvent (line 2158) | def dragEnterEvent(self, a0: QtGui.QDragEnterEvent) -> None:
    method dropEvent (line 2170) | def dropEvent(self, a0: QtGui.QDropEvent) -> None:
    method loadRecent (line 2179) | def loadRecent(self, filename):
    method _open_prev_image (line 2183) | def _open_prev_image(self, _value=False) -> None:
    method _open_next_image (line 2193) | def _open_next_image(self, _value=False) -> None:
    method _open_file_with_dialog (line 2203) | def _open_file_with_dialog(self, _value: bool = False) -> None:
    method changeOutputDirDialog (line 2227) | def changeOutputDirDialog(self, _value=False):
    method saveFile (line 2262) | def saveFile(self, _value: bool = False) -> None:
    method saveFileAs (line 2269) | def saveFileAs(self, _value: bool = False) -> None:
    method saveFileDialog (line 2273) | def saveFileDialog(self) -> str:
    method _saveFile (line 2302) | def _saveFile(self, filename: str | None) -> None:
    method closeFile (line 2307) | def closeFile(self, _value: bool = False) -> None:
    method getLabelFile (line 2317) | def getLabelFile(self) -> str:
    method deleteFile (line 2323) | def deleteFile(self) -> None:
    method _open_config_file (line 2343) | def _open_config_file(self) -> None:
    method hasLabels (line 2367) | def hasLabels(self) -> bool:
    method hasLabelFile (line 2376) | def hasLabelFile(self) -> bool:
    method _can_continue (line 2383) | def _can_continue(self) -> bool:
    method errorMessage (line 2403) | def errorMessage(self, title: str, message: str) -> int:
    method currentPath (line 2408) | def currentPath(self) -> str:
    method toggleKeepPrevMode (line 2411) | def toggleKeepPrevMode(self) -> None:
    method removeSelectedPoint (line 2414) | def removeSelectedPoint(self) -> None:
    method deleteSelectedShape (line 2428) | def deleteSelectedShape(self) -> None:
    method copyShape (line 2442) | def copyShape(self) -> None:
    method moveShape (line 2449) | def moveShape(self) -> None:
    method _open_dir_with_dialog (line 2453) | def _open_dir_with_dialog(self, _value: bool = False) -> None:
    method imageList (line 2476) | def imageList(self) -> list[str]:
    method importDroppedImageFiles (line 2484) | def importDroppedImageFiles(self, imageFiles):
    method _import_images_from_dir (line 2512) | def _import_images_from_dir(
    method _update_status_stats (line 2544) | def _update_status_stats(self, mouse_pos: QtCore.QPointF) -> None:
  function _scan_image_files (line 2551) | def _scan_image_files(root_dir: str) -> list[str]:

FILE: labelme/config/__init__.py
  function _update_dict (line 11) | def _update_dict(target_dict, new_dict, validate_item=None):
  function _validate_config_item (line 23) | def _validate_config_item(key, value):
  function _migrate_config_from_file (line 32) | def _migrate_config_from_file(config_from_yaml: dict) -> None:
  function get_user_config_file (line 84) | def get_user_config_file(create_if_missing: bool = True) -> str:
  function load_config (line 105) | def load_config(config_file: Path | None, config_overrides: dict) -> dict:

FILE: labelme/shape.py
  class Shape (line 15) | class Shape:
    method __init__ (line 42) | def __init__(
    method _scale_point (line 81) | def _scale_point(self, point: QtCore.QPointF) -> QtCore.QPointF:
    method setShapeRefined (line 84) | def setShapeRefined(self, shape_type, points, point_labels, mask=None):
    method restoreShapeRaw (line 91) | def restoreShapeRaw(self):
    method shape_type (line 98) | def shape_type(self):
    method shape_type (line 102) | def shape_type(self, value):
    method close (line 118) | def close(self):
    method addPoint (line 121) | def addPoint(self, point, label=1):
    method canAddPoint (line 128) | def canAddPoint(self):
    method popPoint (line 131) | def popPoint(self):
    method insertPoint (line 138) | def insertPoint(self, i, point, label=1):
    method canRemovePoint (line 142) | def canRemovePoint(self) -> bool:
    method removePoint (line 154) | def removePoint(self, i: int):
    method isClosed (line 166) | def isClosed(self):
    method setOpen (line 169) | def setOpen(self):
    method paint (line 172) | def paint(self, painter):
    method drawVertex (line 282) | def drawVertex(self, path, i):
    method nearestVertex (line 300) | def nearestVertex(self, point: QtCore.QPointF, epsilon: float) -> int ...
    method nearestEdge (line 312) | def nearestEdge(self, point: QtCore.QPointF, epsilon: float) -> int | ...
    method containsPoint (line 326) | def containsPoint(self, point: QtCore.QPointF) -> bool:
    method makePath (line 346) | def makePath(self):
    method boundingRect (line 362) | def boundingRect(self):
    method moveBy (line 365) | def moveBy(self, offset):
    method moveVertex (line 368) | def moveVertex(self, i: int, pos: QtCore.QPointF) -> None:
    method highlightVertex (line 371) | def highlightVertex(self, i: int, action: int) -> None:
    method highlightClear (line 375) | def highlightClear(self) -> None:
    method copy (line 378) | def copy(self):
    method __len__ (line 381) | def __len__(self):
    method __getitem__ (line 384) | def __getitem__(self, key):
    method __setitem__ (line 387) | def __setitem__(self, key, value):

FILE: labelme/testing.py
  function assert_labelfile_sanity (line 9) | def assert_labelfile_sanity(filename):

FILE: labelme/utils/_io.py
  function lblsave (line 10) | def lblsave(filename, lbl):

FILE: labelme/utils/image.py
  function img_data_to_pil (line 13) | def img_data_to_pil(img_data):
  function img_data_to_arr (line 20) | def img_data_to_arr(img_data):
  function img_b64_to_arr (line 26) | def img_b64_to_arr(img_b64):
  function img_pil_to_data (line 32) | def img_pil_to_data(img_pil):
  function img_arr_to_b64 (line 39) | def img_arr_to_b64(img_arr):
  function img_arr_to_data (line 45) | def img_arr_to_data(img_arr):
  function img_data_to_png_data (line 51) | def img_data_to_png_data(img_data):
  function img_qt_to_arr (line 62) | def img_qt_to_arr(img_qt):
  function apply_exif_orientation (line 69) | def apply_exif_orientation(image):

FILE: labelme/utils/qt.py
  function newIcon (line 12) | def newIcon(icon_file_name: str) -> QtGui.QIcon:
  function newButton (line 19) | def newButton(text, icon=None, slot=None):
  function newAction (line 28) | def newAction(
  function addActions (line 61) | def addActions(widget, actions):
  function labelValidator (line 71) | def labelValidator():
  function distance (line 75) | def distance(p):
  function distancetoline (line 79) | def distancetoline(point, line):
  function fmtShortcut (line 96) | def fmtShortcut(text):

FILE: labelme/utils/shape.py
  function shape_to_mask (line 13) | def shape_to_mask(
  function shapes_to_label (line 54) | def shapes_to_label(img_shape, shapes, label_name_to_value):
  function masks_to_bboxes (line 90) | def masks_to_bboxes(masks):

FILE: labelme/widgets/_ai_assisted_annotation_widget.py
  class AiAssistedAnnotationWidget (line 11) | class AiAssistedAnnotationWidget(QtWidgets.QWidget):
    method __init__ (line 26) | def __init__(
    method _init_ui (line 35) | def _init_ui(
    method setEnabled (line 84) | def setEnabled(self, a0: bool) -> None:
    method eventFilter (line 87) | def eventFilter(self, a0: QtCore.QObject, a1: QtCore.QEvent) -> bool:

FILE: labelme/widgets/_ai_text_to_annotation_widget.py
  class AiTextToAnnotationWidget (line 10) | class AiTextToAnnotationWidget(QtWidgets.QWidget):
    method __init__ (line 25) | def __init__(self, on_submit, parent: QtWidgets.QWidget | None = None):
    method _init_ui (line 29) | def _init_ui(self, on_submit: Callable[[], None]) -> None:
    method get_text_prompt (line 119) | def get_text_prompt(self) -> str:
    method get_model_name (line 122) | def get_model_name(self) -> str:
    method get_score_threshold (line 125) | def get_score_threshold(self) -> float:
    method get_iou_threshold (line 128) | def get_iou_threshold(self) -> float:
    method setEnabled (line 131) | def setEnabled(self, a0: bool) -> None:
    method eventFilter (line 134) | def eventFilter(self, a0: QtCore.QObject, a1: QtCore.QEvent) -> bool:

FILE: labelme/widgets/_info_button.py
  class InfoButton (line 8) | class InfoButton(QtWidgets.QToolButton):
    method __init__ (line 9) | def __init__(self, tooltip: str, parent: QtWidgets.QWidget | None = No...
    method enterEvent (line 28) | def enterEvent(self, a0: QtCore.QEvent) -> None:

FILE: labelme/widgets/_status.py
  class StatusStats (line 5) | class StatusStats(QtWidgets.QLabel):
    method __init__ (line 6) | def __init__(self):

FILE: labelme/widgets/brightness_contrast_dialog.py
  class BrightnessContrastDialog (line 8) | class BrightnessContrastDialog(QtWidgets.QDialog):
    method __init__ (line 13) | def __init__(self, img: PIL.Image.Image, callback, parent=None):
    method onNewValue (line 64) | def onNewValue(self, _):

FILE: labelme/widgets/canvas.py
  class CanvasMode (line 33) | class CanvasMode(enum.Enum):
  class Canvas (line 38) | class Canvas(QtWidgets.QWidget):
    method __init__ (line 83) | def __init__(self, *args, **kwargs):
    method fillDrawing (line 135) | def fillDrawing(self):
    method setFillDrawing (line 138) | def setFillDrawing(self, value):
    method createMode (line 142) | def createMode(self):
    method createMode (line 146) | def createMode(self, value):
    method set_ai_model_name (line 160) | def set_ai_model_name(self, model_name: str) -> None:
    method _get_osam_session (line 163) | def _get_osam_session(self) -> OsamSession:
    method _update_shape_with_ai (line 171) | def _update_shape_with_ai(
    method storeShapes (line 187) | def storeShapes(self):
    method isShapeRestorable (line 196) | def isShapeRestorable(self):
    method restoreShape (line 204) | def restoreShape(self):
    method enterEvent (line 221) | def enterEvent(self, a0: QtCore.QEvent) -> None:
    method leaveEvent (line 225) | def leaveEvent(self, a0: QtCore.QEvent) -> None:
    method focusOutEvent (line 231) | def focusOutEvent(self, a0: QtGui.QFocusEvent) -> None:
    method isVisible (line 235) | def isVisible(self, shape: Shape) -> bool:  # type: ignore[override]
    method drawing (line 238) | def drawing(self) -> bool:
    method editing (line 241) | def editing(self) -> bool:
    method setEditing (line 244) | def setEditing(self, value=True):
    method _set_highlight (line 258) | def _set_highlight(
    method selectedVertex (line 274) | def selectedVertex(self) -> bool:
    method selectedEdge (line 277) | def selectedEdge(self) -> bool:
    method _update_status (line 280) | def _update_status(self, extra_messages: list[str] | None = None) -> N...
    method _get_create_mode_message (line 296) | def _get_create_mode_message(self) -> str:
    method mouseMoveEvent (line 331) | def mouseMoveEvent(self, a0: QtGui.QMouseEvent) -> None:
    method _highlight_hover_shape (line 448) | def _highlight_hover_shape(self, pos: QPointF, status_messages: list[s...
    method addPointToEdge (line 493) | def addPointToEdge(self):
    method removeSelectedPoint (line 506) | def removeSelectedPoint(self):
    method mousePressEvent (line 517) | def mousePressEvent(self, a0: QtGui.QMouseEvent) -> None:
    method mouseReleaseEvent (line 610) | def mouseReleaseEvent(self, a0: QtGui.QMouseEvent) -> None:
    method endMove (line 641) | def endMove(self, copy):
    method hideBackroundShapes (line 657) | def hideBackroundShapes(self, value):
    method setHiding (line 665) | def setHiding(self, enable=True):
    method canCloseShape (line 668) | def canCloseShape(self) -> bool:
    method mouseDoubleClickEvent (line 679) | def mouseDoubleClickEvent(self, a0: QtGui.QMouseEvent) -> None:
    method selectShapes (line 686) | def selectShapes(self, shapes):
    method selectShapePoint (line 691) | def selectShapePoint(self, point, multiple_selection_mode):
    method calculateOffsets (line 714) | def calculateOffsets(self, point: QPointF) -> None:
    method boundedMoveVertex (line 736) | def boundedMoveVertex(self, pos: QPointF, is_shift_pressed: bool) -> N...
    method boundedMoveShapes (line 760) | def boundedMoveShapes(self, shapes, pos):
    method deSelectShape (line 785) | def deSelectShape(self) -> bool:
    method deleteSelected (line 794) | def deleteSelected(self):
    method deleteShape (line 805) | def deleteShape(self, shape):
    method paintEvent (line 813) | def paintEvent(self, a0: QtGui.QPaintEvent) -> None:
    method transformPos (line 898) | def transformPos(self, point: QPointF) -> QPointF:
    method enableDragging (line 902) | def enableDragging(self, enabled: bool):
    method offsetToCenter (line 905) | def offsetToCenter(self) -> QPointF:
    method outOfPixmap (line 914) | def outOfPixmap(self, p: QPointF) -> bool:
    method finalise (line 918) | def finalise(self):
    method closeEnough (line 935) | def closeEnough(self, p1, p2):
    method intersectionPoint (line 942) | def intersectionPoint(self, p1: QPointF, p2: QPointF) -> QPointF:
    method intersectingEdges (line 968) | def intersectingEdges(self, point1, point2, points):
    method sizeHint (line 999) | def sizeHint(self):
    method minimumSizeHint (line 1002) | def minimumSizeHint(self):
    method wheelEvent (line 1013) | def wheelEvent(self, a0: QtGui.QWheelEvent) -> None:
    method moveByKeyboard (line 1026) | def moveByKeyboard(self, offset):
    method keyPressEvent (line 1032) | def keyPressEvent(self, a0: QtGui.QKeyEvent) -> None:
    method keyReleaseEvent (line 1058) | def keyReleaseEvent(self, a0: QtGui.QKeyEvent) -> None:
    method setLastLabel (line 1076) | def setLastLabel(self, text, flags):
    method undoLastLine (line 1084) | def undoLastLine(self):
    method undoLastPoint (line 1097) | def undoLastPoint(self):
    method loadPixmap (line 1108) | def loadPixmap(self, pixmap, clear_shapes=True):
    method loadShapes (line 1117) | def loadShapes(self, shapes, replace=True):
    method setShapeVisible (line 1129) | def setShapeVisible(self, shape, value):
    method overrideCursor (line 1133) | def overrideCursor(self, cursor):
    method restoreCursor (line 1140) | def restoreCursor(self):
    method resetState (line 1144) | def resetState(self):
  function _update_shape_with_ai_response (line 1163) | def _update_shape_with_ai_response(
  function _snap_cursor_pos_for_square (line 1210) | def _snap_cursor_pos_for_square(pos: QPointF, opposite_vertex: QPointF) ...

FILE: labelme/widgets/download.py
  class _AiModelDownloadSignals (line 16) | class _AiModelDownloadSignals(QObject):
  class _AiModelDownloadWorker (line 21) | class _AiModelDownloadWorker(QRunnable):
    method __init__ (line 22) | def __init__(self, model_type, signals: _AiModelDownloadSignals):
    method run (line 27) | def run(self):
  function download_ai_model (line 35) | def download_ai_model(model_name: str, parent: QtWidgets.QWidget) -> bool:

FILE: labelme/widgets/file_dialog_preview.py
  class ScrollAreaPreview (line 9) | class ScrollAreaPreview(QtWidgets.QScrollArea):
    method __init__ (line 10) | def __init__(self, *args, **kwargs):
    method setText (line 25) | def setText(self, text):
    method setPixmap (line 28) | def setPixmap(self, pixmap):
    method clear (line 31) | def clear(self):
  class FileDialogPreview (line 35) | class FileDialogPreview(QtWidgets.QFileDialog):
    method __init__ (line 36) | def __init__(self, *args, **kwargs):
    method onChange (line 54) | def onChange(self, path):

FILE: labelme/widgets/label_dialog.py
  class LabelQLineEdit (line 15) | class LabelQLineEdit(QtWidgets.QLineEdit):
    method setListWidget (line 16) | def setListWidget(self, list_widget):
    method keyPressEvent (line 19) | def keyPressEvent(self, a0: QtGui.QKeyEvent) -> None:
  class LabelDialog (line 26) | class LabelDialog(QtWidgets.QDialog):
    method __init__ (line 27) | def __init__(
    method addLabelHistory (line 115) | def addLabelHistory(self, label):
    method labelSelected (line 122) | def labelSelected(self, item):
    method validate (line 125) | def validate(self):
    method _get_stripped_text (line 133) | def _get_stripped_text(self) -> str:
    method labelDoubleClicked (line 141) | def labelDoubleClicked(self, item):
    method postProcess (line 144) | def postProcess(self):
    method updateFlags (line 147) | def updateFlags(self, label_new):
    method deleteFlags (line 158) | def deleteFlags(self):
    method resetFlags (line 164) | def resetFlags(self, label=""):
    method setFlags (line 172) | def setFlags(self, flags):
    method getFlags (line 180) | def getFlags(self):
    method getGroupId (line 188) | def getGroupId(self):
    method popUp (line 194) | def popUp(

FILE: labelme/widgets/label_list_widget.py
  class HTMLDelegate (line 12) | class HTMLDelegate(QtWidgets.QStyledItemDelegate):
    method __init__ (line 13) | def __init__(self, parent=None):
    method paint (line 17) | def paint(self, painter, option, index):
    method sizeHint (line 62) | def sizeHint(self, option, index):
  class LabelListWidgetItem (line 70) | class LabelListWidgetItem(QtGui.QStandardItem):
    method __init__ (line 71) | def __init__(self, text=None, shape=None):
    method clone (line 81) | def clone(self):
    method setShape (line 84) | def setShape(self, shape):
    method shape (line 87) | def shape(self):
    method __hash__ (line 90) | def __hash__(self):
    method __repr__ (line 93) | def __repr__(self):
  class _ItemModel (line 97) | class _ItemModel(QtGui.QStandardItemModel):
    method removeRows (line 100) | def removeRows(self, *args, **kwargs):
    method dropMimeData (line 105) | def dropMimeData(self, data, action, row: int, column: int, parent):
  class LabelListWidget (line 122) | class LabelListWidget(QtWidgets.QListView):
    method __init__ (line 126) | def __init__(self):
    method __len__ (line 144) | def __len__(self):
    method __getitem__ (line 147) | def __getitem__(self, i):
    method __iter__ (line 150) | def __iter__(self):
    method itemDropped (line 155) | def itemDropped(self):
    method itemChanged (line 159) | def itemChanged(self):
    method itemSelectionChangedEvent (line 162) | def itemSelectionChangedEvent(self, selected, deselected):
    method itemDoubleClickedEvent (line 167) | def itemDoubleClickedEvent(self, index):
    method selectedItems (line 170) | def selectedItems(self):
    method scrollToItem (line 173) | def scrollToItem(self, item):
    method addItem (line 176) | def addItem(self, item):
    method removeItem (line 182) | def removeItem(self, item):
    method selectItem (line 186) | def selectItem(self, item):
    method findItemByShape (line 190) | def findItemByShape(self, shape):
    method clear (line 198) | def clear(self):

FILE: labelme/widgets/tool_bar.py
  class ToolBar (line 11) | class ToolBar(QtWidgets.QToolBar):
    method __init__ (line 12) | def __init__(
    method addAction (line 41) | def addAction(self, action):  # type: ignore[override]

FILE: labelme/widgets/unique_label_qlist_widget.py
  class _EscapableQListWidget (line 10) | class _EscapableQListWidget(QtWidgets.QListWidget):
    method keyPressEvent (line 11) | def keyPressEvent(self, keyEvent: QtGui.QKeyEvent) -> None:  # type: i...
  class UniqueLabelQListWidget (line 17) | class UniqueLabelQListWidget(_EscapableQListWidget):
    method __init__ (line 18) | def __init__(self, *args, **kwargs):
    method mousePressEvent (line 22) | def mousePressEvent(self, mouseEvent: QtGui.QMouseEvent) -> None:  # t...
    method find_label_item (line 27) | def find_label_item(self, label: str) -> QtWidgets.QListWidgetItem | N...
    method add_label_item (line 34) | def add_label_item(self, label: str, color: tuple[int, int, int]) -> N...

FILE: labelme/widgets/zoom_widget.py
  class ZoomWidget (line 6) | class ZoomWidget(QtWidgets.QSpinBox):
    method __init__ (line 7) | def __init__(self, value=100):
    method minimumSizeHint (line 17) | def minimumSizeHint(self):

FILE: tests/conftest.py
  function _create_annotated_nested (line 8) | def _create_annotated_nested(data_path: Path) -> None:
  function data_path (line 28) | def data_path(tmp_path: Path) -> Path:

FILE: tests/e2e/annotation_test.py
  function test_MainWindow_annotate_jpg (line 19) | def test_MainWindow_annotate_jpg(

FILE: tests/e2e/config_test.py
  function test_MainWindow_config (line 20) | def test_MainWindow_config(

FILE: tests/e2e/conftest.py
  function _isolated_qtsettings (line 14) | def _isolated_qtsettings(
  function show_window_and_wait_for_imagedata (line 25) | def show_window_and_wait_for_imagedata(

FILE: tests/e2e/file_loading_test.py
  function test_MainWindow_open_img (line 18) | def test_MainWindow_open_img(
  function test_MainWindow_open_json (line 30) | def test_MainWindow_open_json(
  function test_MainWindow_open_dir (line 50) | def test_MainWindow_open_dir(

FILE: tests/e2e/navigation_test.py
  function test_image_navigation_while_selecting_shape (line 16) | def test_image_navigation_while_selecting_shape(

FILE: tests/e2e/smoke_test.py
  function test_MainWindow_open (line 12) | def test_MainWindow_open(qtbot: QtBot) -> None:
  function test_file_search_config_filters_on_startup (line 20) | def test_file_search_config_filters_on_startup(qtbot: QtBot, data_path: ...

FILE: tests/unit/_label_file_test.py
  function test_LabelFile_load_windows_path (line 10) | def test_LabelFile_load_windows_path(data_path: Path, tmp_path: Path) ->...

FILE: tests/unit/config_test.py
  function test_get_user_config_file_creates_sparse (line 11) | def test_get_user_config_file_creates_sparse(tmp_path, monkeypatch):
  function test_get_user_config_file_does_not_overwrite (line 20) | def test_get_user_config_file_does_not_overwrite(tmp_path, monkeypatch):
  function test_get_user_config_file_skip_creation (line 29) | def test_get_user_config_file_skip_creation(tmp_path, monkeypatch):
  function test_migrate_store_data_to_with_image_data (line 36) | def test_migrate_store_data_to_with_image_data(tmp_path, old_value):
  function test_migrate_ai_model_name (line 54) | def test_migrate_ai_model_name(input_name: str, expected_name: str) -> N...
  function test_migrate_polygon_shortcut_to_shape (line 77) | def test_migrate_polygon_shortcut_to_shape(old_key, new_key):
  function test_migrate_polygon_shortcuts_no_shortcuts_key (line 84) | def test_migrate_polygon_shortcuts_no_shortcuts_key():
  function test_migrate_polygon_shortcut_skips_when_new_key_exists (line 90) | def test_migrate_polygon_shortcut_skips_when_new_key_exists():

FILE: tests/unit/load_image_file_test.py
  function _make_image (line 13) | def _make_image(tmp_path: Path, filename: str, mode: str = "RGB", size=(...
  function test_tiff_without_alpha_encoded_as_jpeg (line 21) | def test_tiff_without_alpha_encoded_as_jpeg(tmp_path):
  function test_tiff_with_alpha_encoded_as_png (line 27) | def test_tiff_with_alpha_encoded_as_png(tmp_path):
  function test_jpeg_returns_raw_bytes (line 33) | def test_jpeg_returns_raw_bytes(tmp_path):
  function test_png_returns_raw_bytes (line 39) | def test_png_returns_raw_bytes(tmp_path):
  function test_multispectral_tiff_float32 (line 45) | def test_multispectral_tiff_float32(tmp_path):
  function test_grayscale_tiff_float32 (line 58) | def test_grayscale_tiff_float32(tmp_path):
  function test_constant_value_tiff_returns_black (line 68) | def test_constant_value_tiff_returns_black(tmp_path):
  function test_two_band_tiff_falls_back_to_first_band (line 79) | def test_two_band_tiff_falls_back_to_first_band(tmp_path):

FILE: tests/unit/shape_contains_point_test.py
  function _make_point_shape (line 8) | def _make_point_shape(x: float, y: float) -> Shape:
  function test_point_shape_contains_center (line 15) | def test_point_shape_contains_center():
  function test_point_shape_contains_within_radius (line 21) | def test_point_shape_contains_within_radius():
  function test_point_shape_at_exact_boundary (line 28) | def test_point_shape_at_exact_boundary():
  function test_point_shape_outside_radius (line 35) | def test_point_shape_outside_radius():
  function test_point_shape_empty_points (line 42) | def test_point_shape_empty_points():

FILE: tests/unit/shape_test.py
  function _make_mask_shape (line 9) | def _make_mask_shape(
  function test_mask_contains_point (line 30) | def test_mask_contains_point(point: tuple[int, int], expected: bool) -> ...

FILE: tests/unit/utils/image_test.py
  function test_img_b64_to_arr (line 10) | def test_img_b64_to_arr():
  function test_img_arr_to_b64 (line 16) | def test_img_arr_to_b64():
  function test_img_data_to_png_data (line 24) | def test_img_data_to_png_data():

FILE: tests/unit/utils/qt_test.py
  function test_distancetoline (line 6) | def test_distancetoline():

FILE: tests/unit/utils/shape_test.py
  function test_shapes_to_label (line 8) | def test_shapes_to_label():
  function test_shape_to_mask (line 21) | def test_shape_to_mask():
  function test_shape_to_mask_rectangle_reversed_coords (line 29) | def test_shape_to_mask_rectangle_reversed_coords():

FILE: tests/unit/utils/util.py
  function get_img_and_data (line 11) | def get_img_and_data():
  function get_img_and_lbl (line 20) | def get_img_and_lbl():

FILE: tests/unit/widgets/canvas_test.py
  function canvas (line 16) | def canvas(qtbot) -> Canvas:
  function test_outOfPixmap (line 38) | def test_outOfPixmap(canvas: Canvas, point: QPointF, is_outside: bool):
  function test_intersectionPoint (line 68) | def test_intersectionPoint(

FILE: tests/unit/widgets/label_dialog_test.py
  function test_LabelQLineEdit (line 12) | def test_LabelQLineEdit(qtbot):
  function test_LabelDialog_addLabelHistory (line 37) | def test_LabelDialog_addLabelHistory(qtbot):
  function test_LabelDialog_popUp (line 52) | def test_LabelDialog_popUp(qtbot):

FILE: tests/unit/widgets/label_list_widget_test.py
  function test_LabelListWidget (line 8) | def test_LabelListWidget(qtbot):

FILE: tools/update_translate.py
  function main (line 11) | def main():
Condensed preview — 162 files, each showing path, character count, and a content snippet. Download the .json file or copy for the full structured content (1,159K chars).
[
  {
    "path": ".claude/CLAUDE.md",
    "chars": 202,
    "preview": "# Project Rules\n\n- use `uv` to run Python commands (e.g., `uv run python`, `uv run pytest`).\n- use `make test` to run te"
  },
  {
    "path": ".git-blame-ignore-revs",
    "chars": 791,
    "preview": "# Format code with black\n5c9808446a179176c721bd7a59d621b41c95898c\n# Mypy check # type: ignore\n8a9cb1918d35c01abc804b40ac"
  },
  {
    "path": ".github/ISSUE_TEMPLATE/1.bug_report.yml",
    "chars": 2276,
    "preview": "name: Bug Report\ndescription: Create a bug report\nlabels: 'bug'\nbody:\n  - type: markdown\n    attributes:\n      value: Th"
  },
  {
    "path": ".github/ISSUE_TEMPLATE/config.yml",
    "chars": 464,
    "preview": "contact_links:\n  - name: Ideas / Feature request\n    url: https://github.com/wkentaro/labelme/discussions/categories/ide"
  },
  {
    "path": ".github/workflows/ci.yml",
    "chars": 2632,
    "preview": "name: ci\n\non:\n  push:\n    branches:\n      - main\n  pull_request:\n\njobs:\n  check:\n    runs-on: ubuntu-latest\n    steps:\n "
  },
  {
    "path": ".github/workflows/cla.yml",
    "chars": 619,
    "preview": "name: CLA Assistant\n\non:\n  pull_request_target:\n    types: [opened, synchronize]\n  issue_comment:\n    types: [created]\n\n"
  },
  {
    "path": ".github/workflows/discord-notify.yml",
    "chars": 2264,
    "preview": "name: discord-notify\n\non:\n  pull_request:\n    types: [closed]\n    branches: [main]\n\njobs:\n  notify:\n    if: |\n      gith"
  },
  {
    "path": ".gitignore",
    "chars": 83,
    "preview": "/.cache/\n/.pytest_cache/\n\n/build/\n/dist/\n/*.egg-info/\n\n*.py[cdo]\n\n.DS_Store\n.idea/\n"
  },
  {
    "path": ".gitmodules",
    "chars": 0,
    "preview": ""
  },
  {
    "path": ".python-version",
    "chars": 5,
    "preview": "3.10\n"
  },
  {
    "path": "CITATION.cff",
    "chars": 330,
    "preview": "cff-version: 1.2.0\nmessage: \"If you use this software, please cite it as below.\"\nauthors:\n- family-names: \"Wada\"\n  given"
  },
  {
    "path": "CLA.md",
    "chars": 978,
    "preview": "# Contributor License Agreement (CLA)\n\n*Version 1.0 — March 2026*\n\nBy submitting a pull request or otherwise contributin"
  },
  {
    "path": "LICENSE",
    "chars": 35147,
    "preview": "                    GNU GENERAL PUBLIC LICENSE\n                       Version 3, 29 June 2007\n\n Copyright (C) 2007 Free "
  },
  {
    "path": "Makefile",
    "chars": 1243,
    "preview": "ifneq ($(OS),Windows_NT)\n\t# On Unix-based systems, use ANSI codes\n\tBLUE = \\033[36m\n\tBOLD_BLUE = \\033[1;36m\n\tBOLD_GREEN ="
  },
  {
    "path": "README.md",
    "chars": 8814,
    "preview": "<h1 align=\"center\">\n  <img src=\"labelme/icons/icon-256.png\" width=\"200\" height=\"200\"><br/>labelme\n</h1>\n\n<h4 align=\"cent"
  },
  {
    "path": "examples/bbox_detection/README.md",
    "chars": 614,
    "preview": "# Bounding Box Detection Example\n\n\n## Usage\n\n```bash\nlabelme data_annotated --labels labels.txt\n```\n\n![](.readme/annotat"
  },
  {
    "path": "examples/bbox_detection/data_annotated/2011_000003.json",
    "chars": 674,
    "preview": "{\n  \"version\": \"4.0.0\",\n  \"flags\": {},\n  \"shapes\": [\n    {\n      \"label\": \"person\",\n      \"points\": [\n        [\n        "
  },
  {
    "path": "examples/bbox_detection/data_annotated/2011_000006.json",
    "chars": 1193,
    "preview": "{\n  \"version\": \"4.0.0\",\n  \"flags\": {},\n  \"shapes\": [\n    {\n      \"label\": \"person\",\n      \"points\": [\n        [\n        "
  },
  {
    "path": "examples/bbox_detection/data_annotated/2011_000025.json",
    "chars": 909,
    "preview": "{\n  \"version\": \"4.0.0\",\n  \"flags\": {},\n  \"shapes\": [\n    {\n      \"label\": \"bus\",\n      \"points\": [\n        [\n          8"
  },
  {
    "path": "examples/bbox_detection/data_dataset_voc/Annotations/2011_000003.xml",
    "chars": 687,
    "preview": "<annotation>\n  <folder/>\n  <filename>2011_000003.jpg</filename>\n  <database/>\n  <annotation/>\n  <image/>\n  <size>\n    <h"
  },
  {
    "path": "examples/bbox_detection/data_dataset_voc/Annotations/2011_000006.xml",
    "chars": 1152,
    "preview": "<annotation>\n  <folder/>\n  <filename>2011_000006.jpg</filename>\n  <database/>\n  <annotation/>\n  <image/>\n  <size>\n    <h"
  },
  {
    "path": "examples/bbox_detection/data_dataset_voc/Annotations/2011_000025.xml",
    "chars": 895,
    "preview": "<annotation>\n  <folder/>\n  <filename>2011_000025.jpg</filename>\n  <database/>\n  <annotation/>\n  <image/>\n  <size>\n    <h"
  },
  {
    "path": "examples/bbox_detection/data_dataset_voc/class_names.txt",
    "chars": 149,
    "preview": "_background_\naeroplane\nbicycle\nbird\nboat\nbottle\nbus\ncar\ncat\nchair\ncow\ndiningtable\ndog\nhorse\nmotorbike\nperson\npotted plan"
  },
  {
    "path": "examples/bbox_detection/labelme2voc.py",
    "chars": 4831,
    "preview": "#!/usr/bin/env python\n\n\nimport argparse\nimport glob\nimport os\nimport os.path as osp\nimport sys\n\nimport imgviz\n\nimport la"
  },
  {
    "path": "examples/bbox_detection/labels.txt",
    "chars": 160,
    "preview": "__ignore__\n_background_\naeroplane\nbicycle\nbird\nboat\nbottle\nbus\ncar\ncat\nchair\ncow\ndiningtable\ndog\nhorse\nmotorbike\nperson\n"
  },
  {
    "path": "examples/classification/README.md",
    "chars": 199,
    "preview": "# Classification Example\n\n\n## Usage\n\n```bash\nlabelme data_annotated --flags flags.txt\n```\n\n<img src=\".readme/annotation_"
  },
  {
    "path": "examples/classification/data_annotated/0001.json",
    "chars": 208,
    "preview": "{\n  \"version\": \"4.0.0\",\n  \"flags\": {\n    \"__ignore__\": false,\n    \"cat\": true,\n    \"dog\": false\n  },\n  \"shapes\": [],\n  \""
  },
  {
    "path": "examples/classification/data_annotated/0002.json",
    "chars": 208,
    "preview": "{\n  \"version\": \"4.0.0\",\n  \"flags\": {\n    \"__ignore__\": false,\n    \"cat\": false,\n    \"dog\": true\n  },\n  \"shapes\": [],\n  \""
  },
  {
    "path": "examples/classification/flags.txt",
    "chars": 19,
    "preview": "__ignore__\ncat\ndog\n"
  },
  {
    "path": "examples/instance_segmentation/README.md",
    "chars": 1833,
    "preview": "# Instance Segmentation Example\n\n## Annotation\n\n```bash\nlabelme data_annotated --labels labels.txt --validatelabel exact"
  },
  {
    "path": "examples/instance_segmentation/data_annotated/2011_000003.json",
    "chars": 9345,
    "preview": "{\n  \"version\": \"4.0.0\",\n  \"flags\": {},\n  \"shapes\": [\n    {\n      \"label\": \"person\",\n      \"points\": [\n        [\n        "
  },
  {
    "path": "examples/instance_segmentation/data_annotated/2011_000006.json",
    "chars": 10129,
    "preview": "{\n  \"version\": \"4.0.0\",\n  \"flags\": {},\n  \"shapes\": [\n    {\n      \"label\": \"person\",\n      \"points\": [\n        [\n        "
  },
  {
    "path": "examples/instance_segmentation/data_annotated/2011_000025.json",
    "chars": 3992,
    "preview": "{\n  \"version\": \"4.0.0\",\n  \"flags\": {},\n  \"shapes\": [\n    {\n      \"label\": \"bus\",\n      \"points\": [\n        [\n          2"
  },
  {
    "path": "examples/instance_segmentation/data_dataset_coco/annotations.json",
    "chars": 12863,
    "preview": "{\"info\": {\"description\": null, \"url\": null, \"version\": null, \"year\": 2020, \"contributor\": null, \"date_created\": \"2020-01"
  },
  {
    "path": "examples/instance_segmentation/data_dataset_voc/class_names.txt",
    "chars": 149,
    "preview": "_background_\naeroplane\nbicycle\nbird\nboat\nbottle\nbus\ncar\ncat\nchair\ncow\ndiningtable\ndog\nhorse\nmotorbike\nperson\npotted plan"
  },
  {
    "path": "examples/instance_segmentation/labelme2coco.py",
    "chars": 6762,
    "preview": "#!/usr/bin/env python\n\nimport argparse\nimport collections\nimport datetime\nimport glob\nimport json\nimport os\nimport os.pa"
  },
  {
    "path": "examples/instance_segmentation/labelme2voc.py",
    "chars": 5334,
    "preview": "#!/usr/bin/env python\n\n\nimport argparse\nimport glob\nimport os\nimport os.path as osp\nimport sys\n\nimport imgviz\nimport num"
  },
  {
    "path": "examples/instance_segmentation/labels.txt",
    "chars": 160,
    "preview": "__ignore__\n_background_\naeroplane\nbicycle\nbird\nboat\nbottle\nbus\ncar\ncat\nchair\ncow\ndiningtable\ndog\nhorse\nmotorbike\nperson\n"
  },
  {
    "path": "examples/primitives/primitives.json",
    "chars": 3272,
    "preview": "{\n  \"version\": \"5.7.0\",\n  \"flags\": {},\n  \"shapes\": [\n    {\n      \"label\": \"rectangle\",\n      \"points\": [\n        [\n     "
  },
  {
    "path": "examples/semantic_segmentation/README.md",
    "chars": 1180,
    "preview": "# Semantic Segmentation Example\n\n## Annotation\n\n```bash\nlabelme data_annotated --labels labels.txt --validatelabel exact"
  },
  {
    "path": "examples/semantic_segmentation/data_annotated/2011_000003.json",
    "chars": 9334,
    "preview": "{\n  \"version\": \"4.0.0\",\n  \"flags\": {},\n  \"shapes\": [\n    {\n      \"label\": \"person\",\n      \"points\": [\n        [\n        "
  },
  {
    "path": "examples/semantic_segmentation/data_annotated/2011_000006.json",
    "chars": 10129,
    "preview": "{\n  \"version\": \"4.0.0\",\n  \"flags\": {},\n  \"shapes\": [\n    {\n      \"label\": \"person\",\n      \"points\": [\n        [\n        "
  },
  {
    "path": "examples/semantic_segmentation/data_annotated/2011_000025.json",
    "chars": 3995,
    "preview": "{\n  \"version\": \"4.0.0\",\n  \"flags\": {},\n  \"shapes\": [\n    {\n      \"label\": \"bus\",\n      \"points\": [\n        [\n          2"
  },
  {
    "path": "examples/semantic_segmentation/data_dataset_voc/class_names.txt",
    "chars": 149,
    "preview": "_background_\naeroplane\nbicycle\nbird\nboat\nbottle\nbus\ncar\ncat\nchair\ncow\ndiningtable\ndog\nhorse\nmotorbike\nperson\npotted plan"
  },
  {
    "path": "examples/semantic_segmentation/labels.txt",
    "chars": 160,
    "preview": "__ignore__\n_background_\naeroplane\nbicycle\nbird\nboat\nbottle\nbus\ncar\ncat\nchair\ncow\ndiningtable\ndog\nhorse\nmotorbike\nperson\n"
  },
  {
    "path": "examples/tutorial/README.md",
    "chars": 1411,
    "preview": "# Tutorial (Single Image Example)\n\n## Annotation\n\n```bash\nlabelme apc2016_obj3.jpg\n```\n\n![](.readme/annotation.jpg)\n\n\n##"
  },
  {
    "path": "examples/tutorial/apc2016_obj3/label_names.txt",
    "chars": 102,
    "preview": "_background_\nhighland_6539_self_stick_notes\nkong_air_dog_squeakair_tennis_ball\nmead_index_cards\nshelf\n"
  },
  {
    "path": "examples/tutorial/apc2016_obj3.json",
    "chars": 146255,
    "preview": "{\n  \"version\": \"4.0.0\",\n  \"flags\": {},\n  \"shapes\": [\n    {\n      \"label\": \"shelf\",\n      \"points\": [\n        [\n         "
  },
  {
    "path": "examples/tutorial/draw_json.py",
    "chars": 1297,
    "preview": "#!/usr/bin/env python\n\nimport argparse\n\nimport imgviz\nimport matplotlib.pyplot as plt\n\nfrom labelme import utils\nfrom la"
  },
  {
    "path": "examples/tutorial/draw_label_png.py",
    "chars": 2234,
    "preview": "#!/usr/bin/env python\n\nimport argparse\nimport os\n\nimport imgviz\nimport matplotlib.pyplot as plt\nimport numpy as np\nfrom "
  },
  {
    "path": "examples/tutorial/export_json.py",
    "chars": 1983,
    "preview": "#!/usr/bin/env python\n\nimport argparse\nimport os\nimport os.path as osp\n\nimport imgviz\nimport numpy as np\nimport PIL.Imag"
  },
  {
    "path": "examples/tutorial/load_label_png.py",
    "chars": 850,
    "preview": "#!/usr/bin/env python\n\n\nimport os.path as osp\n\nimport numpy as np\nimport PIL.Image\n\nhere = osp.dirname(osp.abspath(__fil"
  },
  {
    "path": "examples/video_annotation/README.md",
    "chars": 629,
    "preview": "# Video Annotation Example\n\n\n## Annotation\n\n```bash\nlabelme data_annotated --labels labels.txt --keep-prev --config '{sh"
  },
  {
    "path": "examples/video_annotation/data_annotated/00000100.json",
    "chars": 2363,
    "preview": "{\n  \"version\": \"4.0.0\",\n  \"flags\": {},\n  \"shapes\": [\n    {\n      \"label\": \"track\",\n      \"points\": [\n        [\n         "
  },
  {
    "path": "examples/video_annotation/data_annotated/00000101.json",
    "chars": 2517,
    "preview": "{\n  \"version\": \"4.0.0\",\n  \"flags\": {},\n  \"shapes\": [\n    {\n      \"label\": \"track\",\n      \"points\": [\n        [\n         "
  },
  {
    "path": "examples/video_annotation/data_annotated/00000102.json",
    "chars": 2531,
    "preview": "{\n  \"version\": \"4.0.0\",\n  \"flags\": {},\n  \"shapes\": [\n    {\n      \"label\": \"track\",\n      \"points\": [\n        [\n         "
  },
  {
    "path": "examples/video_annotation/data_annotated/00000103.json",
    "chars": 2363,
    "preview": "{\n  \"version\": \"4.0.0\",\n  \"flags\": {},\n  \"shapes\": [\n    {\n      \"label\": \"track\",\n      \"points\": [\n        [\n         "
  },
  {
    "path": "examples/video_annotation/data_annotated/00000104.json",
    "chars": 2531,
    "preview": "{\n  \"version\": \"4.0.0\",\n  \"flags\": {},\n  \"shapes\": [\n    {\n      \"label\": \"track\",\n      \"points\": [\n        [\n         "
  },
  {
    "path": "examples/video_annotation/data_dataset_voc/class_names.txt",
    "chars": 22,
    "preview": "_background_\ncar\ntrack"
  },
  {
    "path": "examples/video_annotation/labels.txt",
    "chars": 34,
    "preview": "__ignore__\n_background_\ncar\ntrack\n"
  },
  {
    "path": "labelme/__init__.py",
    "chars": 632,
    "preview": "import importlib.metadata\n\n__appname__ = \"Labelme\"\n\n# Semantic Versioning 2.0.0: https://semver.org/\n# 1. MAJOR version "
  },
  {
    "path": "labelme/__main__.py",
    "chars": 9640,
    "preview": "import argparse\nimport codecs\nimport contextlib\nimport io\nimport os\nimport os.path as osp\nimport sys\nimport traceback\nim"
  },
  {
    "path": "labelme/_automation/__init__.py",
    "chars": 39,
    "preview": "from ._osam_session import OsamSession\n"
  },
  {
    "path": "labelme/_automation/_osam_session.py",
    "chars": 3197,
    "preview": "from __future__ import annotations\n\nimport collections\n\nimport numpy as np\nimport osam\nfrom loguru import logger\nfrom nu"
  },
  {
    "path": "labelme/_automation/bbox_from_text.py",
    "chars": 5052,
    "preview": "import json\nimport time\nfrom typing import Literal\n\nimport numpy as np\nimport osam\nfrom loguru import logger\nfrom numpy."
  },
  {
    "path": "labelme/_automation/polygon_from_mask.py",
    "chars": 1563,
    "preview": "import imgviz\nimport numpy as np\nimport skimage\nfrom loguru import logger\nfrom numpy.typing import NDArray\n\n\ndef _get_co"
  },
  {
    "path": "labelme/_label_file.py",
    "chars": 10595,
    "preview": "from __future__ import annotations\n\nimport base64\nimport contextlib\nimport io\nimport json\nimport os.path as osp\nimport t"
  },
  {
    "path": "labelme/app.py",
    "chars": 95338,
    "preview": "from __future__ import annotations\n\nimport enum\nimport functools\nimport html\nimport math\nimport os\nimport os.path as osp"
  },
  {
    "path": "labelme/config/__init__.py",
    "chars": 5001,
    "preview": "import os.path as osp\nimport re\nfrom pathlib import Path\n\nimport yaml\nfrom loguru import logger\n\nhere = osp.dirname(osp."
  },
  {
    "path": "labelme/config/default_config.yaml",
    "chars": 2298,
    "preview": "auto_save: true\ndisplay_label_popup: true\nwith_image_data: false\nkeep_prev: false\nkeep_prev_scale: false\nkeep_prev_brigh"
  },
  {
    "path": "labelme/shape.py",
    "chars": 13620,
    "preview": "from __future__ import annotations\n\nimport copy\n\nimport numpy as np\nimport numpy.typing as npt\nimport skimage.measure\nfr"
  },
  {
    "path": "labelme/testing.py",
    "chars": 850,
    "preview": "import json\nimport os.path as osp\n\nimport imgviz\n\nimport labelme.utils\n\n\ndef assert_labelfile_sanity(filename):\n    asse"
  },
  {
    "path": "labelme/translate/de_DE.ts",
    "chars": 33603,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!DOCTYPE TS>\n<TS version=\"2.1\" language=\"de_DE\">\n<context>\n    <name>AiAssistedA"
  },
  {
    "path": "labelme/translate/es_ES.ts",
    "chars": 33527,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!DOCTYPE TS>\n<TS version=\"2.1\" language=\"es_ES\">\n<context>\n    <name>AiAssistedA"
  },
  {
    "path": "labelme/translate/fa_IR.ts",
    "chars": 32614,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!DOCTYPE TS>\n<TS version=\"2.1\" language=\"fa_IR\">\n<context>\n    <name>AiAssistedA"
  },
  {
    "path": "labelme/translate/fr_FR.ts",
    "chars": 34100,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!DOCTYPE TS>\n<TS version=\"2.1\" language=\"fr_FR\">\n<context>\n    <name>AiAssistedA"
  },
  {
    "path": "labelme/translate/hu_HU.ts",
    "chars": 33547,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!DOCTYPE TS>\n<TS version=\"2.1\" language=\"hu_HU\">\n<context>\n    <name>AiAssistedA"
  },
  {
    "path": "labelme/translate/it_IT.ts",
    "chars": 33595,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!DOCTYPE TS>\n<TS version=\"2.1\" language=\"it_IT\">\n<context>\n    <name>AiAssistedA"
  },
  {
    "path": "labelme/translate/ja_JP.ts",
    "chars": 30753,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!DOCTYPE TS>\n<TS version=\"2.1\" language=\"ja_JP\">\n<context>\n    <name>AiAssistedA"
  },
  {
    "path": "labelme/translate/ko_KR.ts",
    "chars": 30693,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!DOCTYPE TS>\n<TS version=\"2.1\" language=\"ko_KR\">\n<context>\n    <name>AiAssistedA"
  },
  {
    "path": "labelme/translate/nl_NL.ts",
    "chars": 33291,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!DOCTYPE TS>\n<TS version=\"2.1\" language=\"nl_NL\">\n<context>\n    <name>AiAssistedA"
  },
  {
    "path": "labelme/translate/pl_PL.ts",
    "chars": 33021,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!DOCTYPE TS>\n<TS version=\"2.1\" language=\"pl_PL\">\n<context>\n    <name>AiAssistedA"
  },
  {
    "path": "labelme/translate/pt_BR.ts",
    "chars": 33386,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!DOCTYPE TS>\n<TS version=\"2.1\" language=\"pt_BR\">\n<context>\n    <name>AiAssistedA"
  },
  {
    "path": "labelme/translate/th_TH.ts",
    "chars": 32234,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!DOCTYPE TS>\n<TS version=\"2.1\" language=\"th_TH\">\n<context>\n    <name>AiAssistedA"
  },
  {
    "path": "labelme/translate/tr_TR.ts",
    "chars": 33217,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!DOCTYPE TS>\n<TS version=\"2.1\" language=\"tr_TR\">\n<context>\n    <name>AiAssistedA"
  },
  {
    "path": "labelme/translate/vi_VN.ts",
    "chars": 32736,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!DOCTYPE TS>\n<TS version=\"2.1\" language=\"vi_VN\">\n<context>\n    <name>AiAssistedA"
  },
  {
    "path": "labelme/translate/zh_CN.ts",
    "chars": 30080,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!DOCTYPE TS>\n<TS version=\"2.1\" language=\"zh_CN\">\n<context>\n    <name>AiAssistedA"
  },
  {
    "path": "labelme/translate/zh_TW.ts",
    "chars": 30081,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!DOCTYPE TS>\n<TS version=\"2.1\" language=\"zh_TW\">\n<context>\n    <name>AiAssistedA"
  },
  {
    "path": "labelme/utils/__init__.py",
    "chars": 669,
    "preview": "from ._io import lblsave\nfrom .image import apply_exif_orientation\nfrom .image import img_arr_to_b64\nfrom .image import "
  },
  {
    "path": "labelme/utils/_io.py",
    "chars": 717,
    "preview": "# MIT License\n# Copyright (c) Kentaro Wada\n\nimport os.path as osp\n\nimport numpy as np\nimport PIL.Image\n\n\ndef lblsave(fil"
  },
  {
    "path": "labelme/utils/image.py",
    "chars": 2598,
    "preview": "# MIT License\n# Copyright (c) Kentaro Wada\n\nimport base64\nimport io\n\nimport numpy as np\nimport PIL.ExifTags\nimport PIL.I"
  },
  {
    "path": "labelme/utils/qt.py",
    "chars": 2487,
    "preview": "import os.path as osp\nfrom math import sqrt\n\nimport numpy as np\nfrom PyQt5 import QtCore\nfrom PyQt5 import QtGui\nfrom Py"
  },
  {
    "path": "labelme/utils/shape.py",
    "chars": 3534,
    "preview": "# MIT License\n# Copyright (c) Kentaro Wada\n\nimport math\nimport uuid\n\nimport numpy as np\nimport PIL.Image\nimport PIL.Imag"
  },
  {
    "path": "labelme/widgets/__init__.py",
    "chars": 660,
    "preview": "from ._ai_assisted_annotation_widget import AiAssistedAnnotationWidget\nfrom ._ai_text_to_annotation_widget import AiText"
  },
  {
    "path": "labelme/widgets/_ai_assisted_annotation_widget.py",
    "chars": 3421,
    "preview": "from collections.abc import Callable\n\nfrom loguru import logger\nfrom PyQt5 import QtCore\nfrom PyQt5 import QtGui\nfrom Py"
  },
  {
    "path": "labelme/widgets/_ai_text_to_annotation_widget.py",
    "chars": 5159,
    "preview": "from collections.abc import Callable\n\nfrom PyQt5 import QtCore\nfrom PyQt5 import QtGui\nfrom PyQt5 import QtWidgets\n\nfrom"
  },
  {
    "path": "labelme/widgets/_info_button.py",
    "chars": 931,
    "preview": "from PyQt5 import QtCore\nfrom PyQt5 import QtGui\nfrom PyQt5 import QtWidgets\n\nfrom labelme.utils.qt import newIcon\n\n\ncla"
  },
  {
    "path": "labelme/widgets/_status.py",
    "chars": 286,
    "preview": "from PyQt5 import QtGui\nfrom PyQt5 import QtWidgets\n\n\nclass StatusStats(QtWidgets.QLabel):\n    def __init__(self):\n     "
  },
  {
    "path": "labelme/widgets/brightness_contrast_dialog.py",
    "chars": 2834,
    "preview": "import PIL.Image\nimport PIL.ImageEnhance\nfrom PyQt5 import QtWidgets\nfrom PyQt5.QtCore import Qt\nfrom PyQt5.QtGui import"
  },
  {
    "path": "labelme/widgets/canvas.py",
    "chars": 45262,
    "preview": "from __future__ import annotations\n\nimport enum\nfrom typing import Literal\n\nimport imgviz\nimport numpy as np\nimport osam"
  },
  {
    "path": "labelme/widgets/download.py",
    "chars": 2152,
    "preview": "from __future__ import annotations\n\nimport types\n\nimport osam\nfrom loguru import logger\nfrom PyQt5 import QtWidgets\nfrom"
  },
  {
    "path": "labelme/widgets/file_dialog_preview.py",
    "chars": 2449,
    "preview": "import json\nfrom typing import cast\n\nfrom PyQt5 import QtCore\nfrom PyQt5 import QtGui\nfrom PyQt5 import QtWidgets\n\n\nclas"
  },
  {
    "path": "labelme/widgets/label_dialog.py",
    "chars": 8593,
    "preview": "import re\nfrom typing import cast\n\nfrom loguru import logger\nfrom PyQt5 import QtCore\nfrom PyQt5 import QtGui\nfrom PyQt5"
  },
  {
    "path": "labelme/widgets/label_list_widget.py",
    "chars": 6411,
    "preview": "from typing import cast\n\nfrom PyQt5 import QtCore\nfrom PyQt5 import QtGui\nfrom PyQt5 import QtWidgets\nfrom PyQt5.QtCore "
  },
  {
    "path": "labelme/widgets/tool_bar.py",
    "chars": 1720,
    "preview": "from __future__ import annotations\n\nfrom PyQt5 import QtCore\nfrom PyQt5 import QtGui\nfrom PyQt5 import QtWidgets\nfrom Py"
  },
  {
    "path": "labelme/widgets/unique_label_qlist_widget.py",
    "chars": 1544,
    "preview": "import html\n\nfrom PyQt5 import QtGui\nfrom PyQt5 import QtWidgets\nfrom PyQt5.QtCore import Qt\n\nfrom .label_list_widget im"
  },
  {
    "path": "labelme/widgets/zoom_widget.py",
    "chars": 683,
    "preview": "from PyQt5 import QtCore\nfrom PyQt5 import QtGui\nfrom PyQt5 import QtWidgets\n\n\nclass ZoomWidget(QtWidgets.QSpinBox):\n   "
  },
  {
    "path": "pyproject.toml",
    "chars": 1984,
    "preview": "[build-system]\nrequires = [\"hatchling>=1.20.0\", \"hatch-vcs\", \"hatch-fancy-pypi-readme\"]\nbuild-backend = \"hatchling.build"
  },
  {
    "path": "tests/conftest.py",
    "chars": 1076,
    "preview": "import json\nimport shutil\nfrom pathlib import Path\n\nimport pytest\n\n\ndef _create_annotated_nested(data_path: Path) -> Non"
  },
  {
    "path": "tests/e2e/__init__.py",
    "chars": 0,
    "preview": ""
  },
  {
    "path": "tests/e2e/annotation_test.py",
    "chars": 2483,
    "preview": "from __future__ import annotations\n\nfrom pathlib import Path\n\nimport pytest\nfrom PyQt5.QtCore import QPoint\nfrom PyQt5.Q"
  },
  {
    "path": "tests/e2e/config_test.py",
    "chars": 1490,
    "preview": "from __future__ import annotations\n\nfrom pathlib import Path\n\nimport pytest\nfrom PyQt5 import QtWidgets\nfrom pytestqt.qt"
  },
  {
    "path": "tests/e2e/conftest.py",
    "chars": 856,
    "preview": "from __future__ import annotations\n\nfrom collections.abc import Generator\nfrom pathlib import Path\n\nimport pytest\nfrom P"
  },
  {
    "path": "tests/e2e/file_loading_test.py",
    "chars": 2810,
    "preview": "from __future__ import annotations\n\nfrom pathlib import Path\nfrom typing import Literal\n\nimport pytest\nfrom PyQt5 import"
  },
  {
    "path": "tests/e2e/navigation_test.py",
    "chars": 1070,
    "preview": "from __future__ import annotations\n\nfrom pathlib import Path\n\nimport pytest\nfrom PyQt5.QtCore import QPoint\nfrom PyQt5.Q"
  },
  {
    "path": "tests/e2e/smoke_test.py",
    "chars": 816,
    "preview": "from __future__ import annotations\n\nfrom pathlib import Path\n\nimport pytest\nfrom pytestqt.qtbot import QtBot\n\nimport lab"
  },
  {
    "path": "tests/unit/__init__.py",
    "chars": 0,
    "preview": ""
  },
  {
    "path": "tests/unit/_label_file_test.py",
    "chars": 997,
    "preview": "from __future__ import annotations\n\nimport json\nimport shutil\nfrom pathlib import Path\n\nfrom labelme._label_file import "
  },
  {
    "path": "tests/unit/config_test.py",
    "chars": 3190,
    "preview": "from pathlib import Path\n\nimport pytest\nimport yaml\n\nfrom labelme.config import _migrate_config_from_file\nfrom labelme.c"
  },
  {
    "path": "tests/unit/load_image_file_test.py",
    "chars": 2538,
    "preview": "from __future__ import annotations\n\nimport io\nfrom pathlib import Path\n\nimport numpy as np\nimport PIL.Image\nimport tifff"
  },
  {
    "path": "tests/unit/shape_contains_point_test.py",
    "chars": 1636,
    "preview": "from __future__ import annotations\n\nfrom PyQt5 import QtCore\n\nfrom labelme.shape import Shape\n\n\ndef _make_point_shape(x:"
  },
  {
    "path": "tests/unit/shape_test.py",
    "chars": 1008,
    "preview": "import numpy as np\nimport pytest\nfrom numpy.typing import NDArray\nfrom PyQt5 import QtCore\n\nfrom labelme.shape import Sh"
  },
  {
    "path": "tests/unit/utils/__init__.py",
    "chars": 0,
    "preview": ""
  },
  {
    "path": "tests/unit/utils/image_test.py",
    "chars": 841,
    "preview": "import numpy as np\nimport PIL.Image\n\nfrom labelme.utils import image as image_module\n\nfrom .util import data_dir\nfrom .u"
  },
  {
    "path": "tests/unit/utils/qt_test.py",
    "chars": 413,
    "preview": "from PyQt5.QtCore import QPointF\n\nfrom labelme.utils.qt import distancetoline\n\n\ndef test_distancetoline():\n    line = (Q"
  },
  {
    "path": "tests/unit/utils/shape_test.py",
    "chars": 1470,
    "preview": "import numpy as np\n\nfrom labelme.utils import shape as shape_module\n\nfrom .util import get_img_and_data\n\n\ndef test_shape"
  },
  {
    "path": "tests/unit/utils/util.py",
    "chars": 1072,
    "preview": "import json\nfrom pathlib import Path\n\nfrom labelme.utils import image as image_module\nfrom labelme.utils import shape as"
  },
  {
    "path": "tests/unit/widgets/__init__.py",
    "chars": 0,
    "preview": ""
  },
  {
    "path": "tests/unit/widgets/canvas_test.py",
    "chars": 1926,
    "preview": "from __future__ import annotations\n\nfrom typing import Final\n\nimport pytest\nfrom PyQt5 import QtGui\nfrom PyQt5.QtCore im"
  },
  {
    "path": "tests/unit/widgets/label_dialog_test.py",
    "chars": 3057,
    "preview": "from __future__ import annotations\n\nimport pytest\nfrom PyQt5 import QtCore\nfrom PyQt5 import QtWidgets\n\nfrom labelme.wid"
  },
  {
    "path": "tests/unit/widgets/label_list_widget_test.py",
    "chars": 460,
    "preview": "import pytest\n\nfrom labelme.widgets import LabelListWidget\nfrom labelme.widgets import LabelListWidgetItem\n\n\n@pytest.mar"
  },
  {
    "path": "tools/update_translate.py",
    "chars": 2465,
    "preview": "import re\nimport subprocess\nimport sys\nfrom pathlib import Path\n\nfrom loguru import logger\n\nhere: Path = Path(__file__)."
  }
]

// ... and 30 more files (download for full content)

About this extraction

This page contains the full source code of the wkentaro/labelme GitHub repository, extracted and formatted as plain text for AI agents and large language models (LLMs). The extraction includes 162 files (1.1 MB), approximately 342.9k tokens, and a symbol index with 428 extracted functions, classes, methods, constants, and types. Use this with OpenClaw, Claude, ChatGPT, Cursor, Windsurf, or any other AI tool that accepts text input. You can copy the full output to your clipboard or download it as a .txt file.

Extracted by GitExtract — free GitHub repo to text converter for AI. Built by Nikandr Surkov.

Copied to clipboard!