Commit Graph

63 Commits

Author SHA1 Message Date
816a67f33e feat: SQLite 添加设备配置表
- 新增 camera_configs 表(摄像头配置,永不删除)
- 新增 roi_configs 表(ROI配置,永不删除)
- 添加配置表的增删改查方法
- 只清理 alert_records 表(7天过期)
2026-01-30 11:42:12 +08:00
ccb49e9eb9 chore: 忽略 data/ 目录
- 添加 data/ 和 captures/ 到 gitignore
- SQLite 数据库和抓拍图片不随代码提交
2026-01-30 11:35:45 +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
6dc3442cc2 fix: 添加资源释放幂等保护
- 添加 _released 标志防止重复释放
- release() 方法支持幂等调用
2026-01-30 10:48:28 +08:00
b67bda8042 fix: 修复 Python TensorRT 资源释放
- 移除不存在的 .destroy() 方法调用
- Python TensorRT 由 GC 管理,= None 即释放
2026-01-30 10:39:02 +08:00
bcabe65984 chore: 忽略说明文档
- 忽略 *.md、CHANGELOG.md、README.md
- 保留 requirements.txt
2026-01-30 10:14:16 +08:00
02c30d7461 chore: 更新 .gitignore 规则
- 忽略 __pycache__/、*.pyc 等 Python 缓存
- 忽略 .trae/ AI 临时文件
- 忽略 logs/ 日志目录
- 忽略 models/*.onnx 中间产物
- 保留 CHANGELOG.md、build_engine.py 等核心文件
2026-01-30 10:12:09 +08:00
a6130b5102 fix: 修复动态维度内存分配错误
- 处理 TensorRT 引擎的负维度 (-1)
- 将动态 Batch 维度替换为最小值 1
2026-01-30 09:20:05 +08:00
8bbf485f71 fix: 移除无用的 yolo11n.onnx 2026-01-29 18:56:56 +08:00
ab8fa80fba fix: 移除已废弃的 BENCHMARK flag
- BENCHMARK flag 在 TRT 8.5+ 已废弃
- tactic profiling 逻辑内部自动完成
2026-01-29 18:54:26 +08:00
4103b503db fix: 修复 tactic_sources 参数解析错误
- 支持数值格式 (+7) 和名称格式 (+CUBLAS,+CUDNN)
- 添加 tactic_values 常量说明文档
2026-01-29 18:48:27 +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
6733344b11 初始化边缘推理服务 2026-01-29 18:33:12 +08:00