mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-05 10:45:21 +03:00
Update camera detection dimensions based on stream information if available
This commit is contained in:
parent
2682aa9989
commit
59e7ec1bdc
@ -970,12 +970,12 @@ class FrigateConfig(FrigateBaseModel):
|
||||
|
||||
camera_config.detect.width = (
|
||||
stream_info["width"]
|
||||
if stream_info["width"] > 0
|
||||
if stream_info.get("width")
|
||||
else DEFAULT_DETECT_DIMENSIONS["width"]
|
||||
)
|
||||
camera_config.detect.height = (
|
||||
stream_info["height"]
|
||||
if stream_info["height"] > 0
|
||||
if stream_info.get("height")
|
||||
else DEFAULT_DETECT_DIMENSIONS["height"]
|
||||
)
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user