Ensure birdseye is enabled before trying to grab a frame from it (#19573)

This commit is contained in:
Josh Hawkins
2025-08-17 17:26:18 -06:00
committed by GitHub
parent 6840415b6c
commit 1db26cb41e
+5 -1
View File
@@ -201,7 +201,11 @@ def latest_frame(
else "private, max-age=60",
},
)
elif camera_name == "birdseye" and request.app.frigate_config.birdseye.restream:
elif (
camera_name == "birdseye"
and request.app.frigate_config.birdseye.enabled
and request.app.frigate_config.birdseye.restream
):
frame = cv2.cvtColor(
frame_processor.get_current_frame(camera_name),
cv2.COLOR_YUV2BGR_I420,