Commit Graph

1 Commits

Author SHA1 Message Date
Isaac Connor
119fe3a1fd feat: add AI models database schema and management UI
Add infrastructure for managing AI object detection models, datasets,
and classes in ZoneMinder.

Database schema (db/AI_Models.sql):
- AI_Datasets: Dataset registry (COCO, ImageNet, etc.)
- AI_Models: Model implementations with framework support
- AI_Object_Classes: Object classes indexed by dataset
- AI_Detection_Settings: Per-monitor detection configuration
- AI_Detections: Detection results with bounding boxes

Pre-populated data (db/coco_dataset.sql):
- COCO 2017 dataset with all 80 object classes
- Default detection settings for person and vehicles

Web UI in Options menu:
- AI Datasets tab: Manage datasets
- AI Models tab: Manage models with framework selection
- AI Classes tab: Manage object classes with dataset filtering
- Modal editors for CRUD operations
- Action handlers with canEdit('System') permission checks

Based on PR #4499.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-12 14:43:13 -05:00