a49a1be0eb
fix(edge): 云端Redis默认db改为1,配置更新回调支持所有同步模式
...
- CloudRedisConfig.db 默认值从0改为1,与部署环境一致
- 配置更新回调不再限制为LOCAL模式,REDIS模式也支持动态热更新
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-02-28 15:48:18 +08:00
a38d599544
fix(config): 修改设备ID默认值为default - 匹配云端配置
...
- device_id: edge → default
- 修复云端推送空配置的问题
- 云端摄像头配置的device_id都是default,需要匹配
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-02-14 12:05:45 +08:00
2c074f064d
revert(inference): 恢复置信度阈值到0.4
...
- conf_threshold: 0.5 → 0.4 (恢复原值)
- 未经用户授权的修改已回退
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-02-14 11:31:23 +08:00
0bb9f7ebd2
feat(inference): 提高置信度阈值到0.5 - 减少误检
...
- conf_threshold: 0.4 → 0.5
- 提高检测精度,减少误报
- 同时更新环境变量默认值
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-02-14 11:13:45 +08:00
abcd40f88b
fix(aiot): 降低YOLO置信度阈值(0.5→0.4)减少离岗误报
...
人员在岗但检测置信度低于0.5被过滤,导致算法误判"无人"触发离岗告警。
将默认阈值降至0.4,同步更新环境变量默认值。
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com >
2026-02-11 17:54:48 +08:00
181623428a
feat(aiot): 告警冷却时间调整 + 截图本地保留 + 中文路径修复
...
- 离岗检测冷却时间: 300s → 600s(10分钟)
- 入侵检测冷却时间: 120s → 300s(5分钟)
- 入侵告警级别改为高(alarm_level=3)
- COS 不可用时保留本地截图文件,不再上报后删除
- 修复 cv2.imwrite 中文路径失败,改用 imencode + write_bytes
- 配置订阅在 LOCAL 模式下跳过 Redis 连接
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-02-11 09:57:02 +08:00
0191e498f1
feat: 告警HTTP上报 + 日志精简 + 边缘节点统一为edge
...
- 新增 alarm_upload_worker.py 异步告警上报(COS+HTTP)
- result_reporter 重构为Redis队列模式
- config_sync 适配WVP直推的聚合配置格式
- settings 默认 EDGE_DEVICE_ID 改为 edge
- 日志设置非告警模块为WARNING级别减少噪音
- main.py 集成新的告警上报流程
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-02-10 15:21:45 +08:00
ff3d6e2653
fix: 修复告警上报字段缺失和 MQTT 连接不稳定
...
- AlertInfo.to_dict() 补充 bind_id、device_id、algorithm 字段
- AlertInfo 新增 device_id 和 algorithm 属性
- MQTTConfig 新增 device_id 配置项(环境变量 EDGE_DEVICE_ID)
- main.py 创建 AlertInfo 时传入 device_id 和 algorithm
- 心跳上报使用配置的 device_id 代替硬编码字符串
- MQTT 协议从 MQTTv5 降级为 MQTTv311 提高兼容性
- MQTT client_id 添加随机后缀防止冲突
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-02-09 14:13:49 +08:00
c17f983ab3
perf: batch=1 优化减少延迟
...
- settings: batch_size=41
- tensorrt_engine: BATCH_SIZE=41
- preprocessor: 移除 padding 逻辑,直接 batch=1
- 预处理延迟从 17ms 5ms
2026-02-02 15:25:13 +08:00
745cadc8e7
feat: TensorRT 固定 batch=4 重构
...
- tensorrt_engine.py 工业级 Buffer Pool
- preprocessor.py 添加 pad_to_batch4()
- postprocessor.py 支持批量输出
- settings.py 固定 batch_size=4
2026-02-02 14:49:47 +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