mirror of
https://github.com/blakeblackshear/frigate.git
synced 2025-09-26 19:41:29 +08:00
Small tweaks (#17651)
* clarify lpr * add license plate icon and correctly format string
This commit is contained in:
@@ -56,7 +56,7 @@ Like the other real-time processors in Frigate, license plate recognition runs o
|
|||||||
|
|
||||||
## Advanced Configuration
|
## 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
|
### 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.
|
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.
|
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
|
```yaml
|
||||||
# LPR global configuration
|
# LPR global configuration
|
||||||
|
@@ -1336,7 +1336,7 @@ class LicensePlateProcessingMixin:
|
|||||||
# Check against minimum confidence threshold
|
# Check against minimum confidence threshold
|
||||||
if avg_confidence < self.lpr_config.recognition_threshold:
|
if avg_confidence < self.lpr_config.recognition_threshold:
|
||||||
logger.debug(
|
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
|
return
|
||||||
|
|
||||||
|
@@ -260,8 +260,9 @@ export default function ReviewDetailDialog({
|
|||||||
event.label,
|
event.label,
|
||||||
"size-3 text-primary",
|
"size-3 text-primary",
|
||||||
)}
|
)}
|
||||||
{event.sub_label ?? event.label} (
|
{event.sub_label ??
|
||||||
{Math.round(event.data.top_score * 100)}%)
|
event.label.replaceAll("_", " ")}{" "}
|
||||||
|
({Math.round(event.data.top_score * 100)}%)
|
||||||
<Tooltip>
|
<Tooltip>
|
||||||
<TooltipTrigger>
|
<TooltipTrigger>
|
||||||
<div
|
<div
|
||||||
|
@@ -90,6 +90,8 @@ export function getIconForLabel(label: string, className?: string) {
|
|||||||
return <GiGoat key={label} className={className} />;
|
return <GiGoat key={label} className={className} />;
|
||||||
case "horse":
|
case "horse":
|
||||||
return <FaHorse key={label} className={className} />;
|
return <FaHorse key={label} className={className} />;
|
||||||
|
case "license_plate":
|
||||||
|
return <LuScanBarcode key={label} className={className} />;
|
||||||
case "motorcycle":
|
case "motorcycle":
|
||||||
return <FaMotorcycle key={label} className={className} />;
|
return <FaMotorcycle key={label} className={className} />;
|
||||||
case "mouse":
|
case "mouse":
|
||||||
|
Reference in New Issue
Block a user