Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -52,7 +52,7 @@ def predict_plate(img):
|
|
| 52 |
|
| 53 |
if plate_crop.size > 0:
|
| 54 |
# Optimized OCR params for Hugging Face CPU/GPU
|
| 55 |
-
ocr_results = ocr_model.predict(source=plate_crop, conf=0.
|
| 56 |
|
| 57 |
detections = []
|
| 58 |
for obox in ocr_results[0].boxes:
|
|
|
|
| 52 |
|
| 53 |
if plate_crop.size > 0:
|
| 54 |
# Optimized OCR params for Hugging Face CPU/GPU
|
| 55 |
+
ocr_results = ocr_model.predict(source=plate_crop, conf=0.25, iou=0.45, agnostic_nms=True, verbose=False)
|
| 56 |
|
| 57 |
detections = []
|
| 58 |
for obox in ocr_results[0].boxes:
|