paddleocr / app /utils.py
abhinavvvvv's picture
redeployment
a72da64
from pydantic import BaseModel
from typing import List
class OCRLine(BaseModel):
text: str
confidence: float
class OCRResponse(BaseModel):
lines: List[OCRLine]