ml-debi commited on
Commit
c1dfa66
1 Parent(s): 1d241a3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -10,6 +10,7 @@ from huggingface_hub import hf_hub_download
10
 
11
  app_title = "License Plate Object Detection"
12
  #model = ["ml-debi/yolov8_license_plate_detection"]
 
13
 
14
  def build_tesseract_options(psm=7):
15
  # tell Tesseract to only OCR alphanumeric characters
@@ -169,7 +170,6 @@ def yolo_predictions(image_path, size, sigma, block_size, constant, min_confiden
169
  def predict(image, ocr, sigma, block_size, constant, min_confidence):
170
 
171
  size = 640
172
- model_path = "ml-debi/yolov8_license_plate_detection"
173
  ort_session = ort.InferenceSession(model_path)
174
 
175
  result_img, _, processed_cropped_image, license_plate_text = yolo_predictions(
 
10
 
11
  app_title = "License Plate Object Detection"
12
  #model = ["ml-debi/yolov8_license_plate_detection"]
13
+ model_path = "ml-debi/yolov8-license-plate-detection"
14
 
15
  def build_tesseract_options(psm=7):
16
  # tell Tesseract to only OCR alphanumeric characters
 
170
  def predict(image, ocr, sigma, block_size, constant, min_confidence):
171
 
172
  size = 640
 
173
  ort_session = ort.InferenceSession(model_path)
174
 
175
  result_img, _, processed_cropped_image, license_plate_text = yolo_predictions(