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

This commit is contained in:
Josh Hawkins 2025-08-17 18:26:18 -05:00 committed by GitHub
parent 6840415b6c
commit 1db26cb41e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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,