You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/docs/configuration/license_plate_recognition.md
+8-3
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,7 @@ When a plate is recognized, the recognized name is:
19
19
20
20
Users running a Frigate+ model (or any custom model that natively detects license plates) should ensure that `license_plate` is added to the [list of objects to track](https://docs.frigate.video/plus/#available-label-types) either globally or for a specific camera. This will improve the accuracy and performance of the LPR model.
21
21
22
-
Users without a model that detects license plates can still run LPR. Frigate uses a lightweight YOLOv9 license plate detection model that runs on your CPU or GPU. In this case, you should _not_ define `license_plate` in your list of objects to track.
22
+
Users without a model that detects license plates can still run LPR. Frigate uses a lightweight YOLOv9 license plate detection model that can be configured to run on your CPU or GPU. In this case, you should _not_ define `license_plate` in your list of objects to track.
23
23
24
24
:::note
25
25
@@ -29,7 +29,7 @@ In the default mode, Frigate's LPR needs to first detect a `car` before it can r
29
29
30
30
## Minimum System Requirements
31
31
32
-
License plate recognition works by running AI models locally on your system. The models are relatively lightweight and will be auto-selected to run on your CPU. At least 4GB of RAM is required.
32
+
License plate recognition works by running AI models locally on your system. The models are relatively lightweight and can run on your CPU or GPU, depending on your configuration. At least 4GB of RAM is required.
33
33
34
34
## Configuration
35
35
@@ -66,6 +66,9 @@ Fine-tune the LPR feature using these optional parameters:
66
66
- **`min_area`**: Defines the minimum area (in pixels) a license plate must be before recognition runs.
67
67
- Default: `1000`pixels. Note: this is intentionally set very low as it is an _area_ measurement (length x width). For reference, 1000 pixels represents a ~32x32 pixel square in your camera image.
68
68
- Depending on the resolution of your camera's `detect` stream, you can increase this value to ignore small or distant plates.
69
+
- **`device`**: Device to use to run license plate recognition models.
70
+
- Default: `CPU`
71
+
- This can be `CPU` or `GPU`. For users without a model that detects license plates natively, using a GPU may increase performance of the models, especially the YOLOv9 license plate detector model.
69
72
70
73
### Recognition
71
74
@@ -167,6 +170,7 @@ An example configuration for a dedicated LPR camera using a Frigate+ model:
167
170
# LPR global configuration
168
171
lpr:
169
172
enabled: True
173
+
device: CPU # can also be GPU if available
170
174
171
175
# Dedicated LPR camera configuration
172
176
cameras:
@@ -218,6 +222,7 @@ An example configuration for a dedicated LPR camera using the secondary pipeline
218
222
# LPR global configuration
219
223
lpr:
220
224
enabled: True
225
+
device: CPU # can also be GPU if available
221
226
detection_threshold: 0.7 # change if necessary
222
227
223
228
# Dedicated LPR camera configuration
@@ -280,7 +285,7 @@ By selecting the appropriate configuration, users can optimize their dedicated L
280
285
- Disable the `improve_contrast` motion setting, especially if you are running LPR at night and the frame is mostly dark. This will prevent small pixel changes and smaller areas of motion from triggering license plate detection.
281
286
- Ensure your camera's timestamp is covered with a motion mask so that it's not incorrectly detected as a license plate.
282
287
- For non-Frigate+ users, you may need to change your camera settings for a clearer image or decrease your global `recognition_threshold` config if your plates are not being accurately recognized at night.
283
-
- The secondary pipeline mode runs a local AI model on your CPU or GPU (auto-selected) to detect plates. Increasing detect `fps` will increase resource usage proportionally.
288
+
- The secondary pipeline mode runs a local AI model on your CPU or GPU (depending on how `device` is configured) to detect plates. Increasing detect `fps` will increase resource usage proportionally.
0 commit comments