Understatement of the week ;-/This is a difficult task.
ScotchRow 0403065692( /83 ..ti, ...A I ■ Uwt diaby....t414440.n osier. v." taw, 44.'114 .6.44,vor.4 ca Aordotri 14 4.1141L% ro4,11., mats Yes u• mple • IVINerorianrws, to.. WU. IX QV. rearm a nailialualwrotionegyou..1.04.0 rainaigewirinewbiliamonovit.ty 430 tad ateckyaobalanat.Dat924. 4ret,50C, • moterdoinwiDonralt MTN Con.c-t(rwr cheAr, 00 tram yourNIT/4 nutmeg 70201008 wits. Nurnhe 2924951999 111111111111111111111
Thanks for your response
The first few hits of a Google search for tesseract digits link to discussions on StackOverflow about constraining and retraining Tesseract to recognize a reduced set of characters (and thus correspondingly increase its accuracy) (one hopes).an OCR library which can scan only numbers
You can OCR the entire ticket, but the Wikipedia article about Tesseract mentioned:irrespective of where the numbers are displayed
and indeed that was the case with your sample image - all of the test OCR's on the skewed sample, failed.Tesseract's output will have very poor quality if the input images are not preprocessed to suit it: Images (especially screenshots) must be scaled up such that the text x-height is at least 20 pixels, any rotation or skew must be corrected or no text will be recognized, low-frequency changes in brightness must be high-pass filtered, or Tesseract's binarization stage will destroy much of the page, and dark borders must be manually removed, or they will be misinterpreted as characters.
a en ar imxvver VY ‘ er - ~<A } € 0903065692678) 4 Sere tomnonerw See CaywOregmeensiatenestinngyewscmets aihupreintinnentattygetes Wendpetatr ates — rr anETEOS } 292495 1999 A |
Hi, I need help with regards to OCR. I have a lot of content but I want to scan only specific part (ie Only Numbers) eg. Scan credit card number but not the name and other details on the card, any assistance please?
Attached is a sample image
View attachment 80026 View attachment 80027
thank for the response but I really thought I could get a library or an alternative