Skip to content

Commit

Permalink
Merge pull request #169 from BlinkID/feature/v2.18.0
Browse files Browse the repository at this point in the history
Feature/v2.18.0
  • Loading branch information
dgust6 authored May 30, 2018
2 parents eb7233f + 3684ec5 commit 207957d
Show file tree
Hide file tree
Showing 24 changed files with 323 additions and 34 deletions.
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
## 2.18.0

- Updates and additions
- Added support for reading front side of Swedish Driver's License- use `PPSwedenDLFrontRecognizerSettings`
- Added ability to extend full document cropping zone on `PPGermanIDFrontRecognizerSettings`
- Added support for CAN number extraction on German ID Front
- Added support for iKAD MM55 ID's

- Improvements in ID scanning performance
- Improved reading of document number on Hong Kong ID
- Improvements when returning partial data in Document Face Recognizer
- Improvements in USDL data parsing

## 2.17.3

- Bugfixes
Expand Down
Binary file modified MicroBlink.bundle/Info.plist
Binary file not shown.
Binary file modified MicroBlink.bundle/cro_address_dictionary.zzip
Binary file not shown.
4 changes: 4 additions & 0 deletions MicroBlink.framework/Headers/PPBlinkIDRecognizers.h
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,10 @@
#import "PPSlovenianIDCombinedRecognizerSettings.h"
#import "PPSlovenianIDCombinedRecognizerResult.h"

//Sweden
#import "PPSwedenDLFrontRecognizerResult.h"
#import "PPSwedenDLFrontRecognizerSettings.h"

// Switzerland
#import "PPSwissIDBackRecognizerSettings.h"
#import "PPSwissIDBackRecognizerResult.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,9 @@ PP_CLASS_AVAILABLE_IOS(6.0)
*/
@property (nonatomic, readonly, nullable) NSString *documentNumber;

/**
* The can number of the German ID
*/
@property (nonatomic, readonly, nullable) NSString *canNumber;

@end
32 changes: 32 additions & 0 deletions MicroBlink.framework/Headers/PPGermanIDFrontRecognizerSettings.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,30 @@

NS_ASSUME_NONNULL_BEGIN

/**
* Struct which describes image extension factors. Each factors denotes by what percentage is image extended.
* For example, value of top = 0.3f means that top side of the image is extended by 30% of cards height,
* while value of right = 1.3f means that the right side of the image is extended by 120% of the cards width.
*/
typedef struct _PPImageExtensionFactors {
CGFloat top;
CGFloat right;
CGFloat bottom;
CGFloat left;
} PPImageExtensionFactors;

/**
* Method which creates a image extension factors structure
*/
NS_INLINE PPImageExtensionFactors PPMakeImageExtensionFactors(CGFloat top, CGFloat right, CGFloat bottom, CGFloat left) {
PPImageExtensionFactors factors;
factors.top = top;
factors.right = right;
factors.bottom = bottom;
factors.left = left;
return factors;
}

/**
* Settings class for configuring German ID Front Recognizer.
*
Expand Down Expand Up @@ -74,6 +98,14 @@ PP_CLASS_AVAILABLE_IOS(6.0)
*/
@property (nonatomic, assign) BOOL extractDateOfExpiry;

/**
* Image extension factors for full document image.
*
* @see PPImageExtensionFactors
* Default: {0.0f, 0.0f, 0.0f, 0.0f}
*/
@property (nonatomic, assign) PPImageExtensionFactors imageExtensionFactors;

/**
* Sets whether face image from ID card should be sent to didOutputMetadata method of scanDelegate object.
* If you want to recieve this image, be sure to enable dewarpedImage in MetadataSettings.
Expand Down
61 changes: 61 additions & 0 deletions MicroBlink.framework/Headers/PPSwedenDLFrontRecognizerResult.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
//
// PPSwedenDLFrontRecognizerResult.h
// MicroBlinkDev
//
// Created by Dino Gustin on 29/05/2018.
//

#import "PPDetectorRecognizerResult.h"

/**
* Class representing values obtained when scanning front side of Sweden DL
*/
PP_CLASS_AVAILABLE_IOS(6.0)
@interface PPSwedenDLFrontRecognizerResult : PPDetectorRecognizerResult

/**
* The Surname of the Sweden DL owner.
*/
@property (nonatomic, readonly, nullable) NSString *surname;

/**
* The Name of the Sweden DL owner.
*/
@property (nonatomic, readonly, nullable) NSString *name;

/**
* The Date Of Birth of the Sweden DL owner.
*/
@property (nonatomic, readonly, nullable) NSDate *dateOfBirth;

/**
* The Date Of Issue of the Sweden DL.
*/
@property (nonatomic, readonly, nullable) NSDate *dateOfIssue;

