Every significant activity is now automatically recorded to the database. No manual logging needed!
What Gets Logged:
- ✅ Face Detections - When a known face appears on camera
- ✅ PTZ Movements - When the camera automatically turns to track someone
- ✅ Tracking State Changes - When you start/stop tracking a person
Smart Deduplication:
- Repeated detections of the same person don't spam the database
- Each unique person + confidence combo logs once
- PTZ movements log when direction changes
To Access Event Logs:
- Click the "Recorded Library" tab in the main window
- All events are automatically listed with timestamps
- Search by person name, camera, or event type
- Click an event to see full details
Facial recognition is now smarter - it only accepts high-confidence face matches, reducing false positives.
How It Works:
- Default threshold: 0.6 (60% confidence minimum)
- Only faces matching above this threshold are recognized
- Low-confidence faces show as "Unknown"
- Much fewer false alarms!
What You'll Notice:
- Video feed shows only high-confidence faces with names
- "Unknown" faces are displayed but not tracked/logged
- Event log only shows events for recognized people
- Much cleaner and more reliable system
The Recorded Library is now a complete event analysis tool with search, filters, and statistics.
Features:
- Split-Pane View: Event list on left, details on right
- Dynamic Filters: Automatically populated from your data
- Full-Text Search: Search events by any keyword
- Camera Filter: Show only events from specific camera
- Event Type Filter: Show only specific event types
- Live Statistics: See counts of each event type
- Auto-Refresh: Filters update as new events are recorded
How to Use:
- Open "Recorded Library" tab
- (Optional) Filter by camera or event type
- (Optional) Search for keywords (person name, notes, etc.)
- Click any event to see full details
- Check "Event Statistics" pane to see summary counts
- Launch the app
- Add a camera (Network > Auto Scan or Manual Add)
- Run AI Setup Wizard
- Train facial recognition with known faces
- Select a camera in the main grid
- Select a known face from the trained faces
- Click "Enable Tracking" checkbox
- Watch the camera stream - the system automatically tracks the face!
- Click the "Recorded Library" tab
- Events automatically appear as they happen
- You'll see:
- Face detections (when person appears)
- Tracking events (when tracking starts/stops)
- PTZ movements (when camera turns to follow)
- In Recorded Library, use filters to narrow down events
- Click an event to see:
- Exact timestamp
- Which camera
- What type of event
- Person name and confidence score
- Any additional notes
- Check statistics to see patterns
- Open Recorded Library
- Type person's name in Search box → Hit Enter
- All events for that person appear
- View details of any event for more info
- Open Recorded Library
- Select camera from Camera filter dropdown
- See only events from that specific camera
- Statistics update to show breakdown for that camera
- Open Recorded Library
- Select "ptz_movement" from Event Type filter
- See all automatic PTZ movements recorded
- Each entry shows direction and speed used
- Open Recorded Library
- Select "face_detection" from Event Type filter
- Note the confidence scores in the details pane
- Higher scores = more reliable detections
Current default is 0.6 (60% confidence minimum). To change:
Option 1: Code Change (Permanent)
Edit views/widgets/camera_widget.py:
self.facial_recognition = FacialRecognition(
self.facial_recognition_queue,
self.objectName(),
confidence_threshold=0.7 # Change this value (0.0-1.0)
)Option 2: UI Settings (Coming Soon) In upcoming release, confidence will be configurable in:
- Settings > Facial Recognition > Confidence Threshold
- 0.9-1.0: Excellent match, very reliable
- 0.7-0.9: Good match, reliable
- 0.6-0.7: Moderate match, acceptable
- < 0.6: Poor match, treated as "Unknown" (default)
A:
- Make sure facial recognition is enabled
- Make sure at least one face is trained
- Make sure a camera is visible/active
- Face must be above confidence threshold (default 0.6) to log
- Click "Refresh" button to reload from database
A:
- This is normal - only high-confidence matches create events
- Lower-quality camera streams will show more "Unknown"
- Train more face variations with different lighting
- Improve camera positioning for better angles
A:
- Click "Refresh" button in Recorded Library to reload
- Check that tracking is enabled for desired person
- Check that person is actually visible in camera feed
- Look at video - verify face is being detected
A: Current events: face_detection, ptz_movement, tracking_started/stopped
- Future versions will support custom events
- Contact dev team to request additional event types
The right side of Recorded Library shows:
Event Type Statistics:
• face_detection: 24 events
• ptz_movement: 18 events
• tracking_started: 3 events
• tracking_stopped: 3 events
Total Events: 48
This helps you understand:
- What types of events are most common
- System activity patterns
- When to expect detections
- System utilization
- High face_detection count = Active monitoring working well
- ptz_movement count = ~2x face_detection = Good PTZ responsiveness
- Multiple tracking_started events = Manual adjustments happening
- Large time gaps = Camera down or person absent
- If few detections: Improve camera angle or lighting
- If many "Unknown": Train more face variations
- If PTZ moves too much: Increase safe zone in settings
- If nothing logs: Check tracking is enabled
All events are stored in SQLite database at:
~/.autoptz/data/recordings.db
Or from project root:
d:\aistalker\recordings.db (if local)
You can query directly with any SQLite tool:
SELECT * FROM records
WHERE event_type = 'face_detection'
AND person_name != 'Unknown'
ORDER BY timestamp DESC
LIMIT 100;- App launches without errors
- Camera feed shows video
- Facial recognition detects faces
- Tracking can be enabled
- Recorded Library tab shows events
- Search/filter works in Recorded Library
- Event details appear when clicking an event
- Statistics pane shows event counts
If all items are checked ✅, you're fully set up!
- Check the terminal output for error messages
- Review TROUBLESHOOTING section above
- Check that all dependencies are installed
- Make sure camera has network connectivity
- Verify trained faces are in database
For persistent issues, check:
~/.autoptz/.envfile is properly configured~/.autoptz/data/directory exists and is writable- Camera registry at
~/.autoptz/data/camera_registry.dbis healthy
All features are production-ready and fully tested! Enjoy your enhanced AI-Stalker system. 🎉