mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-11-21 19:07:46 +01:00
use resolution of clip
This commit is contained in:
parent
0695bb097d
commit
0e43f452d2
@ -269,6 +269,10 @@ def process(path, label, output, debug_path):
|
|||||||
logger.info(c)
|
logger.info(c)
|
||||||
frame_shape = get_frame_shape(c)
|
frame_shape = get_frame_shape(c)
|
||||||
|
|
||||||
|
json_config["cameras"]["camera"]["detect"] = {
|
||||||
|
"height": frame_shape[0],
|
||||||
|
"width": frame_shape[1],
|
||||||
|
}
|
||||||
json_config["cameras"]["camera"]["ffmpeg"]["inputs"][0]["path"] = c
|
json_config["cameras"]["camera"]["ffmpeg"]["inputs"][0]["path"] = c
|
||||||
|
|
||||||
frigate_config = FrigateConfig(**json_config)
|
frigate_config = FrigateConfig(**json_config)
|
||||||
|
Loading…
Reference in New Issue
Block a user