I would like to capture the number from this kind of picture.
I tried multi-scale matching from the following link.
http://www.pyimagesearch.com/2015/
You have a couple of things you can use to your advantage:
So I suggest you:
GetPerspectiveTransform
to get the transform between image coordinates and an ideal rectangle, then transform the input image
using WarpPerspective
Split image into R, G and B channels and work out r - avg(g, b)
, this is a bit lighting dependent but should give something like this: