LPR improvements (#17716)

* add support for multi-line plates

* config for model size

* default to small model

* add license plate as attribute to motorcycle

* use model size

* docs

* attribute map

* i18n key fix
This commit is contained in:
Josh Hawkins
2025-04-15 09:40:12 -06:00
committed by GitHub
parent 8803fd7fff
commit 760ed25f0c
11 changed files with 217 additions and 101 deletions
+1 -1
View File
@@ -80,7 +80,7 @@ def is_better_thumbnail(label, current_thumb, new_obj, frame_shape) -> bool:
return False
# check license_plate on car
if label == "car":
if label in ["car", "motorcycle"]:
if has_better_attr(current_thumb, new_obj, "license_plate"):
return True
# if the current thumb has a license_plate attr, dont update unless it gets better