Update ocr.py
Browse files
ocr.py
CHANGED
@@ -2,7 +2,7 @@ import easyocr
|
|
2 |
def ocr(img,reader):
|
3 |
|
4 |
|
5 |
-
result = reader.readtext(img,
|
6 |
if len(result)>1:
|
7 |
return True
|
8 |
return False
|
|
|
2 |
def ocr(img,reader):
|
3 |
|
4 |
|
5 |
+
result = reader.readtext(img,detail=0)
|
6 |
if len(result)>1:
|
7 |
return True
|
8 |
return False
|