Namit2111 commited on
Commit
2883069
β€’
1 Parent(s): 9a2caf8

Create ocr.py

Browse files
Files changed (1) hide show
  1. ocr.py +8 -0
ocr.py ADDED
@@ -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