Advertisement
Guest User

New code

a guest
Jul 5th, 2015
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. i=0
  2. for a in range (1,9):
  3.  
  4. for b in range(1,6):
  5.  
  6.  
  7. ball = th1[145*(a-1):145*a, (b-1)*171:171*b]
  8.  
  9. cv.imwrite('OpImage{:>40}.png'.format(i),ball)
  10.  
  11. im = Image.open("OpImage{:>40}.png".format(i))
  12.  
  13. print pytesseract.image_to_string(im)
  14.  
  15.  
  16. #I have to store all the values generated here and print them in the form of matrix
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement