SHARE
TWEET

Untitled

a guest Jun 16th, 2019 73 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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'])
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top