Are you sure you want to delete this task? Once this task is deleted, it cannot be recovered.
qiuzhongze 7d435d8dac | 1 year ago | |
---|---|---|
.. | ||
data/img | 1 year ago | |
examples | 1 year ago | |
README.md | 1 year ago | |
visualizer.py | 1 year ago |
This script contains image visualizing modules for detection and segmentation tasks based on OpenCV.
Used for drawing bounding boxes, where the colors of the boxes and fonts are obtained by the function get_n_hsv_color().
Used for getting a specific number of colors, where the colors are determined by the H component of the HSV format.
Used for drawing masks, where the colors of the boxes and fonts are determined by the H component of the HSV format.
img = cv2.imread('data/img/1.jpg')
boxes = [[104, 57, 202, 159, 3, 0.86], [20, 95, 296, 251, 1, 0.9], [176, 73, 394, 243, 1, 0.95]]
class_name = ['cat', 'horse', 'cow', 'person']
draw_bbox(img, boxes, class_name, bbox_mode=1)
class_name = ['cat', 'horse', 'cow', 'person']
draw_mask(mask, len(class_name))
Models of MindSpore
Python Shell Unity3D Asset C++ Markdown other
Dear OpenI User
Thank you for your continuous support to the Openl Qizhi Community AI Collaboration Platform. In order to protect your usage rights and ensure network security, we updated the Openl Qizhi Community AI Collaboration Platform Usage Agreement in January 2024. The updated agreement specifies that users are prohibited from using intranet penetration tools. After you click "Agree and continue", you can continue to use our services. Thank you for your cooperation and understanding.
For more agreement content, please refer to the《Openl Qizhi Community AI Collaboration Platform Usage Agreement》