※ MMCV는 다음과 같은 기능을 한다:
- Data Process
- mmcv.image
- mmcv.video
- Visualization
- mmcv.visualization
- Data Transformation
- mmcv.transforms
- Various CNN Architectures
- mmcv.cnn
- High-quality Implementation of Common CUDA Ops
- mmcv.ops
mmcv.visualization
Image
imshow | Show an image |
imshow_bboxes | Draw bboxes on an image. |
imshow_det_bboxes | Draw bboxes and class labels (with scores) on an image |
# show an image file
mmcv.imshow('a.jpg')
# show a loaded image
img = np.random.rand(100, 100, 3)
mmcv.imshow(img)
# show image with bounding boxes
img = np.random.rand(100, 100, 3)
bboxes = np.array([[0, 0, 50, 50], [20, 20, 60, 60]])
mmcv.imshow_bboxes(img, bboxes)
Color
color | An enum that defines common colors. |
color_val | Convert various input to color tuples. |
https://mmcv.readthedocs.io/en/latest/api/visualization.html
https://mmcv.readthedocs.io/en/latest/understand_mmcv/visualization.html
'OpenMMLab > MMCV' 카테고리의 다른 글
MMCV 이해하기: High-quality Implementation of Common CUDA Ops (0) | 2024.06.21 |
---|---|
MMCV 이해하기: Various CNN Architectures (0) | 2024.06.21 |
MMCV 이해하기: Data Transformation (0) | 2024.06.21 |
MMCV 이해하기: Data Process (0) | 2024.06.21 |
MMCV 시작하기 (0) | 2024.06.20 |