1 | initial version |
Supposing you use always the same kind of card, you could probably by bounding/restraining the problem and work to do.
For example you can make that the card position and size (for the image) be more or less constant, so you could take for example just the upper part of the image.
Then you should segment the display.
This can be made by using some morphological operations to get a mask and the apply this mask to cut the important part for this.
Another one could be segmentation using the histogram of the picture.
Hope it could help.
2 | Added some stuff. |
Supposing you use always the same kind of card, you could probably by bounding/restraining the problem and work to do.
For example you can make that the card position and size (for the image) be more or less constant, so you could take for example just the upper part of the image.
Then you should segment the display.
This can be made by using some morphological operations (dilation or closing) to get a mask and the apply this mask to cut the important part for this.this. If you scratch all the card (so there aren't any near black points close to the number) this could work very well.
Another one could be segmentation using the histogram of the picture.
Hope it could help.