Ensure birdseye is enabled before trying to grab a frame from it

This commit is contained in:
Josh Hawkins 2025-08-17 16:47:43 -05:00
parent 6840415b6c
commit ee2ba727fe

View File

@ -201,7 +201,11 @@ def latest_frame(
else "private, max-age=60", 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 = cv2.cvtColor(
frame_processor.get_current_frame(camera_name), frame_processor.get_current_frame(camera_name),
cv2.COLOR_YUV2BGR_I420, cv2.COLOR_YUV2BGR_I420,