LPR improvements (#16559)

* use a small yolov9 model for detection

* use yolov9 for users without frigate+ and update retention algorithm

* new lpr config fields

* levenshtein distance package

* tweaks

* docs
This commit is contained in:
Josh Hawkins
2025-02-13 16:08:56 -07:00
committed by GitHub
parent f7199f205f
commit 729f5c0833
5 changed files with 297 additions and 49 deletions
+10 -2
View File
@@ -66,8 +66,16 @@ class LicensePlateRecognitionConfig(FrigateBaseModel):
title="License plate confidence score required to be added to the object as a sub label.",
)
min_area: int = Field(
default=500,
title="Min area of license plate to consider running license plate recognition.",
default=1000,
title="Minimum area of license plate to consider running license plate recognition.",
)
min_plate_length: int = Field(
default=4,
title="Minimum number of characters a license plate must have to be added to the object as a sub label.",
)
match_distance: int = Field(
default=1,
title="Allow this number of missing/incorrect characters to still cause a detected plate to match a known plate.",
)
known_plates: Optional[Dict[str, List[str]]] = Field(
default={}, title="Known plates to track."