The task is as follows - it is required to select cells on a notebook sheet filled with text and lines.
I tried to do this through CV2 , namely through the selection of the canny edges .
The problem is that the text has a more pronounced structure than the cells, and the canny edges selects the text, but not the cell. When the parameter is increased, there is a huge noise, which is impossible to work with.
For example, you can look at this picture. Here you want to draw a cell with the help of the line.
Here is the result of the canny edges with the minimum parameter 
Increasing this parameter increases the noise level. 
Are there any other options that allow you to select cell lines, bypassing the text?
