Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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(
|
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)
|