Hi,
I am new to OCR and making an app for credit card number detecting using sample code of android-ocr(tesseract-ocr). I have trained the data as per the credit card font. It is detecting few card if the card having unique background(Attached Amexp.jpg for your reference, it is 60% approximately detecting) but if the card having multi background (bark.jpg) then the number is not recognizing. Even if the card number little(citi.jpg, attached 1st “5” number not recognized) overlapping the background then also not recognition.
In the data preparation time I am trying to give repeated number for training due to different shape of the number(citi.jpg, 5 number having different) but the repeated number is not taking.
I am trying to remove the background of the card but I am not getting any suitable code.
Even I have used some threshold (sobelEdgeThreshold, fisherAdaptiveThreshold, otsuAdaptiveThreshold) but all having same problem.
So please suggest me how can I overcome all the above issue using the same sample code or is there any alternative sample. I am not figuring out what is issue from my side. I have attached few sample & Train data for your reference.
Thanks & regards
Anil