after preprocessing an image of a sudoku board (from web) with opencv, I managed to get the following picture:

[![enter image description here](https://i.stack.imgur.com/leEwP.png)](https://i.stack.imgur.com/leEwP.png)

looping through the contours and extracting each value using pytesseract and psm 10 (single character) resulted in junk values.

thus i would like to slice the image to rows and try to extract the values using the config psm 6, hoping it might work.

The approach i took is the simply numpy-slicing the row and trying to extract the values, although it doesn't work, giving me `SystemError: tile cannot extend outside image` after the first iteration although im sure the slicing occur inside the image

```
y = 1
for x in range(1, 9):
     cropped_row = mask[y*33-33:y*33-1][x*33-33:x*33-1]
     text = tess.image_to_string(np.array(cropped_row), config='--psm 6')
     y += 1
     print(text)

```

i would like some guidance to the ecorrect aproach in OCRing rows from the image