Skip to content

Commit

Permalink
Swap over to tesseract for frontend requests
Browse files Browse the repository at this point in the history
  • Loading branch information
jonchang committed Dec 6, 2024
1 parent e504858 commit 9a55dac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions OCR/ocr/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from fastapi import FastAPI, UploadFile, Form, HTTPException
from fastapi.middleware.cors import CORSMiddleware

from ocr.services.image_ocr import ImageOCR
from ocr.services.tesseract_ocr import TesseractOCR
from ocr.services.alignment import ImageAligner
from ocr.services.image_segmenter import ImageSegmenter, segment_by_color_bounding_box

Expand All @@ -31,7 +31,7 @@
segmenter = ImageSegmenter(
segmentation_function=segment_by_color_bounding_box,
)
ocr = ImageOCR()
ocr = TesseractOCR()


def data_uri_to_image(data_uri: str):
Expand Down

0 comments on commit 9a55dac

Please sign in to comment.