Jyothish CHANDRASENAN commited on
Commit
306aa3f
·
1 Parent(s): 75dd967

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -127,11 +127,11 @@ def postprocessor(prediction, orig_img):
127
  y = int(point[1])
128
  points.append((x,y))
129
  color = (255, 0, 0)
130
- thickness = 1
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.5, (255,0,0), thickness, cv2.LINE_AA)
133
 
134
- result_image = cv2.line(result_image, points[0], points[1], (255,0,0), thickness)
135
  return result_image
136
 
137
 
 
127
  y = int(point[1])
128
  points.append((x,y))
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.25, (255,0,0), thickness, cv2.LINE_AA)
133
 
134
+ result_image = cv2.line(result_image, points[0], points[1], (0,0,255), thickness)
135
  return result_image
136
 
137