Local vision · CPU / WASM
OCR& perception
51M · 22 MB · on-device
Choices, bounded counts, strings and box references
Give each answer a name and say what it can contain. Enter only the fields here; the app adds theformwrapper.
How to write a Mirage form
Try a photo of a road sign. ChooseSign type, thenAnalyze. UnderDecisions,signis the name you supplied and its value is the model’s choice. Edit the JSON and analyze again to ask different questions about the same photo.
{
"sign": { "enum": ["stop", "yield", "speed limit"] },
"location": { "x-source": "bbox", "x-of": "sign" },
"cars": { "type": "integer", "minimum": 0, "maximum": 8 },
"sign_text": { "type": "string" }
}- Choice
enumlists the possible answers. Use distinct labels that can be told apart from the image.- Box
x-ofnames an earlier choice field. The box is[left, top, right, bottom]on a 0–1000 scale for each image axis, not pixels.- Count
- Set both integer bounds, inclusive. Here
carscan return 0 through 8. - Text
stringasks for a short answer. For all the visible writing and its boxes instead, useDescribe image → Text.
In theJSONtab, readform.sign.valuefor the answer andform.sign.probabilitiesfor the choice scores."-"is the abstention option; anullchoice means no label was selected. Scores are estimates, so check the image when choices are close.
Detection settings
Choose, drop, or paste an image. Nothing is uploaded.
Source
Drop an image here
or paste from your clipboard