A simple plugin to label image
Project description
napari-simpleannotate
A simple plugin to label image
This napari plugin was generated with Cookiecutter using @napari's cookiecutter-napari-plugin template.
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
-
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.
- Click the
-
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.
- Enter the class name in the textbox and click the
-
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.
-
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 aclass.yaml
already exists and its content is different from the current one, a popup will appear asking for confirmation to overwrite it.
- Click the
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for napari-simpleannotate-0.0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4d35496776ddb08282ff3a6776e183279f18a113ca472a6eeb2ef78966396fa0 |
|
MD5 | 2c173ec45c60e7b55d8df1f3b78827a4 |
|
BLAKE2b-256 | f458e4f390501a21038c26d928c73cb4a136b51dacb66d642949af95d3c5dd57 |
Hashes for napari_simpleannotate-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | eb3839d977e5f793a110eddddf25936595481d10332797809b9e37375a0c20a4 |
|
MD5 | f892681cb6b4f0926980269f32638799 |
|
BLAKE2b-256 | 294e79cf2891f016ffb4f3d2d38d877a38736da5eded42f6de71e53d72eb60c1 |