Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -39,6 +39,7 @@ if file is not None:
|
|
| 39 |
# collect the results in the dictionary:
|
| 40 |
textdic_easyocr = {}
|
| 41 |
for idx in range(len(result)):
|
|
|
|
| 42 |
x_coords = [point[0] for point in pred_coor]
|
| 43 |
y_coords = [point[1] for point in pred_coor]
|
| 44 |
center_x = sum(x_coords) / len(x_coords)
|
|
|
|
| 39 |
# collect the results in the dictionary:
|
| 40 |
textdic_easyocr = {}
|
| 41 |
for idx in range(len(result)):
|
| 42 |
+
pred_coor = result[idx][0]
|
| 43 |
x_coords = [point[0] for point in pred_coor]
|
| 44 |
y_coords = [point[1] for point in pred_coor]
|
| 45 |
center_x = sum(x_coords) / len(x_coords)
|