So this may work ... [OpenCV example](http://code.opencv.org/projects/opencv/repository/entry/samples/python2/digits.py?rev=2.4.4)
So this may work ... OpenCV example