albumentations.augmentations.other.annotation_artifacts_functional
Functional helpers for drawing synthetic annotation artifacts.
Members
- functiondraw_annotation_artifacts
draw_annotation_artifactsfunction
draw_annotation_artifacts(
image: ImageType,
artifacts: list[dict[str, Any]]
)Draw generated annotation commands with OpenCV primitives. Used by markup-style augmentations that add text, arrows, boxes, lines, or callouts. Args: image (ImageType): Input image. artifacts (list[dict[str, Any]]): Artifact drawing commands generated by the transform. Returns: ImageType: Image with annotation artifacts drawn.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
| image | ImageType | - | - |
| artifacts | list[dict[str, Any]] | - | - |