Skip to main content

Drawing (drawing)

Draw basic shapes and text on Vision images.

API

FunctionDescription
vision_rectangle(v, x, y, w, h, thickness, c)Draw a rectangle
vision_text(v, x, y, wrap, family, style, size, c, fmt, ...)Render text
vision_icon(v, x, y, family, size, code, c)Render an icon glyph

Notes

FunctionDescription
vision_rectangleDraw a rectangle outline; thickness is the line width
vision_textRender text at a given position, supports line wrapping, font style, and size
vision_iconRender an icon glyph from a font file (e.g., FontAwesome)