Skip to main content

A simple plugin to label image

Project description

napari-simpleannotate

License BSD-3 PyPI Python Version tests codecov napari hub

A simple plugin to label image


This napari plugin was generated with Cookiecutter using @napari's cookiecutter-napari-plugin template.

overview

Installation

You can install napari-simpleannotate via pip:

pip install napari-simpleannotate

To install latest development version :

pip install git+https://github.com/hiroalchem/napari-simpleannotate.git

How to use

  1. Opening Files or Directories:

    • Click the Open File button to open an image file.
    • Click the Open Directory button to open a directory containing images.
    • If there's a class.yaml in the directory of the selected file or within the selected directory, it will be automatically detected. A popup will appear, giving you the option to load it.
  2. Class Management:

    • Enter the class name in the textbox and click the Add class button to add a class. When adding a class name, a number is automatically assigned to it. This number will be used when saving annotations.
    • Select a class from the class list and click the Delete selected class button to remove it.
  3. Annotating Images:

    • Use napari's rectangle tool to annotate the images. If you have a class selected, the annotation will automatically be assigned to that class.
    • For existing rectangles, you can change their class by selecting the rectangle and then choosing a different class from the list.
  4. Saving Annotations:

    • Click the Save Annotations button to save the annotations in YOLO format.
    • Along with saving the annotations, the class.yaml will also be saved. If a class.yaml already exists and its content is different from the current one, a popup will appear asking for confirmation to overwrite it.

Contributing

Contributions are very welcome. Tests can be run with tox, please ensure the coverage at least stays the same before you submit a pull request.

License

Distributed under the terms of the BSD-3 license, "napari-simpleannotate" is free and open source software

Issues

If you encounter any problems, please file an issue along with a detailed description.

Project details


Download files

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

Source Distribution

napari_simpleannotate-0.0.5.tar.gz (12.3 kB view details)

Uploaded Source

Built Distribution

napari_simpleannotate-0.0.5-py3-none-any.whl (11.2 kB view details)

Uploaded Python 3

File details

Details for the file napari_simpleannotate-0.0.5.tar.gz.

File metadata

  • Download URL: napari_simpleannotate-0.0.5.tar.gz
  • Upload date:
  • Size: 12.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for napari_simpleannotate-0.0.5.tar.gz
Algorithm Hash digest
SHA256 2d9d4d5f93dd1fc027163d05f7a7ed5a8ae70fafc596a91a704de9b641acb97a
MD5 d2f295c53ee942e34b1977942d8e6ff3
BLAKE2b-256 7e526833b5b3af062f92cf9b51b77ebb7edbc7f714e2b93ecbbaa9193bc30242

See more details on using hashes here.

File details

Details for the file napari_simpleannotate-0.0.5-py3-none-any.whl.

File metadata

File hashes

Hashes for napari_simpleannotate-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 1d06923ad9d63bb0f6d1947c9f37530e4acb78056c0571146240f9990089dda0
MD5 654a4a720cf3fac9260caef88288557b
BLAKE2b-256 f3fd28658fc0477819df5c1f4ef68969b20d87487fa6764f709c280e5fd6d124

See more details on using hashes here.

Supported by

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