don't display fps warning for dedicated LPR cameras

This commit is contained in:
Josh Hawkins 2026-05-06 07:56:44 -05:00
parent 4e64c94ee1
commit b1aad2bc6d

View File

@ -12,6 +12,7 @@ const detect: SectionConfigOverrides = {
position: "after",
condition: (ctx) => {
if (ctx.level !== "camera" || !ctx.fullCameraConfig) return false;
if (ctx.fullCameraConfig.type === "lpr") return false;
const detectFps = ctx.formData?.fps as number | undefined;
const streamFps = ctx.fullCameraConfig.detect?.fps;
return detectFps != null && streamFps != null && detectFps > 5;