Skip to content

Commit

Permalink
Merge pull request #72 from BlinkID/v4.11.1.2
Browse files Browse the repository at this point in the history
prefer data from MRZ when scanning UAE id
  • Loading branch information
matvidako authored Dec 16, 2019
2 parents 9a636bc + 6427b7d commit 775dabf
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,15 @@ class UnitedArabEmiratesIdRecognition: TwoSideRecognition<UnitedArabEmiratesIdFr
}

override fun extractFields() {
if (backResult.isNotEmpty()) {
extract(backResult.mrzResult)
}

if (frontResult.isNotEmpty()) {
add(FULL_NAME, frontResult.name)
add(IDENTITY_NUMBER, frontResult.idNumber)
add(NATIONALITY, frontResult.nationality)
}
if (backResult.isNotEmpty()) {
extract(backResult.mrzResult)
}
}

override fun getResultTitle(): String? {
Expand Down

0 comments on commit 775dabf

Please sign in to comment.