mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00:00
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:
parent
46ef02342d
commit
df36a09cd3
7 changed files with 66 additions and 34 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue