| 1 |
import numpy as np |
| 2 |
|
| 3 |
import imgviz |
| 4 |
|
| 5 |
|
| 6 |
def test_rectangle(): |
| 7 |
img = np.full((100, 100, 3), 255, dtype=np.uint8) |
| 8 |
res = imgviz.draw.rectangle(img, (0, 0), (50, 50), outline=(0, 0, 0)) |
| 9 |
assert res.shape == img.shape |
| 10 |
assert res.dtype == img.dtype |