Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def _layout_to_markdown(
ignore_code=False,
image_format="png",
image_path="",
ocr_dpi=300,
ocr_dpi=150,
ocr_function=None,
ocr_language="eng",
page_chunks=False,
Expand Down Expand Up @@ -120,7 +120,7 @@ def _layout_to_json(
image_format="png",
image_path="",
pages=None,
ocr_dpi=300,
ocr_dpi=150,
write_images=False,
embed_images=False,
show_progress=False,
Expand Down Expand Up @@ -159,7 +159,7 @@ def _layout_to_text(
ignore_code=False,
show_progress=False,
force_text=True,
ocr_dpi=300,
ocr_dpi=150,
use_ocr=True,
force_ocr=False,
ocr_language="eng",
Expand Down
2 changes: 1 addition & 1 deletion src/helpers/document_layout.py
Original file line number Diff line number Diff line change
Expand Up @@ -1079,7 +1079,7 @@ def parse_document(
doc,
filename="",
image_dpi=150,
ocr_dpi=300,
ocr_dpi=150,
image_format="png",
image_path="",
pages=None,
Expand Down
2 changes: 1 addition & 1 deletion src/ocr/analyze_page.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ def bbox_is_empty(bbox) -> bool:
return bbox[0] >= bbox[2] or bbox[1] >= bbox[3]


def analyze_page(page, blocks=None, replace_ocr=False, ocr_dpi=200, stats=None) -> dict:
def analyze_page(page, blocks=None, replace_ocr=False, ocr_dpi=150, stats=None) -> dict:
"""Analyze the page for the OCR decision.

Args:
Expand Down
Loading