I just published a bare-bones implementation of an Optical Character Recognizer implemented in Ruby.
It’s pretty basic, but it does successfully recognize its training set as well as the same characters with added “noise”. It uses a straightforward implementation of a feed-forward neural network.
It uses RMagick/ImageMagick to handle image processing, but apart from that it’s built from scratch!
You can grab a copy of the source from Github.