itmorn commited on
Commit
ffaea76
·
1 Parent(s): 307f81d
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -31,11 +31,11 @@ def inference(image):
31
  # img_out = np.zeros((500, 600, 3),dtype=np.uint8)
32
  # cv2.putText(img_out, "ease contact the server for trouble", (20, 100), font, 0.8, (0, 255, 0), 2)
33
  # return img_out
34
-
 
 
35
  for face in lst2d_res:
36
- img_out = np.zeros((500, 600, 3), dtype=np.uint8)
37
- cv2.putText(img_out, msg, (20, 20), font, 1, (0, 255, 0), 2)
38
- return img_out
39
  bbox = [int(i) for i in face["bbox"]]
40
  score = face['score']
41
  point_color = (0, int(255 * score), 0) # BGR
 
31
  # img_out = np.zeros((500, 600, 3),dtype=np.uint8)
32
  # cv2.putText(img_out, "ease contact the server for trouble", (20, 100), font, 0.8, (0, 255, 0), 2)
33
  # return img_out
34
+ img_out = np.zeros((500, 600, 3), dtype=np.uint8)
35
+ cv2.putText(img_out, msg, (20, 20), font, 1, (0, 255, 0), 2)
36
+ return img_out
37
  for face in lst2d_res:
38
+
 
 
39
  bbox = [int(i) for i in face["bbox"]]
40
  score = face['score']
41
  point_color = (0, int(255 * score), 0) # BGR