Spaces:
Build error
Build error
First model version
Browse files- det_demo.py +1 -1
det_demo.py
CHANGED
@@ -580,7 +580,7 @@ class DetDemo(object):
|
|
580 |
green[...,2] = 0
|
581 |
for mask, word, box in zip(masks, words, boxes):
|
582 |
image[mask] = image[mask] * 0.5 + green[mask] * 0.5
|
583 |
-
cv2.putText(image, word, (box[0], box[1]), cv2.FONT_HERSHEY_COMPLEX, 0.4, (0,0,255),
|
584 |
'''
|
585 |
for box in boxes:
|
586 |
cv2.rectangle(image,(box[0], box[1]), (box[2], box[3]), (0,0,255), 2)
|
|
|
580 |
green[...,2] = 0
|
581 |
for mask, word, box in zip(masks, words, boxes):
|
582 |
image[mask] = image[mask] * 0.5 + green[mask] * 0.5
|
583 |
+
cv2.putText(image, word, (box[0], box[1]), cv2.FONT_HERSHEY_COMPLEX, 0.4, (0,0,255), 1)
|
584 |
'''
|
585 |
for box in boxes:
|
586 |
cv2.rectangle(image,(box[0], box[1]), (box[2], box[3]), (0,0,255), 2)
|