Skip to content

Commit b72cb12

Browse files
Merge pull request #66 from JigsawStack/feat/object-detection-feature
typed now as object instead of object detection
2 parents c70c061 + 65902c4 commit b72cb12

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

jigsawstack/vision.py

Lines changed: 2 additions & 2 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]

tests/test_object_detection.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
"name": "with_blob_both_features",
5050
"blob": IMAGE_URL,
5151
"options": {
52-
"features": ["object_detection", "gui"],
52+
"features": ["object", "gui"],
5353
"annotated_image": True,
5454
"return_type": "url",
5555
},
@@ -63,7 +63,7 @@
6363
"name": "with_blob_object_detection_features",
6464
"blob": IMAGE_URL,
6565
"options": {
66-
"features": ["object_detection"],
66+
"features": ["object"],
6767
"annotated_image": True,
6868
"return_type": "base64",
6969
},
@@ -80,7 +80,7 @@
8080
"name": "with_all_options",
8181
"blob": IMAGE_URL,
8282
"options": {
83-
"features": ["object_detection", "gui"],
83+
"features": ["object", "gui"],
8484
"prompts": ["car", "road", "tree"],
8585
"annotated_image": True,
8686
"return_type": "base64",

0 commit comments

Comments
 (0)