Update app.py
Browse files
app.py
CHANGED
|
@@ -11,12 +11,12 @@ def process(img_path):
|
|
| 11 |
reader = easyocr.Reader(['en'])
|
| 12 |
bounds = reader.readtext(img_path)
|
| 13 |
|
| 14 |
-
return [img_path, pd.DataFrame(bounds).iloc[
|
| 15 |
|
| 16 |
title = '车架号识别展示'
|
| 17 |
description = '拖拽图片到识别区开始分析'
|
| 18 |
ip = gr.Image(sources = ['upload'], label = '上传图片', width = '100%', height = '40rem', type = 'filepath')
|
| 19 |
-
op = [gr.Image(sources = None, label = '处理结果', width = '100%', height = '40rem', type = 'filepath'), gr.
|
| 20 |
css = """
|
| 21 |
table.svelte-y11bhb.svelte-y11bhb { max-width: 100%; overflow-x: hidden; }
|
| 22 |
thead.svelte-y11bhb.svelte-y11bhb { visibility: hidden; }
|
|
|
|
| 11 |
reader = easyocr.Reader(['en'])
|
| 12 |
bounds = reader.readtext(img_path)
|
| 13 |
|
| 14 |
+
return [img_path, pd.DataFrame(bounds).iloc[0,1]]
|
| 15 |
|
| 16 |
title = '车架号识别展示'
|
| 17 |
description = '拖拽图片到识别区开始分析'
|
| 18 |
ip = gr.Image(sources = ['upload'], label = '上传图片', width = '100%', height = '40rem', type = 'filepath')
|
| 19 |
+
op = [gr.Image(sources = None, label = '处理结果', width = '100%', height = '40rem', type = 'filepath'), gr.Textbox()]
|
| 20 |
css = """
|
| 21 |
table.svelte-y11bhb.svelte-y11bhb { max-width: 100%; overflow-x: hidden; }
|
| 22 |
thead.svelte-y11bhb.svelte-y11bhb { visibility: hidden; }
|