Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ dependencies {
implementation "androidx.camera:camera-view:1.3.3"

coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:2.0.4'
implementation 'cz.adaptech:tesseract4android:4.1.1'
implementation 'cz.adaptech:tesseract4android:4.9.0'

implementation 'org.jmrtd:jmrtd:0.7.18'
}
Expand Down
8 changes: 3 additions & 5 deletions android/src/main/java/com/mrzreader/utils/OcrUtil.kt
Original file line number Diff line number Diff line change
Expand Up @@ -228,11 +228,9 @@ class OcrUtil {
}
//---------------------
if (isValidMrz) {
val mrzInfoTemp: MRZInfo? =
buildTempMrz(documentNumber, dateOfBirthDay, expiryDate, docType)
if (mrzInfoTemp != null) {
mrzInfo = mrzInfoTemp
}
val line1 = matcherPassportTD3Line1.group(0).toString()
val line2 = matcherPassportTD3Line2.group(0).toString()
mrzInfo = MRZInfo(line1 + line2)
}

return mrzInfo
Expand Down
Loading