You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: jigsawstack/vision.py
+6-2Lines changed: 6 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -154,17 +154,21 @@ class VOCRParams(TypedDict):
154
154
"""
155
155
High fidelity word-level bounding boxes within complex documents. Default: false.
156
156
"""
157
+
return_bounds: NotRequired[bool]
158
+
"""
159
+
Include line and word level bounding box coordinates. When false, the coordinates are omitted but the text and confidence are still returned. Default: true.
160
+
"""
157
161
158
162
159
163
classWord(TypedDict):
160
164
text: str
161
-
bounds: BoundingBox
165
+
bounds: NotRequired[BoundingBox] # omitted when return_bounds is false
162
166
confidence: float
163
167
164
168
165
169
classLine(TypedDict):
166
170
text: str
167
-
bounds: BoundingBox
171
+
bounds: NotRequired[BoundingBox] # omitted when return_bounds is false
0 commit comments