fix a bug in some opencv version (#407)

pull/408/head
shilong 2020-07-10 00:14:14 +08:00 committed by GitHub
parent 2b876bc7a7
commit 481fdbf30b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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])