diff --git a/web/src/pages/LPRDebug.tsx b/web/src/pages/LPRDebug.tsx index caaca0f9b..93d5cae8f 100644 --- a/web/src/pages/LPRDebug.tsx +++ b/web/src/pages/LPRDebug.tsx @@ -21,6 +21,7 @@ import { useFormattedTimestamp } from "@/hooks/use-date-utils"; import { LuArrowDownUp, LuTrash2 } from "react-icons/lu"; import axios from "axios"; import { toast } from "sonner"; +import { cn } from "@/lib/utils"; type SortOption = "score_desc" | "score_asc" | "time_desc" | "time_asc"; @@ -234,7 +235,12 @@ function LPRAttempt({ attempt, config, onRefresh }: LPRAttemptProps) {
{data.plate}
-
+
= (config?.lpr?.threshold || 0.8) * 100 + ? "text-success" + : "text-danger" + )}> {data.score === "0" || !data.score ? "No score" : `${data.score}%`}
{event && (