Image examples
OpenDecision uses SigLIP2 to match images against candidate captions. The examples below show the supplied captions, returned answers, and composed actions.
These 11 photos were tested with the image API. Each table shows the statement or question and the returned answer.
Image API and setup ยท Run the image demo
Times are medians of five local HTTP calls on an Apple M3 with the model loaded. Each time includes all questions listed for that photo. Measurement details.
Results
Wildlife alert
API call: 316 ms for 2 questions.

| Statement or question | Returned answer |
|---|---|
| An animal is visible in the image. | Yes |
| What kind of animal is visible? | bear |
Rule: animal_present is true and animal_type equals bear.
Returned action: sound_alarm. The action is simulated.
Captions and returned scores
animal_present (noul)
true: An animal is visible in the image.false: A scene without any animals.
animal_type (choice)
cat: A photo of a cat.dog: A photo of a dog.coyote: A photo of a coyote.bear: A photo of a bear.other_animal: A photo of another kind of animal.no_animal: A landscape without any animals.
Bin collection
API call: 240 ms for 3 questions.

| Statement or question | Returned answer |
|---|---|
| A photo of a trash bin. | Yes |
| What condition is the bin in? | overflowing |
| Rubbish scattered across the floor around a bin. | Yes |
Rule: bin_present is true and bin_condition equals overflowing.
Returned action: request_collection. The action is simulated.
Captions and returned scores
bin_present (noul)
true: A photo of a trash bin.false: A photo of an empty room.
bin_condition (choice)
empty: An empty trash bin.contained: A trash bin holding rubbish neatly inside.overflowing: A trash bin overflowing with rubbish piled on top and spilling onto the floor.
{
"type": "choice",
"choice": "overflowing",
"probabilities": {
"empty": 0.02629130892455578,
"contained": 0.27365437150001526,
"overflowing": 0.7000542879104614
},
"confidence": 0.3629010822262866
}
ground_litter (noul)
true: Rubbish scattered across the floor around a bin.false: A clean and tidy floor around a bin.
Fence repair
API call: 266 ms for 3 questions.

| Statement or question | Returned answer |
|---|---|
| A photo of a metal fence. | Yes |
| What condition is the fence in? | damaged |
| What material is the fence made of? | other |
Rule: fence_present is true and fence_condition equals damaged.
Returned action: create_repair_task. The action is simulated.
Captions and returned scores
fence_present (noul)
true: A photo of a metal fence.false: A photo of plants in a forest.
fence_condition (choice)
intact: A straight upright metal fence in good condition.damaged: A bent and collapsed metal fence leaning over in vegetation.unclear: A fence mostly hidden behind plants, with its condition unclear.
{
"type": "choice",
"choice": "damaged",
"probabilities": {
"intact": 6.503957411041483e-05,
"damaged": 0.9995725750923157,
"unclear": 0.00036233218270353973
},
"confidence": 0.9964272309629573
}
fence_material (choice)
metal: A metal fence made of iron bars.wood: A wooden fence made of boards.wire_mesh: A fence made of flexible wire mesh.other: A fence made of another material.
Bird in the woods
API call: 317 ms for 4 questions.

| Statement or question | Returned answer |
|---|---|
| A bird is visible in the image. | Yes |
| An eagle is visible in the image. | Yes |
| A person is visible in the image. | No |
| What kind of bird is visible? | other_bird |
Captions and returned scores
bird_present (noul)
true: A bird is visible in the image.false: A scene without any birds.
eagle_present (noul)
true: An eagle is visible in the image.false: A scene without an eagle.
human_present (noul)
true: A person is visible in the image.false: A wild bird among trees in a forest.
bird_kind (choice)
eagle: A photo of an eagle.hawk: A photo of a hawk.owl: A photo of an owl.other_bird: A photo of another bird.no_bird: A scene without birds.
Moon in the sky
API call: 233 ms for 3 questions.

| Statement or question | Returned answer |
|---|---|
| Which celestial object is visible? | moon |
| An airplane is visible in the sky. | Yes |
| A tree is visible in the image. | Yes |
Captions and returned scores
sky_object (choice)
moon: The moon visible in a blue sky.sun: The sun visible in a blue sky.neither: A blue sky without the moon or sun visible.
{
"type": "choice",
"choice": "moon",
"probabilities": {
"moon": 0.7818400859832764,
"sun": 0.17475949227809906,
"neither": 0.04340038076043129
},
"confidence": 0.4234408001266272
}
plane_present (noul)
true: An airplane is visible in the sky.false: Sky with no airplane visible.
tree_present (noul)
true: A tree is visible in the image.false: A scene without any trees.
Cat on a patio
API call: 234 ms for 3 questions.

