locate_objects
Locate specified objects in an image by supplying its path and candidate labels. Uses zero-shot object detection to identify and return positions for each label.
Instructions
Detect, find and/or locate objects in the image found at image_path.
Args:
image_path: path to the image
candidate_labels: list of candidate object labels as strings
hf_model (optional): huggingface zero-shot object detection model (default = "google/owlvit-large-patch14")
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hf_model | No | ||
| image_path | Yes | ||
| candidate_labels | Yes |