ml-debi commited on
Commit
b82f6ed
·
1 Parent(s): 73dc969

add examples to app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -12,6 +12,9 @@ app_title = "License Plate Object Detection"
12
  #model = ["ml-debi/yolov8_license_plate_detection"]
13
  model_path = "./best.onnx"
14
 
 
 
 
15
  def build_tesseract_options(psm=7):
16
  # tell Tesseract to only OCR alphanumeric characters
17
  alphanumeric = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"
@@ -193,6 +196,7 @@ iface = gr.Interface(
193
  gr.Image(label="Predicted image"),
194
  gr.Image(label="Processed license plate image"),
195
  gr.Textbox(label="Predicted license plate number")
196
- ]
 
197
  )
198
  iface.launch()
 
12
  #model = ["ml-debi/yolov8_license_plate_detection"]
13
  model_path = "./best.onnx"
14
 
15
+ examples = [["./examples/tesla.jpg"], ["./examples/mazda.jpg"], ["./examples/mercedes.jpg"]]
16
+
17
+
18
  def build_tesseract_options(psm=7):
19
  # tell Tesseract to only OCR alphanumeric characters
20
  alphanumeric = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"
 
196
  gr.Image(label="Predicted image"),
197
  gr.Image(label="Processed license plate image"),
198
  gr.Textbox(label="Predicted license plate number")
199
+ ],
200
+ examples=examples
201
  )
202
  iface.launch()