Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from pytesseract import image_to_string
- from PIL import Image
- print image_to_string(Image.open('sample.jpg'))
- import os
- def addToClipBoard(text):
- command = 'echo ' + text.strip() + '| clip'
- os.system(command)
- import subprocess
- proc = subprocess.Popen(['gedit', 'file.txt'])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement