Spaces:
Sleeping
Sleeping
Sarath0x8f
commited on
Delete main.py
Browse files
main.py
DELETED
@@ -1,15 +0,0 @@
|
|
1 |
-
from ObjCharRec import ocr_with_paddle
|
2 |
-
from textblob import TextBlob
|
3 |
-
|
4 |
-
def demo():
|
5 |
-
paths = ['Images/download.jpeg', 'Images/download.png', 'Images/hq720.jpg', 'Images/testocr.png']
|
6 |
-
|
7 |
-
l = []
|
8 |
-
for img in paths:
|
9 |
-
text = ocr_with_paddle(img)
|
10 |
-
txtblob = TextBlob(text)
|
11 |
-
l.append(str(txtblob.correct()))
|
12 |
-
return l
|
13 |
-
|
14 |
-
if __name__ == "__main__":
|
15 |
-
print(demo())
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|