for Android Just follow this link OCR Reader Code project Other stuff that you might need are language package and tess two zar file that you can easily get from maven archive and github samples
for auto detection of the text just use opencv for edge detection to get area on which character is written, then crop that image turn to gray scale, send to ocr for recognition.
webpage OpenCV i Hope it will help you
posted 2 years ago
@Maneesh Yes I have tried most examples but have not had the best results. I feel as if I need some guidance on them
@ab singh Thank you for the suggestions. I just do not know where to write the c++ code since I am working with android studio and code written for anroid is in java.