LPR improvements (#17549)

* auto select LPR model backend for inference

* docs update
This commit is contained in:
Josh Hawkins
2025-04-05 11:03:17 -05:00
committed by GitHub
parent 7bfcf2040d
commit 348e728220
4 changed files with 30 additions and 7 deletions

View File

@@ -789,9 +789,7 @@ class LicensePlateProcessingMixin:
input_w = int(input_h * max_wh_ratio)
# check for model-specific input width
model_input_w = self.model_runner.recognition_model.runner.ort.get_inputs()[
0
].shape[3]
model_input_w = self.model_runner.recognition_model.runner.get_input_width()
if isinstance(model_input_w, int) and model_input_w > 0:
input_w = model_input_w