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

Method draw_multiple_text

slowfast/visualization/video_visualizer.py:109–182  ·  view source on GitHub ↗

Draw a list of text labels for some bounding box on the image. Args: text_ls (list of strings): a list of text labels. box_coordinate (tensor): shape (4,). The (x_left, y_top, x_right, y_bottom) coordinates of the box. top_corner (

(
        self,
        text_ls,
        box_coordinate,
        *,
        top_corner=True,
        font_size=None,
        color="w",
        box_facecolors="black",
        alpha=0.5,
    )

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

draw_one_frameMethod · 0.95

Calls 4

_align_y_topMethod · 0.95
_align_y_bottomMethod · 0.95

Tested by

no test coverage detected