Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
Update detection.py
Browse files Browse the repository at this point in the history
  • Loading branch information
lvaleriu committed Sep 12, 2018
1 parent 313c002 commit 2171afa
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions python/mxnet/image/detection.py
Original file line number Diff line number Diff line change
Expand Up @@ -901,8 +901,7 @@ def draw_next(self, color=None, thickness=2, mean=None, std=None, clip=True,
font = cv2.FONT_HERSHEY_SIMPLEX
font_scale = 0.5
text_height = cv2.getTextSize(text, font, font_scale, 2)[0][1]
cv2.putText(image, text, (x1 + 5, y1 + text_height + 5),
font, font_scale, (255, 255, 255), 2)
cv2.putText(image, text, (x1 + 5, y1 + text_height + 5), font, 0.5, (255, 255, 255), 2)

if waitKey is not None:
cv2.imshow(window_name, image)
Expand Down

0 comments on commit 2171afa

Please sign in to comment.