Skip to content

agdolla/AndroidPassportReader

 
 

Repository files navigation

Passport Reader

Sample project to read Passports using MRZ or manual entry. Currently I am using ML KIT for the OCR.

I don't read the the whole MRZ as ML KIT for now it's unable to read it (it's struggling with "<<<"), but I use it to read the second line and after that use a regular expression to match the rigth format.

You can use the example images stored under examples to test the application or download any sample passport document from https://www.consilium.europa.eu/prado/EN/prado-start-page.html

alt text

This project is based in the information and tutorials found in

Build & Run

    1. Clone Repository
    2. Open with Android Studio
    3. Configure Android SDK
    4. Launch application

OCR

You must put your phone horizontal when you try to read the passports MRZ.

This is are examples of how the app performs. https://youtu.be/ZmRl_-3RH2U (Full read) https://youtu.be/kuIkZ1ZktCk (Just OCR)

License

Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

About

Android application to read passports with MRZ

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Kotlin 99.6%
  • Java 0.4%