Advertisement
Guest User

Untitled

a guest
Jun 16th, 2019
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. from pytesseract import image_to_string
  2. from PIL import Image
  3. print image_to_string(Image.open('sample.jpg'))
  4.  
  5. import os
  6. def addToClipBoard(text):
  7. command = 'echo ' + text.strip() + '| clip'
  8. os.system(command)
  9.  
  10. import subprocess
  11. proc = subprocess.Popen(['gedit', 'file.txt'])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement