MCPcopy Create free account
hub / github.com/MTLab/MorphMLP / draw_text

Method draw_text

slowfast/visualization/video_visualizer.py:61–107  ·  view source on GitHub ↗

Draw text at the specified position. Args: text (str): the text to draw on image. position (list of 2 ints): the x,y coordinate to place the text. font_size (Optional[int]): font of the text. If not provided, a font size proportion

(
        self,
        text,
        position,
        *,
        font_size=None,
        color="w",
        horizontal_alignment="center",
        vertical_alignment="bottom",
        box_facecolor="black",
        alpha=0.5,
    )

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected