Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c4fb461

Browse files
committed
typed now as object instead of object detection
1 parent c70c061 commit c4fb461

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

jigsawstack/vision.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,9 @@ class ObjectDetectionParams(TypedDict):
102102
List of prompts for object detection
103103
"""
104104

105-
features: NotRequired[List[Literal["object_detection", "gui"]]]
105+
features: NotRequired[List[Literal["object", "gui"]]]
106106
"""
107-
List of features to enable: object_detection, gui
107+
List of features to enable: object, gui
108108
"""
109109

110110
annotated_image: NotRequired[bool]
@@ -215,7 +215,9 @@ def vocr(
215215
return resp
216216

217217
@overload
218-
def object_detection(self, params: ObjectDetectionParams) -> ObjectDetectionResponse: ...
218+
def object_detection(
219+
self, params: ObjectDetectionParams
220+
) -> ObjectDetectionResponse: ...
219221
@overload
220222
def object_detection(
221223
self, blob: bytes, options: ObjectDetectionParams = None
@@ -295,7 +297,9 @@ async def vocr(
295297
return resp
296298

297299
@overload
298-
async def object_detection(self, params: ObjectDetectionParams) -> ObjectDetectionResponse: ...
300+
async def object_detection(
301+
self, params: ObjectDetectionParams
302+
) -> ObjectDetectionResponse: ...
299303
@overload
300304
async def object_detection(
301305
self, blob: bytes, options: ObjectDetectionParams = None

0 commit comments

Comments
 (0)