Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions jigsawstack/vision.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,9 @@ class ObjectDetectionParams(TypedDict):
List of prompts for object detection
"""

features: NotRequired[List[Literal["object_detection", "gui"]]]
features: NotRequired[List[Literal["object", "gui"]]]
"""
List of features to enable: object_detection, gui
List of features to enable: object, gui
"""

annotated_image: NotRequired[bool]
Expand Down
6 changes: 3 additions & 3 deletions tests/test_object_detection.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"name": "with_blob_both_features",
"blob": IMAGE_URL,
"options": {
"features": ["object_detection", "gui"],
"features": ["object", "gui"],
"annotated_image": True,
"return_type": "url",
},
Expand All @@ -63,7 +63,7 @@
"name": "with_blob_object_detection_features",
"blob": IMAGE_URL,
"options": {
"features": ["object_detection"],
"features": ["object"],
"annotated_image": True,
"return_type": "base64",
},
Expand All @@ -80,7 +80,7 @@
"name": "with_all_options",
"blob": IMAGE_URL,
"options": {
"features": ["object_detection", "gui"],
"features": ["object", "gui"],
"prompts": ["car", "road", "tree"],
"annotated_image": True,
"return_type": "base64",
Expand Down