BilalHasan commited on
Commit
e430d4a
·
verified ·
1 Parent(s): dd85559

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -123,7 +123,7 @@ top_margin = 100
123
 
124
  def predict(input_path):
125
  image = cv.imread(input_path)
126
- bin_image = preprocess_image(input_img)
127
  lines = split_image_into_lines(bin_image)
128
  improved_text = get_improved_result(lines)
129
  out_image = put_text(improved_text, font, font_scale, color, thickness, max_width, out_image_width, top_margin)
 
123
 
124
  def predict(input_path):
125
  image = cv.imread(input_path)
126
+ bin_image = preprocess_image(image)
127
  lines = split_image_into_lines(bin_image)
128
  improved_text = get_improved_result(lines)
129
  out_image = put_text(improved_text, font, font_scale, color, thickness, max_width, out_image_width, top_margin)