Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

pytesseract.image_to_string save text file

try:
    from PIL import Image
except ImportError:
    import Image
import pytesseract
# Simple image to string
text=print(pytesseract.image_to_string(Image.open('test.jpg'),lang="eng"))
with open('out.txt', 'w') as f:
    print(text, file=f)
Comment

PREVIOUS NEXT
Code Example
Python :: django template for loop 
Python :: pylint import error 
Python :: discord.py embeds 
Python :: infix to postfix python code 
Python :: python check if two sets intersect 
Python :: replace value pandas df 
Python :: how to get current date and time in python 
Python :: The int type in Python3 cannot represent a number greater than 2^31-1. 
Python :: python get attributes of class 
Python :: python copy variable 
Python :: how to print thgings in multiple linew in python 
Python :: exeption python syntax 
Python :: selection sort python 
Python :: anagram program in python 
Python :: python resize image in tkinter 
Python :: what is // in python 
Python :: create spark dataframe from pandas 
Python :: How to do an infinte while in python 
Python :: python check if all caps 
Python :: python subtract lists 
Python :: fizzbuzz python solution 
Python :: df groupby loop 
Python :: django get group users 
Python :: plt.legend( 
Python :: Get Current Date using today method 
Python :: compress tarfile python 
Python :: python merge lists 
Python :: input and ouput array in python 
Python :: how to append a number to a list in python 
Python :: add css in html django 
ADD CONTENT
Topic
Content
Source link
Name
1+8 =