/**
* The Date Of Expiry of the Sweden DL.
*/
@property (nonatomic, readonly, nullable) NSDate *dateOfExpiry;

/**
* The Issuing Agency of the Sweden DL.
*/
@property (nonatomic, readonly, nullable) NSString *issuingAgency;

/**
* The Reference Number of the Sweden DL.
*/
@property (nonatomic, readonly, nullable) NSString *referenceNumber;

/**
* The Licence Categories of the Sweden DL.
*/
@property (nonatomic, readonly, nullable) NSString *licenceCategories;

/**
* The Licence Numer of the Sweden DL.
*/
@property (nonatomic, readonly, nullable) NSString *licenceNumber;

@end
127 changes: 127 additions & 0 deletions MicroBlink.framework/Headers/PPSwedenDLFrontRecognizerSettings.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,127 @@
//
// PPSwedenDLFrontRecognizerSettings.h
// MicroBlinkDev
//
// Created by Dino Gustin on 29/05/2018.
//

#import "PPRecognizerSettings.h"

/**
* Settings class for configuring Sweden DL Front Recognizer.
*
* Sweden DL Front recognizer is used for scanning front side of Sweden DL.
*/
PP_CLASS_AVAILABLE_IOS(6.0)
@interface PPSwedenDLFrontRecognizerSettings : PPRecognizerSettings

/**
* Name of the image sent to didOutputMetadata method of scanDelegate object that contains full document.
* This image will be sent to scan delegate during recognition process if displaying of full document image
* is enabled via displayFullDocumentImage property and receiving of dewarpedImage in MetadataSettings is enabled.
*/
+ (NSString *)FULL_DOCUMENT_IMAGE;

/**
* Name of the image sent to didOutputMetadata method of scanDelegate object that contains face.
* This image will be sent to scan delegate during recognition process if displaying of face image
* is enabled via displayFaceImage property and receiving of dewarpedImage in MetadataSettings is enabled.
*/
+ (NSString *)ID_FACE;

/**
* Name of the image sent to didOutputMetadata method of scanDelegate object that contains signature.
* This image will be sent to scan delegate during recognition process if displaying of signature image
* is enabled via displaySignatureImage property and receiving of dewarpedImage in MetadataSettings is enabled.
*/
+ (NSString *)ID_SIGNATURE;

/**
* Defines if owner's surname should be extracted from Sweden DL
*
* Default: YES
*/
@property (nonatomic, assign) BOOL extractSurname;

/**
* Defines if owner's name should be extracted from Sweden DL
*
* Default: YES
*/
@property (nonatomic, assign) BOOL extractName;

/**
* Defines if owner's date of birth should be extracted from Sweden DL
*
* Default: YES
*/
@property (nonatomic, assign) BOOL extractDateOfBirth;

/**
* Defines if date of issue should be extracted from Sweden DL
*
* Default: YES
*/
@property (nonatomic, assign) BOOL extractDateOfIssue;

/**
* Defines if date of expiry should be extracted from Sweden DL
*
* Default: YES
*/
@property (nonatomic, assign) BOOL extractDateOfExpiry;

/**
* Defines if issuing agency should be extracted from Sweden DL
*
* Default: YES
*/
@property (nonatomic, assign) BOOL extractIssuingAgency;

/**
* Defines if reference number should be extracted from Sweden DL
*
* Default: YES
*/
@property (nonatomic, assign) BOOL extractReferenceNumber;

/**
* Defines iflicence categories should be extracted from Sweden DL
*
* Default: YES
*/
@property (nonatomic, assign) BOOL extractLicenceCategories;

/**
* Sets whether full document image from Sweden DL should be sent to didOutputMetadata method of scanDelegate object.
* If you want to recieve this image, be sure to enable dewarpedImage in MetadataSettings.
*
* Default: NO
*/
@property (nonatomic) BOOL displayFullDocumentImage;

/**
* Sets whether face image from Sweden DL should be sent to didOutputMetadata method of scanDelegate object.
* If you want to recieve this image, be sure to enable dewarpedImage in MetadataSettings.
*
* Default: NO
*/
@property (nonatomic) BOOL displayFaceImage;

/**
* Sets whether signature image from Sweden DL should be sent to didOutputMetadata method of scanDelegate object.
* If you want to recieve this image, be sure to enable dewarpedImage in MetadataSettings.
*
* Default: NO
*/
@property (nonatomic) BOOL displaySignatureImage;


/**
* Defines if glare detection should be turned on/off for front side of Sweden DL.
*
* Default: YES
*/
@property (nonatomic, assign) BOOL detectGlare;

