Help in coding!

I have a camera module and I want to use it in text recognition from image taken. the problem is the codes so that it can function as text recognition!! help me guys on codes