Skip to content

hamedsharifi/BankCardReader

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages