use OcrAutoOptions for automatic OCR engine selection.
This commit is contained in:
parent
51104ddb5a
commit
b4602b0cab
2 changed files with 10 additions and 2 deletions
|
|
@ -1,6 +1,14 @@
|
||||||
# Changelog
|
# Changelog
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
|
||||||
|
- **Async Chunker**: `DoclingServeChunker` now uses `httpx.AsyncClient` instead of sync `requests`
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- **OCR Options**: Fixed `DoclingLocalConverter` using base `OcrOptions` class which docling's OCR factory doesn't recognize. Now uses `OcrAutoOptions` for automatic OCR engine selection.
|
||||||
|
|
||||||
## [0.19.2] - 2025-11-27
|
## [0.19.2] - 2025-11-27
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
|
|
|
||||||
|
|
@ -59,7 +59,7 @@ class DoclingLocalConverter(DocumentConverter):
|
||||||
from docling.backend.docling_parse_backend import DoclingParseDocumentBackend
|
from docling.backend.docling_parse_backend import DoclingParseDocumentBackend
|
||||||
from docling.datamodel.base_models import InputFormat
|
from docling.datamodel.base_models import InputFormat
|
||||||
from docling.datamodel.pipeline_options import (
|
from docling.datamodel.pipeline_options import (
|
||||||
OcrOptions,
|
OcrAutoOptions,
|
||||||
PdfPipelineOptions,
|
PdfPipelineOptions,
|
||||||
TableFormerMode,
|
TableFormerMode,
|
||||||
TableStructureOptions,
|
TableStructureOptions,
|
||||||
|
|
@ -86,7 +86,7 @@ class DoclingLocalConverter(DocumentConverter):
|
||||||
else TableFormerMode.ACCURATE
|
else TableFormerMode.ACCURATE
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
ocr_options=OcrOptions(
|
ocr_options=OcrAutoOptions(
|
||||||
force_full_page_ocr=opts.force_ocr,
|
force_full_page_ocr=opts.force_ocr,
|
||||||
lang=opts.ocr_lang if opts.ocr_lang else [],
|
lang=opts.ocr_lang if opts.ocr_lang else [],
|
||||||
),
|
),
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue