albumentations.augmentations.other.annotation_artifacts_functional
Functional helpers for drawing synthetic annotation artifacts.
Members
- functiondraw_annotation_artifacts
draw_annotation_artifactsfunction
draw_annotation_artifacts(
image: NDArray[np.uint8] | NDArray[np.float16] | NDArray[np.float32],
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 (NDArray[np.uint8] | NDArray[np.float16] | NDArray[np.float32]): Input image. artifacts (list[dict[str, Any]]): Artifact drawing commands generated by the transform. Returns: NDArray[np.uint8] | NDArray[np.float16] | NDArray[np.float32]: Image with annotation artifacts drawn.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
| image | One of:
| - | - |
| artifacts | list[dict[str, Any]] | - | - |