We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f04773c + d0e1928 commit 7daa730Copy full SHA for 7daa730
jigsawstack/vision.py
@@ -152,13 +152,31 @@ class VOCRParams(TypedDict):
152
page_range: NotRequired[List[int]]
153
154
155
+class Word(TypedDict):
156
+ text: str
157
+ bounds: BoundingBox
158
+ confidence: float
159
+
160
161
+class Line(TypedDict):
162
163
164
+ average_confidence: float
165
+ words: List[Word]
166
167
168
+class Section(TypedDict):
169
170
+ lines: List[Line]
171
172
173
class OCRResponse(BaseResponse):
174
context: str
175
width: int
176
height: int
177
tags: List[str]
178
has_text: bool
- sections: List[object]
179
+ sections: List[Section]
180
total_pages: Optional[int]
181
page_range: Optional[
182
List[int]
0 commit comments