Hugging Face
Models
Datasets
Spaces
Posts
Docs
Solutions
Pricing
Log In
Sign Up
Spaces:
Namit2111
/
id_verfiy
like
1
Runtime error
App
Files
Files
Community
Namit2111
commited on
May 9, 2023
Commit
2883069
β’
1 Parent(s):
9a2caf8
Create ocr.py
Browse files
Files changed (1)
hide
show
ocr.py
+8
-0
ocr.py
ADDED
Viewed
@@ -0,0 +1,8 @@
1
+
import easyocr
2
+
def ocr(img,reader):
3
+
4
+
5
+
result = reader.readtext(img,details=0)
6
+
if result:
7
+
return True
8
+
return False