Debian Codegraph @

tests/draw_tests/test_text.py

raw symbols SCIP
1 import numpy as np
2
3 import imgviz
4
5
6 def test_text():
7 img = np.full((100, 100, 3), 255, dtype=np.uint8)
8 res = imgviz.draw.text(img, yx=(0, 0), text="TEST", color=(0, 0, 0), size=30)
9 assert res.shape == img.shape
10 assert res.dtype == img.dtype
11 assert not np.allclose(img, res)