I think what you are looking for is referred to as character recognition.
This is a huge field of study – definitely not an easy task.
A few months ago I remember seeing code for license plate recognition in OpenCV. A lot of the source code is available for algorithms written using OpenCV and there are tutorials and examples available. I'm not sure about the license plate recognizer. You should be able to find it doing a Google search.
Barry.