@end
Binary file modified MicroBlink.framework/Info.plist
Binary file not shown.
4 changes: 2 additions & 2 deletions MicroBlink.framework/MicroBlink
Git LFS file not shown
50 changes: 40 additions & 10 deletions MicroBlink.framework/_CodeSignature/CodeResources
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@
</data>
<key>Headers/PPBlinkIDRecognizers.h</key>
<data>
zpENoeBIlvQ+Qog25e4IDtrIXPw=
9umUQTxFJt3LiZvKsrmQKNNFn6s=
</data>
<key>Headers/PPBlinkInputRecognizerResult.h</key>
<data>
Expand Down Expand Up @@ -346,11 +346,11 @@
</data>
<key>Headers/PPGermanIDFrontRecognizerResult.h</key>
<data>
pEsyjdpxmjm+I02mmWW5TkjJb8k=
dvKah74xfelf6A5+AVgYdVCkg/s=
</data>
<key>Headers/PPGermanIDFrontRecognizerSettings.h</key>
<data>
JggQFu2GA9vXp78AaTbLm5bxH0s=
7K/qnnaQizc9WuEWPphzItlolRg=
</data>
<key>Headers/PPGermanOldIDRecognizerResult.h</key>
<data>
Expand Down Expand Up @@ -836,6 +836,14 @@
<data>
tkNk/eS5M6aVrJyuQfcgWcWY1mY=
</data>
<key>Headers/PPSwedenDLFrontRecognizerResult.h</key>
<data>
kJUvdFZLfzieIZOvZFT3vZbqN9M=
</data>
<key>Headers/PPSwedenDLFrontRecognizerSettings.h</key>
<data>
wrBoYUyNVHwngqeUtP1QDsQ3MvU=
</data>
<key>Headers/PPSwissIDBackRecognizerResult.h</key>
<data>
R8m9VP7Iou7RX3Zx6klFzUiqQEg=
Expand Down Expand Up @@ -962,7 +970,7 @@
</data>
<key>Info.plist</key>
<data>
OBrrz/9yfjdgf7OIfXUZ+ZczsnQ=
Yknh9WohNC1J64woqszmgUTvIuo=
</data>
<key>Modules/module.modulemap</key>
<data>
Expand Down Expand Up @@ -1272,11 +1280,11 @@
<dict>
<key>hash</key>
<data>
zpENoeBIlvQ+Qog25e4IDtrIXPw=
9umUQTxFJt3LiZvKsrmQKNNFn6s=
</data>
<key>hash2</key>
<data>
QQ8p1gz1Uf6QgPjX6dLDUXf51BVCitIxin5BcfXuhZs=
M5wb1Id0Kq8TDvv5jKHKZFtN2FCFBMdGwEM04p3FrWo=
</data>
</dict>
<key>Headers/PPBlinkInputRecognizerResult.h</key>
Expand Down Expand Up @@ -1910,22 +1918,22 @@
<dict>
<key>hash</key>
<data>
pEsyjdpxmjm+I02mmWW5TkjJb8k=
dvKah74xfelf6A5+AVgYdVCkg/s=
</data>
<key>hash2</key>
<data>
5dQmHnCRH+OCtJp3JckX+jfLxp+g9AtaXOirgCqLwRU=
F9b7n33d3Vdk+NTw51jfk6exfrsA9Scw67nogGh1trg=
</data>
</dict>
<key>Headers/PPGermanIDFrontRecognizerSettings.h</key>
<dict>
<key>hash</key>
<data>
JggQFu2GA9vXp78AaTbLm5bxH0s=
7K/qnnaQizc9WuEWPphzItlolRg=
</data>
<key>hash2</key>
<data>
KHTzLaqFku3zNCFjK6p+1sN7Np505H9D5fLzwag6tko=
gp1vredb1EbjPi7xeYGqoEvHoHd8ZZ8CbL29NpWKdFw=
</data>
</dict>
<key>Headers/PPGermanOldIDRecognizerResult.h</key>
Expand Down Expand Up @@ -3259,6 +3267,28 @@
aq3b7xj7vpg767pQXDTenEVq0cZ9TzQxPfsl5M8KHfk=
</data>
</dict>
<key>Headers/PPSwedenDLFrontRecognizerResult.h</key>
<dict>
<key>hash</key>
<data>
kJUvdFZLfzieIZOvZFT3vZbqN9M=
</data>
<key>hash2</key>
<data>
KRj0pslQme87zWlVtS6pgxtNXT/2hYpkB76ZB8LSaP0=
</data>
</dict>
<key>Headers/PPSwedenDLFrontRecognizerSettings.h</key>
<dict>
<key>hash</key>
<data>
wrBoYUyNVHwngqeUtP1QDsQ3MvU=
</data>
<key>hash2</key>
<data>
WPKQYmo6OeWWgjqdxl/v8KQVbsW3/1GD4V88Cp58sE8=
</data>
</dict>
<key>Headers/PPSwissIDBackRecognizerResult.h</key>
<dict>
<key>hash</key>
Expand Down
Loading

0 comments on commit 207957d

Please sign in to comment.