Fixing segment storage and other flows

This commit is contained in:
cat101 2023-09-14 20:27:51 -03:00
parent bc509d9000
commit 26e0961d30

View File

@ -27,7 +27,7 @@ flowchart LR
%%{init: {"themeVariables": {"edgeLabelBackground": "transparent"}}}%% %%{init: {"themeVariables": {"edgeLabelBackground": "transparent"}}}%%
flowchart TD flowchart TD
ClipStore[(Clip\nstore)] RecStore[(Recording\nstore)]
SnapStore[(Snapshot\nstore)] SnapStore[(Snapshot\nstore)]
subgraph Camera subgraph Camera
@ -41,16 +41,17 @@ flowchart TD
MotionM --> MotionD(Motion\ndetection) MotionM --> MotionD(Motion\ndetection)
end end
subgraph Detection subgraph Detection
MotionD --> |motion regions| ObjectD(Object\ndetection) MotionD --> |motion regions| ObjectD(Object detection)
Decode --> ObjectD Decode --> ObjectD
ObjectD --> ObjectZ(Track objects and apply zones) ObjectD --> ObjectFilter(Apply object filters & zones)
ObjectFilter --> ObjectZ(Track objects)
end end
MotionD --> |motion snapshots|BirdsEye Stream --> |decoded frames|BirdsEye
ObjectZ --> |detection snapshot|BirdsEye MotionD --> |motion event|BirdsEye
ObjectZ --> |object event|BirdsEye
MotionD --> |motion clips|ClipStore MotionD --> |"video segments\n(retain motion)"|RecStore
ObjectZ --> |detection clip|ClipStore ObjectZ --> |detection clip|RecStore
Stream -->|continuous record| ClipStore Stream -->|"video segments\n(retain all)"| RecStore
ObjectZ --> |detection snapshot|SnapStore ObjectZ --> |detection snapshot|SnapStore
``` ```