Skip to content

Commit

Permalink
moved annotation-overlay-od from imgaug to imgvis module; added image…
Browse files Browse the repository at this point in the history
…-viewer sink to imgvis module
  • Loading branch information
fracpete committed May 8, 2022
1 parent 1218887 commit 86dbade
Show file tree
Hide file tree
Showing 9 changed files with 1 addition and 625 deletions.
1 change: 1 addition & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ Changelog
------------------

- Fixed error message of AnnotationOverlay in case data of wrong domain is coming through
- Moved AnnotationOverlay into wai.annotations.imgvis module
- ...


Expand Down
1 change: 0 additions & 1 deletion DESCRIPTION.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
Inline stream processors for image augmentation:

* `add-annotation-overlay-od`: adds object detection overlays to images
* `crop`: crops images
* `flip`: flips images either left-to-right, up-to-down or both
* `gaussian-blur`: applies gaussian blur to images
Expand Down
36 changes: 0 additions & 36 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,42 +7,6 @@ The manual is available here:
https://ufdl.cms.waikato.ac.nz/wai-annotations-manual/

## Plugins
### ADD-ANNOTATION-OVERLAY-OD
Adds object detection overlays to images passing through.

#### Domain(s):
- **Image Object-Detection Domain**

#### Options:
```
usage: add-annotation-overlay-od [--fill] [--fill-alpha FILL_ALPHA] [--font-family FONT_FAMILY] [--font-size FONT_SIZE] [--force-bbox] [--label-key LABEL_KEY] [--labels LABELS] [--num-decimals NUM_DECIMALS] [--outline-alpha OUTLINE_ALPHA] [--outline-thickness OUTLINE_THICKNESS] [--text-format TEXT_FORMAT] [--text-placement TEXT_PLACEMENT] [--vary-colors]
optional arguments:
--fill whether to fill the bounding boxes/polygons
--fill-alpha FILL_ALPHA
the alpha value to use for the filling.
--font-family FONT_FAMILY
the name of the TTF font-family to use, note: any hyphens need escaping with backslash.
--font-size FONT_SIZE
the size of the font.
--force-bbox whether to force a bounding box even if there is a polygon available
--label-key LABEL_KEY
the key in the meta-data that contains the label.
--labels LABELS the comma-separated list of labels of annotations to overlay, leave empty to overlay all
--num-decimals NUM_DECIMALS
the number of decimals to use for float numbers in the text format string.
--outline-alpha OUTLINE_ALPHA
the alpha value to use for the outline.
--outline-thickness OUTLINE_THICKNESS
the line thickness to use for the outline, <1 to turn off.
--text-format TEXT_FORMAT
template for the text to print on top of the bounding box or polygon, '{PH}' is a placeholder for the 'PH' value from the meta-data or 'label' for the current label; ignored if empty.
--text-placement TEXT_PLACEMENT
comma-separated list of vertical (T=top, C=center, B=bottom) and horizontal (L=left, C=center, R=right) anchoring.
--vary-colors whether to vary the colors of the outline/filling regardless of label
```


### CROP
Crops images.

Expand Down
1 change: 0 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ def _read(filename: str) -> str:
entry_points={
"wai.annotations.plugins": [
# ISPs
"add-annotation-overlay-od=wai.annotations.imgaug.isp.annotation_overlay.specifier:AnnotationOverlayISPSpecifier",
"crop=wai.annotations.imgaug.isp.crop.specifier:CropISPSpecifier",
"flip=wai.annotations.imgaug.isp.flip.specifier:FlipISPSpecifier",
"gaussian-blur=wai.annotations.imgaug.isp.gaussian_blur.specifier:GaussianBlurISPSpecifier",
Expand Down
3 changes: 0 additions & 3 deletions src/wai/annotations/imgaug/isp/annotation_overlay/__init__.py

This file was deleted.

Loading

0 comments on commit 86dbade

Please sign in to comment.