Skip to content

Commit

Permalink
refactor: fix type of tesseractocr options (#140)
Browse files Browse the repository at this point in the history
Signed-off-by: Michele Dolfi <[email protected]>
  • Loading branch information
dolfim-ibm authored Oct 14, 2024
1 parent 4672b24 commit 2b1e72d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docling/models/tesseract_ocr_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@
import numpy

from docling.datamodel.base_models import BoundingBox, CoordOrigin, OcrCell, Page
from docling.datamodel.pipeline_options import TesseractCliOcrOptions
from docling.datamodel.pipeline_options import TesseractOcrOptions
from docling.models.base_ocr_model import BaseOcrModel

_log = logging.getLogger(__name__)


class TesseractOcrModel(BaseOcrModel):
def __init__(self, enabled: bool, options: TesseractCliOcrOptions):
def __init__(self, enabled: bool, options: TesseractOcrOptions):
super().__init__(enabled=enabled, options=options)
self.options: TesseractCliOcrOptions
self.options: TesseractOcrOptions

self.scale = 3 # multiplier for 72 dpi == 216 dpi.
self.reader = None
Expand Down

0 comments on commit 2b1e72d

Please sign in to comment.