| Statement or question | Returned answer |
|---|---|
| A cat is visible in the image. | Yes |
| How many cats are visible? | one |
| A cat is sleeping or napping. | No |
Captions and returned scores
cat_present (noul)
true: A cat is visible in the image.false: A scene without any cats.
cat_count (choice)
zero: A scene with no cats.one: A photo of one cat.multiple: A photo of two or more cats.
{
"type": "choice",
"choice": "one",
"probabilities": {
"zero": 0.055449433624744415,
"one": 0.7995275855064392,
"multiple": 0.14502301812171936
},
"confidence": 0.4363100113079119
}
cat_napping (noul)
true: A cat is sleeping or napping.false: A cat is awake, sitting upright and looking around.
Bread on a cooling rack
API call: 85 ms for 1 question.

| Statement or question | Returned answer |
|---|---|
| How many loaves of bread are visible? | one |
Captions and returned scores
bread_count (choice)
zero: A scene without bread.one: One loaf of bread on a cooling rack.multiple: Two or more loaves of bread on a cooling rack.
Water in the woods
API call: 233 ms for 3 questions.

| Statement or question | Returned answer |
|---|---|
| A backyard is flooded with standing water. | Yes |
| A shallow stream of water running through a wooded area. | Yes |
| What best describes the water scene? | wooded_creek |
Captions and returned scores
backyard_flooded (noul)
true: A backyard is flooded with standing water.false: A backyard is dry and free of standing water.
water_present (noul)
true: A shallow stream of water running through a wooded area.false: A dry forest floor covered in plants and fallen branches.
water_scene (choice)
flooded_yard: A backyard flooded with water covering the lawn.wooded_creek: A creek or stream running through a wooded area.dry_yard: A dry backyard without water on the ground.
Animals on a patio
API call: 514 ms for 5 questions.

| Statement or question | Returned answer |
|---|---|
| How many animals are visible? | one |
| A photo of a bear. | No |
| A photo of a coyote. | No |
| An animal is visible in the image. | Yes |
| What kind of animal is visible? | cat |
Rule: animal_present is true and animal_type equals bear.
Returned action: no_alarm. The action is simulated.
Captions and returned scores
animal_count (choice)
zero: An outdoor scene without animals.one: One animal on a patio.multiple: Several animals together on a patio.
{
"type": "choice",
"choice": "one",
"probabilities": {
"zero": 0.04124877601861954,
"one": 0.7521222233772278,
"multiple": 0.2066289633512497
},
"confidence": 0.3887085165327596
}
bear_present (noul)
true: A photo of a bear.false: A photo of a cat.
coyote_present (noul)
true: A photo of a coyote.false: A photo of a cat.
animal_present (noul)
true: An animal is visible in the image.false: A scene without any animals.
animal_type (choice)
cat: A photo of a cat.dog: A photo of a dog.coyote: A photo of a coyote.bear: A photo of a bear.other_animal: A photo of another kind of animal.no_animal: A landscape without any animals.
Weather and parked cars
API call: 191 ms for 2 questions.

| Statement or question | Returned answer |
|---|---|
| What weather is visible? | sunny |
| How many parked cars are visible? | two |
Captions and returned scores
weather (choice)
sunny: A sunny day with a clear blue sky.rainy: A rainy day with rain falling.cloudy: An overcast day with gray clouds.night: A dark nighttime scene.
{
"type": "choice",
"choice": "sunny",
"probabilities": {
"sunny": 0.9859010577201843,
"rainy": 0.002233620034530759,
"cloudy": 0.009337893687188625,
"night": 0.0025274145882576704
},
"confidence": 0.9376820523920272
}
parked_car_count (choice)
zero: A driveway with no parked cars.one: A driveway with one parked car.two: A driveway with two parked cars.three_or_more: A driveway with three or more parked cars.
Cat at a window
API call: 180 ms for 2 questions.

| Statement or question | Returned answer |
|---|---|
| A cat is visible in the image. | Yes |
| Where is the cat looking? | window |
Captions and returned scores
cat_present (noul)
true: A cat is visible in the image.false: A scene without any cats.
cat_gaze (choice)
camera: A cat facing and looking directly at the camera.window: A cat looking out of a window, shown in profile.elsewhere: A cat looking elsewhere inside the room.
Notes from these examples
- The surveillance photo contains multiple animals. The model returned
one. - The damaged fence is metal. The material question returned
other. - The car-count question returned
twowith a winning probability of 0.304. - The bird species has not been verified. Contrails are visible in the sky photo. The usual water level in the wooded channel is unknown.
- Negated captions produced false positives during testing. Concrete alternatives improved several results.
The rules use a Noul threshold of 0.5 and require a winning Choice probability of at least 0.6. Missing or weak answers produce an unknown rule status. Scores are uncalibrated.