albumentations.augmentations.other.annotation_artifacts_functional


Functional helpers for drawing synthetic 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

NameTypeDefaultDescription
imageImageType--
artifactslist[dict[str, Any]]--