/pyOpenAnnotate

A single class annotation tool.

Primary LanguagePythonMIT LicenseMIT

Automated Annotation Tool

Automate your image annotation pipeline using pyOpenAnnotate. It is built harnessing the power of OpenCV. Perfect for annotating single class datasets. Check out accompanying blog post to understand how pyOpenAnnotate has been designed.

Automated Image Annotation Tool Using OpenCV.


Automated Annotation Tool OpenCV

Example Use Cases

Automated Annotation pyOpenAnnotate

Automated Annotation pyOpenAnnotate

How To Use pyOpenAnnotate?

0. Installation

pip install pyOpenAnnotate

Annotating images using pyOpenAnnotate is pretty simple. Use the command annotate followed by the following flags as per the requirement.

1. Annotate Images

annotate --img <images_directory_path>

2. Annotate Video

annotate --vid <path_to_video_file>

3. Global Flags

-T : View mask window.
--resume <existing-annotations-dir>: Continue from where you left off.
--skip <int(Frames)> : Frames to skip while processing a video file.

4. Mouse Controls

Click and Drag: Draw bounding boxes.
Double Click: Remove existing annotation.

Display Annotations

Visualize your annotations using the showlbls command.

showlbls --img <single_image_or_a_directory> --ann <single_annotation_text_file_or_a_directory>

Keyboard Navigation

N or D : Save and go to next image
B or A : Save and go back
C : Toggle clear screen (during annotation)
T : Toggle mask window (during annotation)
Q : Quit