Spaces:
Runtime error
Runtime error
Jyothish CHANDRASENAN
commited on
Commit
·
e3f69bb
1
Parent(s):
10492fb
Update app.py
Browse files
app.py
CHANGED
@@ -129,7 +129,7 @@ def postprocessor(prediction, orig_img):
|
|
129 |
color = (255, 0, 0)
|
130 |
thickness = 3
|
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,y-
|
133 |
|
134 |
distance = distanceCalculate(points[0], points[1])
|
135 |
midpoints = midpoint(points[0], points[1])
|
|
|
129 |
color = (255, 0, 0)
|
130 |
thickness = 3
|
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+2,y-5), cv2.FONT_HERSHEY_SIMPLEX, 0.35, (255,0,0), 1, cv2.LINE_AA)
|
133 |
|
134 |
distance = distanceCalculate(points[0], points[1])
|
135 |
midpoints = midpoint(points[0], points[1])
|