Skip to content

Commit

Permalink
Merge pull request #164 from BlinkID/release/5.8.0
Browse files Browse the repository at this point in the history
Release/5.8.0
  • Loading branch information
juraskrlec authored Sep 30, 2020
2 parents 8084d5d + 71aa36b commit a02d6e5
Show file tree
Hide file tree
Showing 29 changed files with 472 additions and 328 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', '~> 5.7.1'
s.dependency 'PPBlinkID', '~> 5.8.0'

s.frameworks = 'UIKit'
end
19 changes: 13 additions & 6 deletions BlinkID/overlays/blinkidOverlays.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,13 @@ export class BlinkIdOverlaySettings extends OverlaySettings {
*/
this.showNotSupportedDialog = true;

/**
* Defines whether glare warning will be displayed when user turn on a flashlight
*
* Default: true
*/
this.showFlashlightWarning = true;

/**
* Option to configure back side scanning timeout.
*
Expand Down Expand Up @@ -116,28 +123,28 @@ export class BlinkIdOverlaySettings extends OverlaySettings {
export class DocumentVerificationOverlaySettings extends OverlaySettings {
constructor() {
super('DocumentVerificationOverlaySettings');
/**
/**
* String: splash message that is shown before scanning the first side of the document, while starting camera.
* If null, default value will be used.
*/
this.firstSideSplashMessage = null;
/**
/**
* String: splash message that is shown before scanning the second side of the document, while starting camera.
* If null, default value will be used.
*/
this.secondSideSplashMessage = null;
/**
/**
* String: splash message that is shown after scanning the document.
* If null, default value will be used.
*/
this.scanningDoneSplashMessage = null;
/**
/**
* String: user instructions that are shown above camera preview while the first side of the
* document is being scanned.
* If null, default value will be used.
*/
this.firstSideInstructions = null;
/**
/**
* String: user instructions that are shown above camera preview while the second side of the
* document is being scanned.
* If null, default value will be used.
Expand All @@ -149,4 +156,4 @@ export class DocumentVerificationOverlaySettings extends OverlaySettings {
*/
this.glareMessage = null;
}
}
}
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": "5.7.2",
"version": "5.8.0",
"description": "A small and powerful ID card scanning library. Powered by Microblink (www.microblink.com).",
"main": "index.js",
"repository": {
Expand Down
20 changes: 20 additions & 0 deletions BlinkID/recognizers/blinkIdCombinedRecognizer.js
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,11 @@ export class BlinkIdCombinedRecognizerResult extends RecognizerResult {
*/
this.sex = nativeResult.sex;

/**
* image of the signature if enabled with returnSignatureImage property.
*/
this.signatureImage = nativeResult.signatureImage;

}
}

