feat: add motion detection feature with EMA-based P-frame size analysis

- Implemented MotionDetector for detecting motion based on H.264 P-frame sizes.
- Introduced adjustable sensitivity threshold for motion detection.
- Added tests for various scenarios including motion detection, hold time, cooldown, and baseline adaptation.
- Created hksvSession to manage HDS DataStream connections for HKSV recording.
- Updated schema.json to include a new speaker option for 2-way audio support.
This commit is contained in:
Sergey Krashevich
2026-03-06 19:58:15 +03:00
parent 593dce6eb9
commit c567831c91
13 changed files with 2135 additions and 1178 deletions
+5
View File
@@ -351,6 +351,11 @@
"description": "Motion detection sensitivity threshold for `detect` mode. Lower values = more sensitive. Uses EMA-based P-frame size analysis.",
"type": "number",
"default": 2.0
},
"speaker": {
"description": "Include Speaker service for 2-way audio (talk through the camera). Only enable if your camera has a physical speaker.",
"type": "boolean",
"default": false
}
}
}