Spaces:
Runtime error
Runtime error
init
Browse files
app.py
CHANGED
@@ -31,6 +31,7 @@ def inference(image):
|
|
31 |
for face in lst2d_res:
|
32 |
img_out = np.zeros((500, 600, 3))
|
33 |
cv2.putText(img_out, "ease contact the server for trouble", (20, 20), font, 1, (0, 255, 0), 2)
|
|
|
34 |
bbox = [int(i) for i in face["bbox"]]
|
35 |
score = face['score']
|
36 |
point_color = (0, int(255 * score), 0) # BGR
|
|
|
31 |
for face in lst2d_res:
|
32 |
img_out = np.zeros((500, 600, 3))
|
33 |
cv2.putText(img_out, "ease contact the server for trouble", (20, 20), font, 1, (0, 255, 0), 2)
|
34 |
+
return img_out
|
35 |
bbox = [int(i) for i in face["bbox"]]
|
36 |
score = face['score']
|
37 |
point_color = (0, int(255 * score), 0) # BGR
|