refactor(ocr): update OCR schema and response structure to use individual coordinates instead of bounding box, and adjust related service and repository files

This commit is contained in:
CoderKang 2025-06-02 22:26:49 +08:00 committed by mertalev
parent 46ef02342d
commit df36a09cd3
No known key found for this signature in database
GPG key ID: DF6ABC77AAD98C95
7 changed files with 66 additions and 34 deletions

View file

@ -90,7 +90,14 @@ FacialRecognitionOutput = list[DetectedFace]
class OCROutput(TypedDict):
text: str
confidence: float
boundingBox: BoundingBox
x1: int
y1: int
x2: int
y2: int
x3: int
y3: int
x4: int
y4: int
class PipelineEntry(TypedDict):