Skip to content

Commit

Permalink
Merge pull request #219 from BlinkID/release/v6.9.0
Browse files Browse the repository at this point in the history
Release/v6.9.0
  • Loading branch information
mparadina authored Jul 19, 2024
2 parents 37f67d9 + 642cfe7 commit a030b88
Show file tree
Hide file tree
Showing 29 changed files with 972 additions and 402 deletions.
2 changes: 1 addition & 1 deletion BlinkID/blinkid-react-native.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Pod::Spec.new do |s|
s.header_dir = "blinkid-react-native"

s.dependency 'React'
s.dependency 'PPBlinkID', '~> 6.7.1'
s.dependency 'PPBlinkID', '~> 6.9.0'

s.frameworks = 'UIKit'
end
37 changes: 36 additions & 1 deletion BlinkID/overlays/blinkidOverlays.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import { OverlaySettings } from '../overlaySettings'

import { AndroidCameraResolutionPreset,
iOSCameraResolutionPreset
} from '../types'
/**
* Class for setting up document overlay.
* Document overlay is best suited for recognizers that perform ID document scanning.
Expand Down Expand Up @@ -167,6 +169,39 @@ export class BlinkIdOverlaySettings extends OverlaySettings {
* Default: true
*/
this.showCancelButton = true;

/**
* String: instructions for the user when blur has been detected on the document.
* If null, default value will be used.
*/
this.errorBlurDetected = null;

/**
* String: instructions for the user when glare has been detected on the document.
* If null, default value will be used.
*/
this.errorGlareDetected = null;

/**
* Defines possible Android device camera video resolution preset.
*
* Default: PresetDefault
*/
this.androidCameraResolutionPreset = AndroidCameraResolutionPreset.PresetDefault;

/**
* Defines possible iOS device camera video resolution preset.
*
* Default: PresetOptimal
*/
this.iosCameraResolutionPreset = iOSCameraResolutionPreset.PresetOptimal;

/**
* Option to set whether legacy camera API should be used even on Lollipop devices that support newer Camera2 API.
* WARNING: This setting should only be used if the new Camera2 API is not working on the device. This setting should not be applied on all devices.
* Default: false
*/
this.enableAndroidLegacyCameraApi = false;
}
}

