Commit Graph

32 Commits

Author SHA1 Message Date
3af7a0f805 fix(roi-editor):修复 ROI 编辑器中时间段选择器(TimePicker.RangePicker)因连续调用两次状态更新导致的清空问题。
Some checks failed
Python Test / test (push) Has been cancelled
- 新增 `updateWorkingHoursRange` 批量更新函数,将 start/end 作为原子操作同步更新
- 在 onChange 回调中添加 `Array.isArray(dates) && dates.length >= 2` 类型校验
- 避免 React 异步 setState 冲突导致 workingHoursList 意外重置
2026-01-22 17:26:28 +08:00
cb46d12cfa fix:修复因数据库缺少 working_hours 列导致 ROI 配置失败的问题。
- 手动执行 SQL:ALTER TABLE rois ADD COLUMN working_hours TEXT
- 确保现有 SQLite 数据库(security_monitor.db)结构与模型定义一致
- 避免因字段缺失引发 API 或算法读取异常
2026-01-22 16:44:26 +08:00
123903950b refactor(model):移除版本不一致的模型engine文件 2026-01-22 15:55:30 +08:00
2d5ada2909 fix: 统一配置参数 2026-01-22 15:53:31 +08:00
6fc17ccf64 fix:修复参数顺序错误、ROI 匹配失效、状态机缺失 INIT 状态
Some checks failed
Python Test / test (push) Has been cancelled
- 调整 process() 函数参数顺序,确保 roi_id 和 camera_id 正确对应
- 重构 ROI 匹配逻辑,使用明确的 roi_id 进行区域归属判断
- 引入 INIT 状态:启动时若 ROI 无人,先进入 INIT,
  经 off_duty_confirm_sec 确认后才进入 OFF_DUTY 倒计时
2026-01-22 15:08:28 +08:00
6116f0b982 fix:修复 ROI 多边形未传递及空 ROI 判断逻辑错误导致的离岗告警失效问题。
根本原因:
1. pipeline.py 中调用 register_algorithm 时未传入 roi_polygon,导致算法内 roi_polygon 为空
2. is_point_in_roi 函数在 roi_polygon 为空或点数 <3 时错误返回 True,使系统误判“有人在岗”
3. 因此即使 ROI 内无人,算法也永远不会进入离岗倒计时

修复措施:
- 在注册算法时正确传递 ROI 多边形坐标
- 修正 is_point_in_roi:当 ROI 无效时应返回 False(无人)
- 确保无检测框时仍能触发状态机超时逻辑
2026-01-22 13:34:04 +08:00
20f295a491 修复 ROI 区域内人员离开十几分钟未触发告警的问题。
Some checks failed
Python Test / test (push) Has been cancelled
1. 仍在 confirm_sec 滑动窗口内(未完成确认)
2. threshold_sec 阈值设置过长(需检查数据库实际配置值)
3. 新算法未被正确调用
2026-01-22 12:22:26 +08:00
cc4f33c0fd refactor:移除 LeavePostAlgorithm,改用 ROI 区域入侵检测
-修复sort导入问题
2026-01-22 11:43:40 +08:00
2e9bf2b50c ci: add Gitea Actions for Python 2026-01-22 11:35:02 +08:00
248a240524 ci: add drone pipeline for python tests 2026-01-22 11:23:12 +08:00
10b9fb1804 refactor:使用状态机优化离岗检测逻辑,并移除排序相关算法 2026-01-22 11:03:01 +08:00
1a94854c52 chore:删除无关原始算法 Python 文件 2026-01-22 10:57:19 +08:00
13afc654ab fix(timezone):修复触发告警记录的时间混乱问题 2026-01-22 09:08:44 +08:00
804c6a60e9 fix(alarm): update alarm status endpoint to accept JSON body 2026-01-21 17:50:19 +08:00
20634c2ad4 fix(dashboard): align camera status field with backend API response 2026-01-21 17:13:05 +08:00
46ee360d46 fix(api): update camera creation endpoint to accept JSON body 2026-01-21 17:03:59 +08:00
6712a311f8 fix(camera): resolve camera status display issue 2026-01-21 16:06:39 +08:00
294b0e1abb feat(alarm): add alarm snapshot viewing functionality 2026-01-21 15:16:25 +08:00
1c7190bbb0 fix(inference): resolve multiple YOLO inference and API issues 2026-01-21 14:48:01 +08:00
1b344aeb2e feat(db): add missing columns for cloud sync and alarm region data 2026-01-21 13:49:01 +08:00
2c00b5afe3 生成新engine 2026-01-21 13:29:39 +08:00
e965b10603 配置修改 2026-01-21 13:29:00 +08:00
1e562798eb 更新TensorRT 2026-01-21 13:28:42 +08:00
f9c7f9018e Merge remote-tracking branch 'origin/master'
# Conflicts:
#	frontend/src/main.tsx
2026-01-20 18:27:35 +08:00
7552cf86c3 ROI选区01 2026-01-20 18:26:49 +08:00
feba269e58 ROI选区01 2026-01-20 17:46:32 +08:00
f39f59be94 ROI选区01 2026-01-20 17:45:02 +08:00
604ef82ffb ROI选区01 2026-01-20 17:42:18 +08:00
232a3827d4 prompt优化、ROI更新 2026-01-20 11:39:23 +08:00
35a1d1ae50 . 2026-01-14 17:12:16 +08:00
1724b329ea . 2026-01-12 17:56:44 +08:00
ad6282c6d5 Initial commit 2026-01-12 17:38:39 +08:00