mirror of
https://github.com/DS4SD/docling.git
synced 2025-07-26 20:14:47 +00:00
fix(ocr): move bounding bow rotation util to orientation.py
Signed-off-by: Clément Doumouro <clement.doumouro@gmail.com>
This commit is contained in:
parent
389e2389e7
commit
c0f170bb72
@ -27,6 +27,7 @@ from docling.utils.ocr_utils import (
|
|||||||
parse_tesseract_orientation,
|
parse_tesseract_orientation,
|
||||||
tesseract_box_to_bounding_rectangle,
|
tesseract_box_to_bounding_rectangle,
|
||||||
)
|
)
|
||||||
|
from docling.utils.orientation import Box
|
||||||
from docling.utils.profiling import TimeRecorder
|
from docling.utils.profiling import TimeRecorder
|
||||||
|
|
||||||
_log = logging.getLogger(__name__)
|
_log = logging.getLogger(__name__)
|
||||||
|
@ -1,9 +1,12 @@
|
|||||||
from typing import Optional, Tuple
|
from typing import Optional
|
||||||
|
|
||||||
from docling_core.types.doc import BoundingBox, CoordOrigin
|
from docling_core.types.doc import BoundingBox, CoordOrigin
|
||||||
from docling_core.types.doc.page import BoundingRectangle
|
from docling_core.types.doc.page import BoundingRectangle
|
||||||
|
|
||||||
from docling.utils.orientation import CLIPPED_ORIENTATIONS, rotate_bounding_box
|
from docling.utils.orientation import (
|
||||||
|
CLIPPED_ORIENTATIONS,
|
||||||
|
rotate_bounding_box,
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
def map_tesseract_script(script: str) -> str:
|
def map_tesseract_script(script: str) -> str:
|
||||||
|
Loading…
Reference in New Issue
Block a user