srijaydeshpande commited on
Commit
cf8530c
·
verified ·
1 Parent(s): 7179638

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
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)