Advertisement
Guest User

Untitled

a guest
Jul 5th, 2015
222
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. i=0
  2. values = []
  3. for a in range (1,9):
  4.  
  5. for b in range(1,6):
  6.  
  7.  
  8. ball = th1[145*(a-1):145*a, (b-1)*171:171*b]
  9.  
  10. cv.imwrite('OpImage{:>40}.png'.format(i),ball)
  11.  
  12. im = Image.open("OpImage{:>40}.png".format(i))
  13.  
  14. p = pytesseract.image_to_string(im)
  15.  
  16. values.append(p)
  17.  
  18. # Rest of the code here
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement