Skip to content

Latest commit

 

History

History
20 lines (15 loc) · 1.22 KB

README.md

File metadata and controls

20 lines (15 loc) · 1.22 KB

alt text

BankCardReader

A try to read card number and expire date on printed cards.

Built With

  • tess-two - A fork of Tesseract Tools for Android. An OCR tool.
  • CameraView - A high level custom camera library for capturing photo and video in Android.
  • GPUImage for Android - A port of GPUImage in iOS to Android. (For filter images captured from camera)
  • Dexter - Dexter is an Android library that simplifies the process of requesting permissions at runtime.

I used English language trained data files for Tesseract so you can use your own language. Pick up them from library page and copy to correct path on Internal memory.

In the source code i put the lines:

baseApi.setVariable(TessBaseAPI.VAR_CHAR_BLACKLIST, "!?@#$%&*()<>_-+=.,:;'\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz");
baseApi.setVariable(TessBaseAPI.VAR_CHAR_WHITELIST, "/0123456789");

You can remove them to read card owner name. Play with Tesseract arguments and GPUImage filters to achieve best results.