Skip to content

Commit

Permalink
Update camera detection dimensions based on stream information if ava…
Browse files Browse the repository at this point in the history
…ilable
  • Loading branch information
skrashevich committed Jun 26, 2023
1 parent 2682aa9 commit 59e7ec1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frigate/config.py
Expand Up @@ -970,12 +970,12 @@ def runtime_config(self, plus_api: PlusApi = None) -> FrigateConfig:

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"]
)

Expand Down

0 comments on commit 59e7ec1

Please sign in to comment.