/AnnotationTool

This is an annotation tool for image segmentation tasks, where the output after the annotation procedure is a binary mask.

Primary LanguagePythonMIT LicenseMIT

AnnotationTool

Dependencies

Requirements

  • Python 3.8+
  • numpy 1.24.1
  • opencv-contrib-python 4.8.0.74

It was ran and tested under the following OSs:

  • Windows 10 Home

Preparing Data

You need to prepare data with the .png extension.

Usage

python main.py -i path/to/png/file

For more help in details

python main.py --help

Keyboard usage

Press 's'

Save the binary mask of the input image, the binary mask's filename will be saved as input/file/name_bainary_mask.png in the image_gt directory.

Press 'c'

Remove all the annotations of the input image

Demo

2023-08-07 03-09-10