Spaces:
Running
Running
Update app.py
Browse files
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 |
-
|
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 |
|