SHOW:
|
|
- or go back to the newest paste.
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 | - | print pytesseract.image_to_string(im) |
13 | + | |
14 | p = pytesseract.image_to_string(im) | |
15 | ||
16 | - | #I have to store all the values generated here and print them in the form of matrix |
16 | + | values.append(p) |
17 | ||
18 | # Rest of the code here |