Spaces:
Runtime error
Runtime error
Jyothish CHANDRASENAN
commited on
Commit
·
a01b6c3
1
Parent(s):
306aa3f
Update app.py
Browse files
app.py
CHANGED
@@ -129,9 +129,9 @@ def postprocessor(prediction, orig_img):
|
|
129 |
color = (255, 0, 0)
|
130 |
thickness = 2
|
131 |
result_image = cv2.circle(result_image, (x,y), radius=0, color=color, thickness=thickness)
|
132 |
-
result_image = cv2.putText(result_image,text[idx], (x-10,y+10), cv2.FONT_HERSHEY_SIMPLEX, 0.
|
133 |
|
134 |
-
result_image = cv2.line(result_image, points[0], points[1], (0,0,255),
|
135 |
return result_image
|
136 |
|
137 |
|
|
|
129 |
color = (255, 0, 0)
|
130 |
thickness = 2
|
131 |
result_image = cv2.circle(result_image, (x,y), radius=0, color=color, thickness=thickness)
|
132 |
+
result_image = cv2.putText(result_image,text[idx], (x-10,y+10), cv2.FONT_HERSHEY_SIMPLEX, 0.75, (255,0,0), thickness, cv2.LINE_AA)
|
133 |
|
134 |
+
result_image = cv2.line(result_image, points[0], points[1], (0,0,255), 1)
|
135 |
return result_image
|
136 |
|
137 |
|