Sahar7888 commited on
Commit
b31c634
·
verified ·
1 Parent(s): d348a6e

Create tesseract.py

Browse files
Files changed (1) hide show
  1. tesseract.py +12 -0
tesseract.py ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import os
2
+
3
+ os.system('apt-get update')
4
+ os.system('apt-get install tesseract-ocr')
5
+ os.system('pip install -q pytesseract')
6
+
7
+ import pytesseract
8
+ print("pytesseract:",pytesseract.__version__)
9
+
10
+ if __name__ == "__main__":
11
+
12
+ print("YES")