mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-06-24 21:31:53 +03:00
ensure motion masks from source camera are copied to replay
This commit is contained in:
parent
a576ad5218
commit
cff4eacb74
@ -245,11 +245,23 @@ class DebugReplayManager:
|
|||||||
"frame_shape",
|
"frame_shape",
|
||||||
"raw_mask",
|
"raw_mask",
|
||||||
"mask",
|
"mask",
|
||||||
"improved_contrast_enabled",
|
"enabled_in_config",
|
||||||
"rasterized_mask",
|
"rasterized_mask",
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if source_config.motion.mask:
|
||||||
|
motion_dict["mask"] = {
|
||||||
|
mask_id: (
|
||||||
|
mask_cfg.model_dump(
|
||||||
|
exclude={"raw_coordinates", "enabled_in_config"}
|
||||||
|
)
|
||||||
|
if mask_cfg is not None
|
||||||
|
else None
|
||||||
|
)
|
||||||
|
for mask_id, mask_cfg in source_config.motion.mask.items()
|
||||||
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
"enabled": True,
|
"enabled": True,
|
||||||
"ffmpeg": {
|
"ffmpeg": {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user