badru commited on
Commit
0d0b3d5
·
verified ·
1 Parent(s): c816f98

Update app.py

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