Small tweaks (#17651)

* clarify lpr

* add license plate icon and correctly format string
This commit is contained in:
Josh Hawkins
2025-04-11 07:48:16 -05:00
committed by GitHub
parent 03f4318e40
commit 664889d487
4 changed files with 12 additions and 7 deletions

View File

@@ -56,7 +56,7 @@ Like the other real-time processors in Frigate, license plate recognition runs o
## Advanced Configuration
Fine-tune the LPR feature using these optional parameters:
Fine-tune the LPR feature using these optional parameters at the global level of your config. The only optional parameters that should be set at the camera level are `enabled`, `min_area`, and `enhancement`.
### Detection
@@ -158,13 +158,15 @@ cameras:
Dedicated LPR cameras are single-purpose cameras with powerful optical zoom to capture license plates on distant vehicles, often with fine-tuned settings to capture plates at night.
Users can configure Frigate's LPR in two different ways depending on whether they are using a Frigate+ model:
To mark a camera as a dedicated LPR camera, add `type: "lpr"` the camera configuration.
### Using a Frigate+ Model
Users can configure Frigate's dedicated LPR mode in two different ways depending on whether a Frigate+ (or native `license_plate` detecting) model is used:
### Using a Frigate+ (or Native `license_plate` Detecting) Model
Users running a Frigate+ model (or any model that natively detects `license_plate`) can take advantage of `license_plate` detection. This allows license plates to be treated as standard objects in dedicated LPR mode, meaning that alerts, detections, snapshots, zones, and other Frigate features work as usual, and plates are detected efficiently through your configured object detector.
An example configuration for a dedicated LPR camera using a Frigate+ model:
An example configuration for a dedicated LPR camera using a `license_plate`-detecting model:
```yaml
# LPR global configuration

View File

@@ -1336,7 +1336,7 @@ class LicensePlateProcessingMixin:
# Check against minimum confidence threshold
if avg_confidence < self.lpr_config.recognition_threshold:
logger.debug(
f"{camera}: Average confidence {avg_confidence} is less than threshold ({self.lpr_config.recognition_threshold})"
f"{camera}: Average character confidence {avg_confidence} is less than recognition_threshold ({self.lpr_config.recognition_threshold})"
)
return

View File

@@ -260,8 +260,9 @@ export default function ReviewDetailDialog({
event.label,
"size-3 text-primary",
)}
{event.sub_label ?? event.label} (
{Math.round(event.data.top_score * 100)}%)
{event.sub_label ??
event.label.replaceAll("_", " ")}{" "}
({Math.round(event.data.top_score * 100)}%)
<Tooltip>
<TooltipTrigger>
<div

View File

@@ -90,6 +90,8 @@ export function getIconForLabel(label: string, className?: string) {
return <GiGoat key={label} className={className} />;
case "horse":
return <FaHorse key={label} className={className} />;
case "license_plate":
return <LuScanBarcode key={label} className={className} />;
case "motorcycle":
return <FaMotorcycle key={label} className={className} />;
case "mouse":