mirror of https://github.com/open-mmlab/mmcv.git
fix a bug in some opencv version (#407)
parent
2b876bc7a7
commit
481fdbf30b
|
@ -122,7 +122,7 @@ def imshow_det_bboxes(img,
|
|||
|
||||
bbox_color = color_val(bbox_color)
|
||||
text_color = color_val(text_color)
|
||||
|
||||
img = np.ascontiguousarray(img)
|
||||
for bbox, label in zip(bboxes, labels):
|
||||
bbox_int = bbox.astype(np.int32)
|
||||
left_top = (bbox_int[0], bbox_int[1])
|
||||
|
|
Loading…
Reference in New Issue