npc0 commited on
Commit
2e96a51
1 Parent(s): 74c6580

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -1,6 +1,5 @@
1
  import os
2
  import gradio as gr
3
- from PIL import Image
4
  import pytesseract
5
  import yolov5
6
 
@@ -35,7 +34,7 @@ def read_license_number(img):
35
  def greet(img):
36
  boxes = license_plate_detect(img)
37
  return "Hello " + str([pytesseract.image_to_string(
38
- Image.crop(bbox.tolist()))
39
  for bbox in boxes]) + "!!"
40
 
41
 
 
1
  import os
2
  import gradio as gr
 
3
  import pytesseract
4
  import yolov5
5
 
 
34
  def greet(img):
35
  boxes = license_plate_detect(img)
36
  return "Hello " + str([pytesseract.image_to_string(
37
+ img.crop(bbox.tolist()))
38
  for bbox in boxes]) + "!!"
39
 
40