mirror of
https://github.com/DS4SD/docling.git
synced 2025-07-29 21:44:32 +00:00
feat(ocr): Add OnnxTR as possible OCR engine
Signed-off-by: felix <felixdittrich92@gmail.com>
This commit is contained in:
parent
4cd2ec5515
commit
1f9872c8ae
8061
poetry.lock
generated
Normal file
8061
poetry.lock
generated
Normal file
File diff suppressed because it is too large
Load Diff
@ -76,8 +76,8 @@ onnxtr = { extras = ["gpu"], version = "^0.6.2", optional = true, markers = "pyt
|
||||
onnxruntime = [
|
||||
# 1.19.2 is the last version with python3.9 support,
|
||||
# see https://github.com/microsoft/onnxruntime/releases/tag/v1.20.0
|
||||
{ version = "^1.7.0", optional = true, markers = "python_version < '3.10'" },
|
||||
{ version = ">=1.7.0,<2.0.0", optional = true, markers = "python_version >= '3.10'" },
|
||||
{ version = ">=1.7.0,<1.20.0", optional = true, markers = "python_version < '3.10'" },
|
||||
{ version = "^1.7.0", optional = true, markers = "python_version >= '3.10'" },
|
||||
]
|
||||
|
||||
transformers = [
|
||||
@ -149,6 +149,7 @@ torchvision = [
|
||||
]
|
||||
|
||||
[tool.poetry.extras]
|
||||
onnxtr = ["onnxtr"]
|
||||
tesserocr = ["tesserocr"]
|
||||
ocrmac = ["ocrmac"]
|
||||
vlm = ["transformers", "accelerate"]
|
||||
@ -193,6 +194,7 @@ module = [
|
||||
"docling_ibm_models.*",
|
||||
"easyocr.*",
|
||||
"ocrmac.*",
|
||||
"onnxtr.*",
|
||||
"mlx_vlm.*",
|
||||
"lxml.*",
|
||||
"huggingface_hub.*",
|
||||
|
Loading…
Reference in New Issue
Block a user