f90ff60f6c
feat: 添加离岗时长记录
...
- alert_records 添加 duration_minutes 字段
- AlgorithmManager 输出 duration_minutes
- AlertRecord 添加 duration_minutes 字段
2026-01-30 17:26:12 +08:00
101b26fc95
feat: 实现配置热更新机制
...
数据库扩展:
- roi_configs 新增算法参数字段(working_hours, confirm_on_duty_sec等)
- 新增 config_update_log 表记录配置变更日志
Redis缓存:
- ROI/摄像头配置缓存到 Redis(TTL 1小时)
- sync_all_to_redis() 批量同步配置
- notify_config_change() 发布配置变更通知
热更新:
- AlgorithmManager 订阅 Redis config_update 频道
- load_from_redis() 从 Redis 加载算法参数
- reload_algorithm() 热更新单个算法
- reload_all_algorithms() 重新加载所有算法
配置模型:
- ROIInfo 添加算法参数字段
2026-01-30 13:51:58 +08:00
816a67f33e
feat: SQLite 添加设备配置表
...
- 新增 camera_configs 表(摄像头配置,永不删除)
- 新增 roi_configs 表(ROI配置,永不删除)
- 添加配置表的增删改查方法
- 只清理 alert_records 表(7天过期)
2026-01-30 11:42:12 +08:00
ccb021677c
feat: 重构存储策略为 SQLite
...
- 新增 config/database.py: SQLite 数据库管理器
- WAL 模式提升写入性能
- 异步批量写入队列
- 滚动清理机制(保留7天)
- 新增 core/storage_manager.py: 图片存储管理
- 异步保存抓拍图片
- 本地缓存断网容灾
- 按日期分目录存储
- 更新 config/settings.py: 添加 SQLite 配置
- SQLiteConfig 数据类
- 环境变量支持
- 更新 core/result_reporter.py: 适配新存储
- 使用 SQLite 替代 MySQL
- AlertInfo 数据类重构
- 断网自动缓存到本地
2026-01-30 11:34:51 +08:00
b0ddb6ee1a
feat(project): move edge_inference_service contents to root and update paths
...
- Moved all project files and directories (config, core, models, etc.) from
edge_inference_service/ to the repository root ai_edge/
- Updated model path in config/settings.py to reflect new structure
- Revised usage paths in __init__.py documentation
2026-01-29 18:43:19 +08:00