Expand Down
2 changes: 1 addition & 1 deletion BlinkID/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "blinkid-react-native",
"version": "6.7.0",
"version": "6.9.0",
"description": "A small and powerful ID card scanning library. Powered by Microblink (www.microblink.com).",
"main": "index.js",
"repository": {
Expand Down
61 changes: 54 additions & 7 deletions BlinkID/recognizers/blinkIdMultiSideRecognizer.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import {
DocumentImageMoireStatus,
AnonymizationMode,
RecognitionModeFilter,
StrictnessLevel,


ImageExtensionFactors,
Expand Down Expand Up @@ -146,6 +147,11 @@ export class BlinkIdMultiSideRecognizerResult extends RecognizerResult {
*/
this.documentOptionalAdditionalNumber = nativeResult.documentOptionalAdditionalNumber;

/**
* The transcription of the document subtype.
*/
this.documentSubtype = nativeResult.documentSubtype;

/**
* The driver license detailed info.
*/
Expand Down Expand Up @@ -302,6 +308,16 @@ export class BlinkIdMultiSideRecognizerResult extends RecognizerResult {
*/
this.religion = nativeResult.religion;

/**
* The remarks on the residence permit.
*/
this.remarks = nativeResult.remarks;

/**
* The residence permit type.
*/
this.residencePermitType = nativeResult.residencePermitType;

/**
* The residential stauts of the document owner.
*/
Expand All @@ -328,6 +344,11 @@ export class BlinkIdMultiSideRecognizerResult extends RecognizerResult {
*/
this.sponsor = nativeResult.sponsor;

/**
* The visa type.
*/
this.visaType = nativeResult.visaType;

}
}

Expand All @@ -343,13 +364,6 @@ export class BlinkIdMultiSideRecognizer extends Recognizer {
*/
this.additionalAnonymization = [];

/**
* Defines whether blured frames filtering is allowed
*
*
*/
this.allowBlurFilter = true;

/**
* Proceed with scanning the back side even if the front side result is uncertain.
* This only works for still images - video feeds will ignore this setting.
Expand Down Expand Up @@ -381,6 +395,32 @@ export class BlinkIdMultiSideRecognizer extends Recognizer {
*/
this.anonymizationMode = AnonymizationMode.FullResult;

/**
* Strictness level for blur detection.
*
*
*/
this.blurStrictnessLevel = StrictnessLevel.Normal;

/**
* Get custom class rules.
*/
this.customClassRules = [];

/**
* Skip processing of the blurred frames.
*
*
*/
this.enableBlurFilter = true;

/**
* Skip processing of the glared frames.
*
*
*/
this.enableGlareFilter = true;

/**
* Property for setting DPI for face images
* Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception
Expand All @@ -405,6 +445,13 @@ export class BlinkIdMultiSideRecognizer extends Recognizer {
*/
this.fullDocumentImageExtensionFactors = new ImageExtensionFactors();

/**
* Strictness level for glare detection.
*
*
*/
this.glareStrictnessLevel = StrictnessLevel.Normal;

/**
* Configure the number of characters per field that are allowed to be inconsistent in data match.
*
Expand Down
61 changes: 54 additions & 7 deletions BlinkID/recognizers/blinkIdSingleSideRecognizer.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import {
DocumentImageMoireStatus,
AnonymizationMode,
RecognitionModeFilter,
StrictnessLevel,


ImageExtensionFactors,
Expand Down Expand Up @@ -118,6 +119,11 @@ export class BlinkIdSingleSideRecognizerResult extends RecognizerResult {
*/
this.documentOptionalAdditionalNumber = nativeResult.documentOptionalAdditionalNumber;

/**
* The transcription of the document subtype.
*/
this.documentSubtype = nativeResult.documentSubtype;

/**
* The driver license detailed info.
*/
Expand Down Expand Up @@ -249,6 +255,16 @@ export class BlinkIdSingleSideRecognizerResult extends RecognizerResult {
*/
this.religion = nativeResult.religion;

/**
* The remarks on the residence permit.
*/
this.remarks = nativeResult.remarks;

/**
* The residence permit type.
*/
this.residencePermitType = nativeResult.residencePermitType;

/**
* The residential stauts of the document owner.
*/
Expand All @@ -269,6 +285,11 @@ export class BlinkIdSingleSideRecognizerResult extends RecognizerResult {
*/
this.sponsor = nativeResult.sponsor;

/**
* The visa type.
*/
this.visaType = nativeResult.visaType;

/**
* Defines the data extracted from the visual inspection zone
*/
Expand All @@ -289,13 +310,6 @@ export class BlinkIdSingleSideRecognizer extends Recognizer {
*/
this.additionalAnonymization = [];

/**
* Defines whether blured frames filtering is allowed
*
*
*/
this.allowBlurFilter = true;

/**
* Defines whether returning of unparsed MRZ (Machine Readable Zone) results is allowed
*
Expand All @@ -319,6 +333,32 @@ export class BlinkIdSingleSideRecognizer extends Recognizer {
*/
this.anonymizationMode = AnonymizationMode.FullResult;

/**
* Strictness level for blur detection.
*
*
*/
this.blurStrictnessLevel = StrictnessLevel.Normal;

/**
* Get custom class rules.
*/
this.customClassRules = [];

/**
* Skip processing of the blurred frames.
*
*
*/
this.enableBlurFilter = true;

/**
* Skip processing of the glared frames.
*
*
*/
this.enableGlareFilter = true;

/**
* Property for setting DPI for face images
* Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception
Expand All @@ -343,6 +383,13 @@ export class BlinkIdSingleSideRecognizer extends Recognizer {
*/
this.fullDocumentImageExtensionFactors = new ImageExtensionFactors();

/**
* Strictness level for glare detection.
*
*
*/
this.glareStrictnessLevel = StrictnessLevel.Normal;

/**
* Pading is a minimum distance from the edge of the frame and is defined as a percentage of the frame width. Default value is 0.0f and in that case
* padding edge and image edge are the same.
Expand Down
1 change: 1 addition & 0 deletions BlinkID/recognizers/documentFaceRecognizer.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import {
DocumentImageMoireStatus,
AnonymizationMode,
RecognitionModeFilter,
StrictnessLevel,


ImageExtensionFactors,
Expand Down
1 change: 1 addition & 0 deletions BlinkID/recognizers/idBarcodeRecognizer.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import {
DocumentImageMoireStatus,
AnonymizationMode,
RecognitionModeFilter,
StrictnessLevel,


ImageExtensionFactors,
Expand Down
1 change: 1 addition & 0 deletions BlinkID/recognizers/mrtdCombinedRecognizer.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import {
DocumentImageMoireStatus,
AnonymizationMode,
RecognitionModeFilter,
StrictnessLevel,


ImageExtensionFactors,
Expand Down
1 change: 1 addition & 0 deletions BlinkID/recognizers/mrtdRecognizer.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import {
DocumentImageMoireStatus,
AnonymizationMode,
RecognitionModeFilter,
StrictnessLevel,


ImageExtensionFactors,
Expand Down
1 change: 1 addition & 0 deletions BlinkID/recognizers/passportRecognizer.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import {
DocumentImageMoireStatus,
AnonymizationMode,
RecognitionModeFilter,
StrictnessLevel,


ImageExtensionFactors,
Expand Down
1 change: 1 addition & 0 deletions BlinkID/recognizers/visaRecognizer.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import {
DocumentImageMoireStatus,
AnonymizationMode,
RecognitionModeFilter,
StrictnessLevel,


ImageExtensionFactors,
Expand Down
2 changes: 1 addition & 1 deletion BlinkID/src/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ android {

dependencies {
implementation 'com.facebook.react:react-native:+'
implementation('com.microblink:blinkid:6.7.0@aar') {
implementation('com.microblink:blinkid:6.9.0@aar') {
transitive = true
}
}
Loading

0 comments on commit a030b88

Please sign in to comment.