Skip to content

Commit

Permalink
[iOS] update bindings and license key for v5.12.0
Browse files Browse the repository at this point in the history
  • Loading branch information
krizaa committed Jun 30, 2021
1 parent 1123ed5 commit 6c7d32d
Show file tree
Hide file tree
Showing 4 changed files with 379 additions and 130 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,12 @@ +(void) extractCommonOverlaySettings:(NSDictionary *)jsonOverlaySettings overlay
MBBaseOverlaySettings *baseOverlaySettings = (MBBaseOverlaySettings*)overlaySettings;
{
id enableBeep = [jsonOverlaySettings objectForKey:@"enableBeep"];
if (enableBeep != nil && [(NSNumber*)enableBeep boolValue]) {
baseOverlaySettings.soundFilePath = @"PPBeep.wav";
if ([enableBeep isKindOfClass:NSNumber.class]) {
if (((NSNumber*)enableBeep).boolValue) {
baseOverlaySettings.soundFilePath = @"PPBeep.wav";
} else {
baseOverlaySettings.soundFilePath = @"";
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ -(MBRecognizer *) createRecognizer:(NSDictionary*) jsonRecognizer {
recognizer.allowBlurFilter = [(NSNumber *)allowBlurFilter boolValue];
}
}
{
id allowUncertainFrontSideScan = [jsonRecognizer valueForKey:@"allowUncertainFrontSideScan"];
if (allowUncertainFrontSideScan != nil) {
recognizer.allowUncertainFrontSideScan = [(NSNumber *)allowUncertainFrontSideScan boolValue];
}
}
{
id allowUnparsedMrzResults = [jsonRecognizer valueForKey:@"allowUnparsedMrzResults"];
if (allowUnparsedMrzResults != nil) {
Expand Down Expand Up @@ -59,6 +65,12 @@ -(MBRecognizer *) createRecognizer:(NSDictionary*) jsonRecognizer {
recognizer.fullDocumentImageExtensionFactors = [MBCommonSerializationUtils deserializeMBImageExtensionFactors:(NSDictionary*)fullDocumentImageExtensionFactors];
}
}
{
id maxAllowedMismatchesPerField = [jsonRecognizer valueForKey:@"maxAllowedMismatchesPerField"];
if (maxAllowedMismatchesPerField != nil) {
recognizer.maxAllowedMismatchesPerField = [(NSNumber *)maxAllowedMismatchesPerField integerValue];
}
}
{
id paddingEdge = [jsonRecognizer valueForKey:@"paddingEdge"];
if (paddingEdge != nil) {
Expand Down Expand Up @@ -137,6 +149,7 @@ -(NSDictionary *) serializeResult {
[jsonResult setValue:self.result.address forKey:@"address"];
[jsonResult setValue:[NSNumber numberWithInteger:self.result.age] forKey:@"age"];
[jsonResult setValue:[MBBlinkIDSerializationUtils serializeImageAnalysisResult:self.result.backImageAnalysisResult] forKey:@"backImageAnalysisResult"];
[jsonResult setValue:[NSNumber numberWithInteger:(self.result.backProcessingStatus + 1)] forKey:@"backProcessingStatus"];
[jsonResult setValue:[MBBlinkIDSerializationUtils serializeVizResult:self.result.backVizResult] forKey:@"backVizResult"];
[jsonResult setValue:[MBBlinkIDSerializationUtils serializeBarcodeResult:self.result.barcodeResult] forKey:@"barcodeResult"];
[jsonResult setValue:[MBBlinkIDSerializationUtils serializeClassInfo:self.result.classInfo] forKey:@"classInfo"];
Expand All @@ -156,6 +169,7 @@ -(NSDictionary *) serializeResult {
[jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.faceImage] forKey:@"faceImage"];
[jsonResult setValue:self.result.firstName forKey:@"firstName"];
[jsonResult setValue:[MBBlinkIDSerializationUtils serializeImageAnalysisResult:self.result.frontImageAnalysisResult] forKey:@"frontImageAnalysisResult"];
[jsonResult setValue:[NSNumber numberWithInteger:(self.result.frontProcessingStatus + 1)] forKey:@"frontProcessingStatus"];
[jsonResult setValue:[MBBlinkIDSerializationUtils serializeVizResult:self.result.frontVizResult] forKey:@"frontVizResult"];
[jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.fullDocumentBackImage] forKey:@"fullDocumentBackImage"];
[jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.fullDocumentFrontImage] forKey:@"fullDocumentFrontImage"];
Expand Down
Loading

0 comments on commit 6c7d32d

Please sign in to comment.