Skip to content

Commit

Permalink
Merge pull request #327 from BlinkID/release/v6.9.0
Browse files Browse the repository at this point in the history
Release/v6.9.0
  • Loading branch information
medvedecrobertmb authored Jul 11, 2024
2 parents 0714420 + 802ea7c commit 294b910
Show file tree
Hide file tree
Showing 58 changed files with 3,155 additions and 7,228 deletions.
Binary file not shown.
1 change: 1 addition & 0 deletions BlinkIDSample/LibUtils/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ dependencies {
implementation("com.microblink:blinkid:${rootProject.ext.blinkIdVersion}@aar") {
transitive = true
}
implementation(platform("org.jetbrains.kotlin:kotlin-bom:1.8.0"))

implementation "androidx.appcompat:appcompat:${rootProject.ext.appCompatVersion}"
implementation 'com.google.android.material:material:1.0.0'
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,10 @@ protected void extractLocationsResultsFromVizResult(VizResult result) {
addLocation(R.string.PPPersonalAdditionalNumber, result.getAdditionalPersonalIdNumber());
addLocation(R.string.PPIssuingAuthority, result.getIssuingAuthority());
addLocation(R.string.PPDocumentSubtype, result.getDocumentSubtype());
addLocation(R.string.PPRemarks, result.getRemarks());
addLocation(R.string.PPResidencePermitType, result.getResidencePermitType());
addLocation(R.string.PPVisaType, result.getVisaType());

DriverLicenseDetailedInfo driverLicenseInfo = result.getDriverLicenseDetailedInfo();
if (!driverLicenseInfo.isEmpty()) {
addLocation(R.string.PPRestrictions, driverLicenseInfo.getRestrictions());
Expand Down Expand Up @@ -280,6 +284,9 @@ protected List<StringResult> getAllStringResultsFromVizResult(VizResult result)
allStringResults.add(result.getAdditionalPersonalIdNumber());
allStringResults.add(result.getIssuingAuthority());
allStringResults.add(result.getDocumentSubtype());
allStringResults.add(result.getRemarks());
allStringResults.add(result.getResidencePermitType());
allStringResults.add(result.getVisaType());
DriverLicenseDetailedInfo driverLicenseInfo = result.getDriverLicenseDetailedInfo();
if (!driverLicenseInfo.isEmpty()) {
allStringResults.add(driverLicenseInfo.getRestrictions());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,9 @@ private void extractMixedResults(BlinkIdMultiSideRecognizer.Result result) {
add(R.string.PPDocumentAdditionalNumber, result.getDocumentAdditionalNumber());
add(R.string.PPDocumentOptionalAdditionalNumber, result.getDocumentOptionalAdditionalNumber());
add(R.string.PPIssuingAuthority, result.getIssuingAuthority());
add(R.string.PPRemarks, result.getRemarks());
add(R.string.PPResidencePermitType, result.getResidencePermitType());
add(R.string.PPVisaType, result.getVisaType());

DriverLicenseDetailedInfo driverLicenseInfo = result.getDriverLicenseDetailedInfo();
if (!driverLicenseInfo.isEmpty()) {
Expand Down Expand Up @@ -283,6 +286,9 @@ private void extractMixedNonEmptyResults(BlinkIdMultiSideRecognizer.Result resul
addIfNotEmpty(R.string.PPDocumentAdditionalNumber, result.getDocumentAdditionalNumber());
addIfNotEmpty(R.string.PPDocumentOptionalAdditionalNumber, result.getDocumentOptionalAdditionalNumber());
addIfNotEmpty(R.string.PPIssuingAuthority, result.getIssuingAuthority());
addIfNotEmpty(R.string.PPRemarks, result.getRemarks());
addIfNotEmpty(R.string.PPResidencePermitType, result.getResidencePermitType());
addIfNotEmpty(R.string.PPVisaType, result.getVisaType());

DriverLicenseDetailedInfo driverLicenseInfo = result.getDriverLicenseDetailedInfo();
if (!driverLicenseInfo.isEmpty()) {
Expand Down Expand Up @@ -375,6 +381,9 @@ private void extractVisualResults(VizResult result) {
addIfNotEmpty(R.string.PPDocumentOptionalAdditionalNumber, result.getDocumentOptionalAdditionalNumber());
addIfNotEmpty(R.string.PPPersonalAdditionalNumber, result.getAdditionalPersonalIdNumber());
addIfNotEmpty(R.string.PPIssuingAuthority, result.getIssuingAuthority());
addIfNotEmpty(R.string.PPRemarks, result.getRemarks());
addIfNotEmpty(R.string.PPResidencePermitType, result.getResidencePermitType());
addIfNotEmpty(R.string.PPVisaType, result.getVisaType());

DriverLicenseDetailedInfo driverLicenseInfo = result.getDriverLicenseDetailedInfo();
if (!driverLicenseInfo.isEmpty()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,9 @@ private void extractMixedResults(BlinkIdSingleSideRecognizer.Result result) {
add(R.string.PPDocumentAdditionalNumber, result.getDocumentAdditionalNumber());
add(R.string.PPDocumentOptionalAdditionalNumber, result.getDocumentOptionalAdditionalNumber());
add(R.string.PPIssuingAuthority, result.getIssuingAuthority());
add(R.string.PPRemarks, result.getRemarks());
add(R.string.PPResidencePermitType, result.getResidencePermitType());
add(R.string.PPVisaType, result.getVisaType());

DriverLicenseDetailedInfo driverLicenseInfo = result.getDriverLicenseDetailedInfo();
if (!driverLicenseInfo.isEmpty()) {
Expand Down Expand Up @@ -249,6 +252,9 @@ private void extractMixedNonEmptyResults(BlinkIdSingleSideRecognizer.Result resu
addIfNotEmpty(R.string.PPDocumentAdditionalNumber, result.getDocumentAdditionalNumber());
addIfNotEmpty(R.string.PPDocumentOptionalAdditionalNumber, result.getDocumentOptionalAdditionalNumber());
addIfNotEmpty(R.string.PPIssuingAuthority, result.getIssuingAuthority());
addIfNotEmpty(R.string.PPRemarks, result.getRemarks());
addIfNotEmpty(R.string.PPResidencePermitType, result.getResidencePermitType());
addIfNotEmpty(R.string.PPVisaType, result.getVisaType());

DriverLicenseDetailedInfo driverLicenseInfo = result.getDriverLicenseDetailedInfo();
if (!driverLicenseInfo.isEmpty()) {
Expand Down Expand Up @@ -324,6 +330,10 @@ private void extractVisualResults(VizResult result) {
addIfNotEmpty(R.string.PPDocumentOptionalAdditionalNumber, result.getDocumentOptionalAdditionalNumber());
addIfNotEmpty(R.string.PPPersonalAdditionalNumber, result.getAdditionalPersonalIdNumber());
addIfNotEmpty(R.string.PPIssuingAuthority, result.getIssuingAuthority());
addIfNotEmpty(R.string.PPRemarks, result.getRemarks());
addIfNotEmpty(R.string.PPResidencePermitType, result.getResidencePermitType());
addIfNotEmpty(R.string.PPVisaType, result.getVisaType());

DriverLicenseDetailedInfo driverLicenseInfo = result.getDriverLicenseDetailedInfo();
if (!driverLicenseInfo.isEmpty()) {
addIfNotEmpty(R.string.PPDriverLicenseDetailedInfo, driverLicenseInfo.toString());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,9 @@
<string name="PPVersionNumber">Version number</string>
<string name="PPCharacterSet">Character set</string>
<string name="PPDocumentSubtype">Document subtype</string>
<string name="PPRemarks">Remarks</string>
<string name="PPResidencePermitType">Residence permit type</string>
<string name="PPVisaType">Visa type</string>

<string name="MBRecognitionStatus">Recognition status</string>
<string name="MBFullDocumentImage">Full document image</string>
Expand Down
2 changes: 1 addition & 1 deletion BlinkIDSample/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ allprojects {
// versions of libraries that all modules require

project.ext {
blinkIdVersion = '6.8.0'
blinkIdVersion = '6.9.0'
compileSdkVersion = 34
targetSdkVersion = 34
appCompatVersion = '1.6.1'
Expand Down
Binary file modified LibBlinkID-javadoc.jar
Binary file not shown.
Binary file modified LibBlinkID.aar
Binary file not shown.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ Add _BlinkID_ as a dependency and make sure `transitive` is set to true

```
dependencies {
implementation('com.microblink:blinkid:6.8.0@aar') {
implementation('com.microblink:blinkid:6.9.0@aar') {
transitive = true
}
}
Expand All @@ -127,7 +127,7 @@ Android studio should automatically import javadoc from maven dependency. If tha

1. In Android Studio project sidebar, ensure [project view is enabled](https://developer.android.com/studio/projects#ProjectView)
2. Expand `External Libraries` entry (usually this is the last entry in project view)
3. Locate `blinkid-6.8.0` entry, right click on it and select `Library Properties...`
3. Locate `blinkid-6.9.0` entry, right click on it and select `Library Properties...`
4. A `Library Properties` pop-up window will appear
5. Click the second `+` button in bottom left corner of the window (the one that contains `+` with little globe)
6. Window for defining documentation URL will appear
Expand Down Expand Up @@ -1356,7 +1356,7 @@ Execution failed for task ':app:mergeDebugNativeLibs'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.MergeJavaResWorkAction
> 2 files found with path 'lib/arm64-v8a/libc++_shared.so' from inputs:
- <path>/.gradle/caches/transforms-3/3d428f9141586beb8805ce57f97bedda/transformed/jetified-opencv-4.5.3.0/jni/arm64-v8a/libc++_shared.so
- <path>/.gradle/caches/transforms-3/609476a082a81bd7af00fd16a991ee43/transformed/jetified-blinkid-6.8.0/jni/arm64-v8a/libc++_shared.so
- <path>/.gradle/caches/transforms-3/609476a082a81bd7af00fd16a991ee43/transformed/jetified-blinkid-6.9.0/jni/arm64-v8a/libc++_shared.so
If you are using jniLibs and CMake IMPORTED targets, see
https://developer.android.com/r/tools/jniLibs-vs-imported-targets
```
Expand Down
114 changes: 114 additions & 0 deletions Release notes.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,119 @@
# Release notes

## v6.9.0

### New Features
- **Custom mandatory fields**
- We’re introducing the option for customers to define their own set of mandatory fields. This feature allows greater flexibility in the scanning process by enabling the extraction of only the necessary information from identity documents. Now you can customize the process and focus on only those fields that are relevant to your use case.
- Custom mandatory fields can be set at the document level or applied universally to all document types.
- **Face detector improvements**
- We’ve made significant enhancements to our BlinkID face detector model. Now, the updated model detects instances where a finger is covering the face image more precisely, improving the reliability of the face detection feature.
- **Added new values to `ClassInfo` enum:**
- `Region`:
- `ALAGOAS` for Brazilian documents
- `Type`:
- `AFGHAN_CITIZEN_CARD`
- `EID`
- `PASS`
- `SIS_ID`
### Expanded Document Coverage
#### New Documents Support
- Austria - Polycarbonate Passport
- Canada - Polycarbonate Passport
- Ecuador - Paper Passport
- Germany - eID
- Guatemala - Alien ID
- Iraq - Polycarbonate Passport
- Namibia - Identity Card
- Nepal - Polycarbonate Passport
- Sweden - SIS ID
- USA, Delaware - Identity Card
- USA, Louisiana - Identity Card
- USA, Vermont - Identity Card
#### New Document Versions for Supported Documents
- Bolivia - Identity Card
- Canada, British Columbia - Public Services Card
- Finland - Identity Card
- Greece - Identity Card
- Malaysia - iKAD
- Mexico, Nuevo Leon - Driver's License
- Mexico, Tlaxcala - Driver's License
- Morocco - Driver's License
- Thailand - Polycarbonate Passport
- USA - Alaska - Driver's License
- USA - Alaska - Identity Card
- USA - Connecticut - Identity Card
- USA - Delaware - Driver's License
- USA - District of Columbia - Driver's License
- USA - Hawaii - Identity Card
- USA - Idaho - Driver's License
- USA - Indiana - Driver's License
- USA - Indiana - Identity Card
- USA - Iowa - Identity Card
- USA - Kansas - Identity Card
- USA - Kentucky - Identity Card
- USA - Kentucky - Driver's License
- USA - Maine - Identity Card
- USA - Maine - Driver's License
- USA - Michigan - Driver's License
- USA - Minnesota - Driver's License
- USA - Minnesota - Identity Card
- USA - Montana - Identity Card
- USA - Montana - Driver's License
- USA - New Hampshire - Identity Card
- USA - New Mexico - Driver's License
- USA - New Mexico - Identity Card
- USA - New York - Identity Card
- USA - North Dakota - Identity Card
- USA - Oregon - Identity Card
- USA - Pennsylvania - Driver's License
- USA - Rhode Island - Identity Card
- USA - South Carolina - Identity Card
- USA - Vermont - Driver's License
- USA - Washington - Identity Card
- USA - Wyoming - Driver's License
- USA - Wyoming - Identity Card
#### Out of Beta
- European Union - Health Insurance Card
#### New Beta Documents Support
- Democratic Republic of the Congo - Voter ID
- Philippines - Alien ID
- Philippines - Postal ID
- Philippines - Work Permit
- Philippines - Health Insurance Card
#### New Document Versions for Beta-Supported Documents
- Honduras - Paper Passport
- Mexico, Sonora - Driver's License
- Peru - Alien ID
- Philippines - Alien ID
#### New Segments Supported on Documents
- China Exit Entry Permit - MRZ
- China Mainland Travel Permit Taiwan - MRZ
- France Residence permit - `Remarks` & `ResidencePermitType`
- Philippines Alien ID - `VisaType`
#### Bug Fixes
- German ID - Fixed issues in cases when documents contain multiple surnames
- Paraguay ID - Added support for parsing the smaller barcode found on the back side of the ID
- Bulgaria Driver’s License - The Address field is set to optional, improving the extraction process
- Improved MRZ parsing for the back side of the following identity documents:
- Brazil Alien ID
- Kenya ID
- Bosnia and Herzegovina ID
- Ivory Coast ID
- Paraguay ID
- Fixed `NullPointerException` when using haptic feedback on Android API < 23
- Added missing `ParaguayID` to `IdBarcodeDocumentType`
- Defined the `format` for all attributes to resolve the `style attribute 'attr/mb_helpTooltipBackground not found` error
#### Other changes
- Set `BlinkIdUISettings.setShowMandatoryFieldsMissing` default value to `false`. If you want detailed UI messages about missing mandatory fields, set it to `true`
- Added `CustomClassRules` setting to `BlinkIdSingleSideRecognizer` and `BlinkIdMultiSideRecognizer` to support above mentioned custom mandatory fields
- Exposed `BlinkIdUISettings.setScanUIEventListener`, which can listen for various UI events during the scanning process. Supported events are:
- scan the barcode message was shown
- data match dialog was shown
- document unsupported dialog was shown
- first side scanning is done
- second side timeout dialog was shown

## v6.8.0

### New Features
Expand Down
2 changes: 1 addition & 1 deletion builtFromCommit.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Built from commit fc0f7c7dce922b28526734398a9336d9bf7b1c86
Built from commit 73e8ded11187d56e60a54ec25c4afb5265717808
Loading

0 comments on commit 294b910

Please sign in to comment.