Spaces:
Runtime error
Runtime error
init
Browse files
app.py
CHANGED
|
@@ -9,6 +9,10 @@ lineType = 8
|
|
| 9 |
font = cv2.FONT_HERSHEY_SIMPLEX
|
| 10 |
|
| 11 |
def inference(image):
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
image = cv2.cvtColor(image, cv2.COLOR_BGR2RGB)
|
| 13 |
code,lst2d_res = get_app(image)
|
| 14 |
if code == 401:
|
|
|
|
| 9 |
font = cv2.FONT_HERSHEY_SIMPLEX
|
| 10 |
|
| 11 |
def inference(image):
|
| 12 |
+
img_out = np.zeros((500, 600, 3))
|
| 13 |
+
cv2.putText(img_out, "ease contact the server for trouble", (20, 20), font, 1, (0, 255, 0), 2)
|
| 14 |
+
return img_out
|
| 15 |
+
|
| 16 |
image = cv2.cvtColor(image, cv2.COLOR_BGR2RGB)
|
| 17 |
code,lst2d_res = get_app(image)
|
| 18 |
if code == 401:
|