Skip to content

Latest commit

 

History

History
71 lines (44 loc) · 1.45 KB

readme.md

File metadata and controls

71 lines (44 loc) · 1.45 KB

MRZ Scannner

🚧 ___🚧 ___🚧 __🚧 - Ongoing Construction

Android Library for scanning document MRZ documents.

Current Supported documents

  1. Nation ID
  2. Passport ->development

Installation

Add the Following to your gradle file.

      //add jitpack
        allprojects {
            repositories {
              ...
              maven { url 'https://jitpack.io' }
            }
          }

          //add dependency, check on the lastest release tag
        implementation 'com.github.AmosKorir:mrz_scanner:Tag'

How to start reading

     MrzBuilder(this, this.activityResultRegistry)
            .setOnCardDetailsResponse(object : CardDetailResponse {
                override fun onCardRead(card: IdData) {
                    Toast.makeText(this@MainActivity, card.toString(), Toast.LENGTH_SHORT).show()

                }

                override fun onCardReadingCancelled() {
                    Toast.makeText(this@MainActivity, "Cancelled", Toast.LENGTH_SHORT).show()
                }

                override fun onFailed(e: Exception) {
                    Toast.makeText(this@MainActivity, e.toString(), Toast.LENGTH_SHORT).show()
                }

            })
            .start()

⚙️ ⚙️ ⚙️ ⚙️ MRZ reading Algorithms

Depend on a jar that is currently maintained in a separate private repository