I am trying to create an app that can read text from image. But i'm having problem in clearing background. I want results like :
Input Image 1 :
Output Image 1 :
This is the code I have tried:
cvtColor(org, tmp, CV_BGR2GRAY);
normalize(tmp, tmp, 0, 255, NORM_MINMAX);
threshold(tmp, dst, 0, 255, CV_THRESH_OTSU);