Pant0x commited on
Commit
bb513b5
·
verified ·
1 Parent(s): bc900e6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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.20, iou=0.45, agnostic_nms=True, verbose=False)
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: