The NLP (Natural Language Processing) mode allows you to describe what you want to detect using natural language instead of manually selecting YOLO class names.
| Natural Language Prompt | Mapped YOLO Classes |
|---|---|
| "Find things you can drink from" | cup, bottle, wine glass |
| "Find people" | person |
| "Find electronics" | tv, laptop, cell phone, remote, keyboard, mouse, hair drier |
| "Find all furniture" | chair, couch, bed, dining table |
| "Find sharp objects" | knife, scissors |
| "Find kitchen appliances" | microwave, oven, toaster, refrigerator |
-
Open Configuration
- Click the gear icon (⚙️) in the top right corner
-
Go to NLP Tab
- Click on the "NLP" tab in the configuration modal
-
Enable NLP Mode
- Check the "Enable NLP Mode" checkbox
-
Enter Your Prompt
- Type your natural language description in the text area
- Example: "Find things you can drink from"
-
Test Your Prompt
⚠️ IMPORTANT- Click the "Test NLP" button
- This will show you which YOLO classes your prompt maps to
- Review the mapped classes to ensure they match your intent
-
Save Configuration
⚠️ CRITICAL STEP- Click "Save NLP Config" or "Save All Configuration"
- The detection will NOT update until you save!
-
Restart Detection (if running)
- If detection is already running, stop and restart it
- The new NLP mapping will be applied
Solution: You probably didn't click the Save button!
- Update your NLP prompt
- Click "Test NLP" to verify the mapping
- Click "Save NLP Config" to apply the changes
- If detection is running, stop and restart it
Solution: The detector needs to be reloaded after saving.
- After saving, stop the current detection
- Start detection again
- The new NLP mapping should now be active
- NLP Engine: Uses OpenAI GPT-4o-mini for intelligent class mapping
- Available Classes: 80 COCO classes (person, car, cup, etc.)
- API Requirements: Requires valid OpenAI API key
- Mapping Logic:
- Analyzes your natural language prompt
- Identifies relevant YOLO classes from the 80 available classes
- Returns only classes that genuinely match your intent
- Excludes unrelated classes (e.g., "electronics" won't include "sink")
Tested on 2025-10-19:
✅ "Find things you can drink from" → ["cup", "bottle", "wine glass"]
✅ "Find people" → ["person"]
✅ "Find electronics" → ["tv", "laptop", "cell phone", "remote", "keyboard", "mouse", "hair drier"]
All mappings are accurate and working correctly!