mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-11-26 19:06:11 +01:00
format
This commit is contained in:
parent
a53fc32d1a
commit
5ca3035cbf
@ -29,8 +29,8 @@ from frigate.util import (
|
||||
deep_merge,
|
||||
escape_special_characters,
|
||||
get_ffmpeg_arg_list,
|
||||
load_config_with_no_duplicates,
|
||||
get_video_properties,
|
||||
load_config_with_no_duplicates,
|
||||
)
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
@ -676,9 +676,8 @@ class CameraConfig(FrigateBaseModel):
|
||||
"detect" in input.get("roles", [])
|
||||
):
|
||||
try:
|
||||
|
||||
streamInfo = get_video_properties(input.get("path"))
|
||||
config["detect"]["width"] = streamInfo["width"]
|
||||
config["detect"]["width"] = streamInfo["width"]
|
||||
config["detect"]["height"] = streamInfo["height"]
|
||||
break
|
||||
except Exception:
|
||||
|
Loading…
Reference in New Issue
Block a user