I have a problem to find digits in pictures attached bellow. It is caused by vertical lines which sometimes occur and sometimes it's not. I'm looking for idea how to remove these vertical lines them from pictures. 

I've tried contour detection, but it selected line and closest digit when it occur to close. I've also tried morphological transformation but it removes to much pixels from digits.

To remove short lines I've tried looking on the upper half of image and from it detect where occur gap. After found gaps I've stretched it vertically but again it remove to much. Hough transform also isn't helpful.

Images:

![img 1](https://i.stack.imgur.com/PR8T8.png)

![img 2](https://i.stack.imgur.com/0CqN8.png)

![img 3](https://i.stack.imgur.com/7uuDc.png)

![img 4](https://i.stack.imgur.com/3YJ2t.png)

![img 5](https://i.stack.imgur.com/orUPJ.png)

![img 6](https://i.stack.imgur.com/YtMDE.png)

![img 7](https://i.stack.imgur.com/Xl1Nf.png)

![img 8](https://i.stack.imgur.com/yav4f.png)