Expand Down Expand Up @@ -347,13 +352,28 @@ export class BlinkIdCombinedRecognizer extends Recognizer {
*/
this.returnFullDocumentImage = false;

/**
* Sets whether signature image from ID card should be extracted.
*
*
*/
this.returnSignatureImage = false;

/**
* Whether or not recognition result should be signed.
*
*
*/
this.signResult = false;

/**
* Property for setting DPI for signature images
* Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception
*
*
*/
this.signatureImageDpi = 250;

/**
* Skip back side capture and processing step when back side of the document is not supported
*
Expand Down
20 changes: 20 additions & 0 deletions BlinkID/recognizers/blinkIdRecognizer.js
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,11 @@ export class BlinkIdRecognizerResult extends RecognizerResult {
*/
this.sex = nativeResult.sex;

/**
* image of the signature if enabled with returnSignatureImage property.
*/
this.signatureImage = nativeResult.signatureImage;

/**
* Defines the data extracted from the visual inspection zone
*/
Expand Down Expand Up @@ -308,6 +313,21 @@ export class BlinkIdRecognizer extends Recognizer {
*/
this.returnFullDocumentImage = false;

/**
* Sets whether signature image from ID card should be extracted.
*
*
*/
this.returnSignatureImage = false;

/**
* Property for setting DPI for signature images
* Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception
*
*
*/
this.signatureImageDpi = 250;

/**
* Defines whether result characters validatation is performed.
* If a result member contains invalid character, the result state cannot be valid
Expand Down
5 changes: 5 additions & 0 deletions BlinkID/recognizers/idBarcodeRecognizer.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,11 @@ export class IdBarcodeRecognizerResult extends RecognizerResult {
*/
this.maritalStatus = nativeResult.maritalStatus;

/**
* The middle name of the document owner.
*/
this.middleName = nativeResult.middleName;

/**
* The nationality of the documet owner.
*/
Expand Down
106 changes: 56 additions & 50 deletions BlinkID/recognizers/usdlCombinedRecognizer.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,50 +10,50 @@ import {
export class UsdlCombinedRecognizerResult extends RecognizerResult {
constructor(nativeResult) {
super(nativeResult.resultState);
/**
* Digital signature of the recognition result. Available only if enabled with signResult property.

/**
* Digital signature of the recognition result. Available only if enabled with signResult property.
*/
this.digitalSignature = nativeResult.digitalSignature;
/**
* Version of the digital signature. Available only if enabled with signResult property.

/**
* Version of the digital signature. Available only if enabled with signResult property.
*/
this.digitalSignatureVersion = nativeResult.digitalSignatureVersion;
/**

/**
* Returns true if data from scanned parts/sides of the document match,
* false otherwise. For example if date of expiry is scanned from the front and back side
* of the document and values do not match, this method will return false. Result will
* be true only if scanned values for all fields that are compared are the same.
* be true only if scanned values for all fields that are compared are the same.
*/
this.documentDataMatch = nativeResult.documentDataMatch;
/**
* face image from the document if enabled with returnFaceImage property.

/**
* face image from the document if enabled with returnFaceImage property.
*/
this.faceImage = nativeResult.faceImage;
/**
* full document image if enabled with returnFullDocumentImage property.

/**
* full document image if enabled with returnFullDocumentImage property.
*/
this.fullDocumentImage = nativeResult.fullDocumentImage;
/**

/**
* Returns true if recognizer has finished scanning first side and is now scanning back side,
* false if it's still scanning first side.
* false if it's still scanning first side.
*/
this.scanningFirstSideDone = nativeResult.scanningFirstSideDone;

/** Array of elements that are not part of AAMVA standard and are specific to each US state. */
this.optionalElements = nativeResult.optionalElements;

/** The raw bytes contained inside 2D barcode. */
this.rawData = nativeResult.rawData;

/** Raw string inside 2D barcode. */
this.rawStringData = nativeResult.rawStringData;

/** True if returned result is uncertain, i.e. if scanned barcode was incomplete (i.e. */
this.uncertain = nativeResult.uncertain;

Expand All @@ -63,12 +63,18 @@ export class UsdlCombinedRecognizerResult extends RecognizerResult {
/** The first name of the United States driver license owner. */
this.firstName = nativeResult.firstName;

/** The middle name of the United States driver license owner. */
this.middleName = nativeResult.middleName;

/** The last name of the United States driver license owner. */
this.lastName = nativeResult.lastName;

/** The full name of the United States driver license owner. */
this.fullName = nativeResult.fullName;

/** The name suffix of the United States driver license owner. */
this.nameSuffix = nativeResult.nameSuffix;

/** The full address of the United States driver license owner. */
this.address = nativeResult.address;

Expand Down Expand Up @@ -107,60 +113,60 @@ export class UsdlCombinedRecognizerResult extends RecognizerResult {

/**
* USDL Combined Recognizer.
*
*
* USDL Combined recognizer is used for scanning both front and back side of US Driver's License.
*/
export class UsdlCombinedRecognizer extends Recognizer {
constructor() {
super('UsdlCombinedRecognizer');
/**

/**
* Property for setting DPI for face images
* Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception
*
*
*
*
*/
this.faceImageDpi = 250;
/**

/**
* Property for setting DPI for full document images
* Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception
*
*
*
*
*/
this.fullDocumentImageDpi = 250;
/**

/**
* Sets whether face image from ID card should be extracted
*
*
*
*
*/
this.returnFaceImage = false;
/**

/**
* Sets whether full document image of ID card should be extracted.
*
*
*
*
*/
this.returnFullDocumentImage = false;

/**
* The extension factors for full document image.
/**
* The extension factors for full document image.
*/
this.fullDocumentImageExtensionFactors = new ImageExtensionFactors();
/**
* Minimum number of stable detections required for detection to be successful.

/**
* Minimum number of stable detections required for detection to be successful.
*/
this.numStableDetectionsThreshold = 6;
/**

/**
* Whether or not recognition result should be signed.
*
*
*
*
*/
this.signResult = false;

this.createResultFromNative = function (nativeResult) { return new UsdlCombinedRecognizerResult(nativeResult); }
}
}
}
Loading

0 comments on commit a02d6e5

Please sign in to comment.