Spaces:
Runtime error
Runtime error
Commit
Β·
578dd8a
1
Parent(s):
20b14d3
install easyocr
Browse files- README.md +1 -1
- app.py +1 -0
- recognition/app_easyocr.py +3 -0
- recognition/easyocr.py +0 -0
- requirements.txt +2 -0
README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
---
|
| 2 |
title: BIB Number Recognition
|
| 3 |
-
emoji:
|
| 4 |
colorFrom: indigo
|
| 5 |
colorTo: green
|
| 6 |
sdk: gradio
|
|
|
|
| 1 |
---
|
| 2 |
title: BIB Number Recognition
|
| 3 |
+
emoji: πββοΈ
|
| 4 |
colorFrom: indigo
|
| 5 |
colorTo: green
|
| 6 |
sdk: gradio
|
app.py
CHANGED
|
@@ -1,5 +1,6 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
from detection import app
|
|
|
|
| 3 |
|
| 4 |
def recognize(img_arr):
|
| 5 |
detections = app.detect(img_arr)
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
from detection import app
|
| 3 |
+
from recognition import app_easyocr
|
| 4 |
|
| 5 |
def recognize(img_arr):
|
| 6 |
detections = app.detect(img_arr)
|
recognition/app_easyocr.py
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import easyocr
|
| 2 |
+
|
| 3 |
+
reader = easyocr.Reader(['en'])
|
recognition/easyocr.py
DELETED
|
File without changes
|
requirements.txt
CHANGED
|
@@ -37,3 +37,5 @@ thop # FLOPs computation
|
|
| 37 |
# albumentations>=1.0.3
|
| 38 |
# pycocotools>=2.0 # COCO mAP
|
| 39 |
# roboflow
|
|
|
|
|
|
|
|
|
| 37 |
# albumentations>=1.0.3
|
| 38 |
# pycocotools>=2.0 # COCO mAP
|
| 39 |
# roboflow
|
| 40 |
+
|
| 41 |
+
easyocr==1.6.1
|