Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- i=0
- values = []
- for a in range (1,9):
- for b in range(1,6):
- ball = th1[145*(a-1):145*a, (b-1)*171:171*b]
- cv.imwrite('OpImage{:>40}.png'.format(i),ball)
- im = Image.open("OpImage{:>40}.png".format(i))
- p = pytesseract.image_to_string(im)
- values.append(p)
- # Rest of the code here
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement