-1

I am working on an Android OCR app which reads information from a credit card. Information includes name, card number etc.

When I read text, it returns all the text at a time.

I want to read the second line, i.e. card number only. How can I do that?

rmtheis
  • 5,992
  • 12
  • 61
  • 78
Muhammad Ibrahim
  • 289
  • 2
  • 12
  • Sir, Actually i have a scanned image of credit card. its formate is as below Name: Ibrahim ID: AX123 valid upto: 25th May,2015 i want read only second line, i.e. ID: AX123, and then in this line, my required information is only AX123. i am not interested in 'ID' tag. How can i do this. – Muhammad Ibrahim May 22 '15 at 07:28

1 Answers1

2

Tesseract does not support any option to select only a part of the recognized text. You can either preprocess the image or post process the extracted text. The first option should be easier and give better results.

rmtheis
  • 5,992
  • 12
  • 61
  • 78
tobltobs
  • 2,782
  • 1
  • 27
  • 33