Overview
The quality of your conditions directly impacts detection accuracy. This guide covers how to write conditions that work well with vision models.The Golden Rule: Yes/No Questions
Your condition must be a yes/no question. The VLM will answer “yes” or “no” based on what it sees in the frame. ✅ Good (yes/no questions):- “Is it snowing?”
- “Are there people visible?”
- “Is there a traffic accident?”
- “Is the street wet?”
- “How many cars are visible?” (counting)
- “Describe the weather” (descriptive)
- “What color is the sky?” (open-ended)
Write with Context
Add details about what you’re looking for. The more specific, the better:❌ Too Vague
✅ Better
More Examples
Weather Monitoring
Traffic Monitoring
Crowd & Activity
Security
Context Matters
Add specifics about the location or scenario:Testing Your Condition
Use Check Once to test conditions before starting a full Live Monitor job:- If
explanationmakes sense → condition is good - If explanation seems off-topic → refine your condition
Common Mistakes
1. Assuming VLM Knows Your Domain
❌ “Is the status light green?” ✅ “Is the status indicator light displaying green color?“2. Relying on Color Alone
❌ “Is the car red?” ✅ “Is there a red car visible? Look for a vehicle with red coloring.”3. Negation
❌ “Is the lot not empty?” ✅ “Are there people visible in the lot?” Positive conditions work better than negations.4. Multiple Conditions in One
❌ “Are there accidents or delays?” ✅ Just pick one: “Is there a traffic accident?“5. Assuming Real-Time Knowledge
❌ “Has it been snowing for more than 30 minutes?” ✅ “Is it currently snowing?” VLMs see one frame at a time, not time series.Refining Over Time
Start broad, then refine:- Initial: “Is there snow?”
- After testing: “Is there snow? Look for white precipitation.”
- After running: “Is it actively snowing? Look for falling snowflakes, not just snow on ground.”
Related Endpoints
- Check Once - Test conditions before starting jobs
- Live Monitor - Start continuous monitoring with your condition
- Live Digest - Summarize stream content