Update app.py
Browse files
app.py
CHANGED
|
@@ -43,7 +43,7 @@ async def process_image(image: UploadFile = File(...)):
|
|
| 43 |
image = Image.open(io.BytesIO(image_data)).convert("RGB")
|
| 44 |
|
| 45 |
# Detect lines and process each line
|
| 46 |
-
line_images = detect_lines(image, min_height=30, min_width=
|
| 47 |
extracted_text = ""
|
| 48 |
for line_img in line_images:
|
| 49 |
line_pil = Image.fromarray(line_img)
|
|
|
|
| 43 |
image = Image.open(io.BytesIO(image_data)).convert("RGB")
|
| 44 |
|
| 45 |
# Detect lines and process each line
|
| 46 |
+
line_images = detect_lines(image, min_height=30, min_width=600)
|
| 47 |
extracted_text = ""
|
| 48 |
for line_img in line_images:
|
| 49 |
line_pil = Image.fromarray(line_img)
|