-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #35 from BlinkID/release/v4.11.0
Release/v4.11.0
- Loading branch information
Showing
66 changed files
with
2,272 additions
and
191 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Git LFS file not shown
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
93 changes: 93 additions & 0 deletions
93
...nkID.Forms/BlinkID.Forms.Android/Recognizers/Implementations/BelgiumCombinedRecognizer.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
using Microblink.Forms.Droid.Recognizers; | ||
using Microblink.Forms.Core.Recognizers; | ||
|
||
[assembly: Xamarin.Forms.Dependency(typeof(BelgiumCombinedRecognizer))] | ||
namespace Microblink.Forms.Droid.Recognizers | ||
{ | ||
public sealed class BelgiumCombinedRecognizer : Recognizer, IBelgiumCombinedRecognizer | ||
{ | ||
Com.Microblink.Entities.Recognizers.Blinkid.Belgium.BelgiumCombinedRecognizer nativeRecognizer; | ||
|
||
BelgiumCombinedRecognizerResult result; | ||
|
||
public BelgiumCombinedRecognizer() : base(new Com.Microblink.Entities.Recognizers.Blinkid.Belgium.BelgiumCombinedRecognizer()) | ||
{ | ||
nativeRecognizer = NativeRecognizer as Com.Microblink.Entities.Recognizers.Blinkid.Belgium.BelgiumCombinedRecognizer; | ||
result = new BelgiumCombinedRecognizerResult(nativeRecognizer.GetResult() as Com.Microblink.Entities.Recognizers.Blinkid.Belgium.BelgiumCombinedRecognizer.Result); | ||
} | ||
|
||
public override IRecognizerResult BaseResult => result; | ||
|
||
public IBelgiumCombinedRecognizerResult Result => result; | ||
|
||
|
||
public bool DetectGlare | ||
{ | ||
get => nativeRecognizer.ShouldDetectGlare(); | ||
set => nativeRecognizer.SetDetectGlare(value); | ||
} | ||
|
||
public uint FaceImageDpi | ||
{ | ||
get => (uint)nativeRecognizer.FaceImageDpi; | ||
set => nativeRecognizer.FaceImageDpi = (int)value; | ||
} | ||
|
||
public uint FullDocumentImageDpi | ||
{ | ||
get => (uint)nativeRecognizer.FullDocumentImageDpi; | ||
set => nativeRecognizer.FullDocumentImageDpi = (int)value; | ||
} | ||
|
||
public IImageExtensionFactors FullDocumentImageExtensionFactors | ||
{ | ||
get => new ImageExtensionFactors(nativeRecognizer.FullDocumentImageExtensionFactors); | ||
set => nativeRecognizer.FullDocumentImageExtensionFactors = (value as ImageExtensionFactors).NativeImageExtensionFactors; | ||
} | ||
|
||
public bool ReturnFaceImage | ||
{ | ||
get => nativeRecognizer.ShouldReturnFaceImage(); | ||
set => nativeRecognizer.SetReturnFaceImage(value); | ||
} | ||
|
||
public bool ReturnFullDocumentImage | ||
{ | ||
get => nativeRecognizer.ShouldReturnFullDocumentImage(); | ||
set => nativeRecognizer.SetReturnFullDocumentImage(value); | ||
} | ||
|
||
public bool SignResult | ||
{ | ||
get => nativeRecognizer.ShouldSignResult(); | ||
set => nativeRecognizer.SetSignResult(value); | ||
} | ||
|
||
} | ||
|
||
public sealed class BelgiumCombinedRecognizerResult : RecognizerResult, IBelgiumCombinedRecognizerResult | ||
{ | ||
Com.Microblink.Entities.Recognizers.Blinkid.Belgium.BelgiumCombinedRecognizer.Result nativeResult; | ||
|
||
internal BelgiumCombinedRecognizerResult(Com.Microblink.Entities.Recognizers.Blinkid.Belgium.BelgiumCombinedRecognizer.Result nativeResult) : base(nativeResult) | ||
{ | ||
this.nativeResult = nativeResult; | ||
} | ||
public string CardNumber => nativeResult.CardNumber; | ||
public IDate DateOfBirth => nativeResult.DateOfBirth.Date != null ? new Date(nativeResult.DateOfBirth.Date) : null; | ||
public IDate DateOfExpiry => nativeResult.DateOfExpiry.Date != null ? new Date(nativeResult.DateOfExpiry.Date) : null; | ||
public byte[] DigitalSignature => nativeResult.GetDigitalSignature(); | ||
public uint DigitalSignatureVersion => (uint)nativeResult.DigitalSignatureVersion; | ||
public bool DocumentDataMatch => nativeResult.IsDocumentDataMatch; | ||
public Xamarin.Forms.ImageSource FaceImage => nativeResult.FaceImage != null ? Utils.ConvertAndroidBitmap(nativeResult.FaceImage.ConvertToBitmap()) : null; | ||
public string FirstName => nativeResult.FirstName; | ||
public Xamarin.Forms.ImageSource FullDocumentBackImage => nativeResult.FullDocumentBackImage != null ? Utils.ConvertAndroidBitmap(nativeResult.FullDocumentBackImage.ConvertToBitmap()) : null; | ||
public Xamarin.Forms.ImageSource FullDocumentFrontImage => nativeResult.FullDocumentFrontImage != null ? Utils.ConvertAndroidBitmap(nativeResult.FullDocumentFrontImage.ConvertToBitmap()) : null; | ||
public string IssuedBy => nativeResult.IssuedBy; | ||
public string LastName => nativeResult.LastName; | ||
public bool MrzVerified => nativeResult.IsMrzVerified; | ||
public string Nationality => nativeResult.Nationality; | ||
public bool ScanningFirstSideDone => nativeResult.IsScanningFirstSideDone; | ||
public string Sex => nativeResult.Sex; | ||
} | ||
} |
61 changes: 61 additions & 0 deletions
61
...linkID.Forms/BlinkID.Forms.Android/Recognizers/Implementations/BelgiumIdBackRecognizer.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
using Microblink.Forms.Droid.Recognizers; | ||
using Microblink.Forms.Core.Recognizers; | ||
|
||
[assembly: Xamarin.Forms.Dependency(typeof(BelgiumIdBackRecognizer))] | ||
namespace Microblink.Forms.Droid.Recognizers | ||
{ | ||
public sealed class BelgiumIdBackRecognizer : Recognizer, IBelgiumIdBackRecognizer | ||
{ | ||
Com.Microblink.Entities.Recognizers.Blinkid.Belgium.BelgiumIdBackRecognizer nativeRecognizer; | ||
|
||
BelgiumIdBackRecognizerResult result; | ||
|
||
public BelgiumIdBackRecognizer() : base(new Com.Microblink.Entities.Recognizers.Blinkid.Belgium.BelgiumIdBackRecognizer()) | ||
{ | ||
nativeRecognizer = NativeRecognizer as Com.Microblink.Entities.Recognizers.Blinkid.Belgium.BelgiumIdBackRecognizer; | ||
result = new BelgiumIdBackRecognizerResult(nativeRecognizer.GetResult() as Com.Microblink.Entities.Recognizers.Blinkid.Belgium.BelgiumIdBackRecognizer.Result); | ||
} | ||
|
||
public override IRecognizerResult BaseResult => result; | ||
|
||
public IBelgiumIdBackRecognizerResult Result => result; | ||
|
||
|
||
public bool DetectGlare | ||
{ | ||
get => nativeRecognizer.ShouldDetectGlare(); | ||
set => nativeRecognizer.SetDetectGlare(value); | ||
} | ||
|
||
public uint FullDocumentImageDpi | ||
{ | ||
get => (uint)nativeRecognizer.FullDocumentImageDpi; | ||
set => nativeRecognizer.FullDocumentImageDpi = (int)value; | ||
} | ||
|
||
public IImageExtensionFactors FullDocumentImageExtensionFactors | ||
{ | ||
get => new ImageExtensionFactors(nativeRecognizer.FullDocumentImageExtensionFactors); | ||
set => nativeRecognizer.FullDocumentImageExtensionFactors = (value as ImageExtensionFactors).NativeImageExtensionFactors; | ||
} | ||
|
||
public bool ReturnFullDocumentImage | ||
{ | ||
get => nativeRecognizer.ShouldReturnFullDocumentImage(); | ||
set => nativeRecognizer.SetReturnFullDocumentImage(value); | ||
} | ||
|
||
} | ||
|
||
public sealed class BelgiumIdBackRecognizerResult : RecognizerResult, IBelgiumIdBackRecognizerResult | ||
{ | ||
Com.Microblink.Entities.Recognizers.Blinkid.Belgium.BelgiumIdBackRecognizer.Result nativeResult; | ||
|
||
internal BelgiumIdBackRecognizerResult(Com.Microblink.Entities.Recognizers.Blinkid.Belgium.BelgiumIdBackRecognizer.Result nativeResult) : base(nativeResult) | ||
{ | ||
this.nativeResult = nativeResult; | ||
} | ||
public Xamarin.Forms.ImageSource FullDocumentImage => nativeResult.FullDocumentImage != null ? Utils.ConvertAndroidBitmap(nativeResult.FullDocumentImage.ConvertToBitmap()) : null; | ||
public IMrzResult MrzResult => new MrzResult(nativeResult.MrzResult); | ||
} | ||
} |
74 changes: 74 additions & 0 deletions
74
...inkID.Forms/BlinkID.Forms.Android/Recognizers/Implementations/BelgiumIdFrontRecognizer.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
using Microblink.Forms.Droid.Recognizers; | ||
using Microblink.Forms.Core.Recognizers; | ||
|
||
[assembly: Xamarin.Forms.Dependency(typeof(BelgiumIdFrontRecognizer))] | ||
namespace Microblink.Forms.Droid.Recognizers | ||
{ | ||
public sealed class BelgiumIdFrontRecognizer : Recognizer, IBelgiumIdFrontRecognizer | ||
{ | ||
Com.Microblink.Entities.Recognizers.Blinkid.Belgium.BelgiumIdFrontRecognizer nativeRecognizer; | ||
|
||
BelgiumIdFrontRecognizerResult result; | ||
|
||
public BelgiumIdFrontRecognizer() : base(new Com.Microblink.Entities.Recognizers.Blinkid.Belgium.BelgiumIdFrontRecognizer()) | ||
{ | ||
nativeRecognizer = NativeRecognizer as Com.Microblink.Entities.Recognizers.Blinkid.Belgium.BelgiumIdFrontRecognizer; | ||
result = new BelgiumIdFrontRecognizerResult(nativeRecognizer.GetResult() as Com.Microblink.Entities.Recognizers.Blinkid.Belgium.BelgiumIdFrontRecognizer.Result); | ||
} | ||
|
||
public override IRecognizerResult BaseResult => result; | ||
|
||
public IBelgiumIdFrontRecognizerResult Result => result; | ||
|
||
|
||
public bool DetectGlare | ||
{ | ||
get => nativeRecognizer.ShouldDetectGlare(); | ||
set => nativeRecognizer.SetDetectGlare(value); | ||
} | ||
|
||
public uint FaceImageDpi | ||
{ | ||
get => (uint)nativeRecognizer.FaceImageDpi; | ||
set => nativeRecognizer.FaceImageDpi = (int)value; | ||
} | ||
|
||
public uint FullDocumentImageDpi | ||
{ | ||
get => (uint)nativeRecognizer.FullDocumentImageDpi; | ||
set => nativeRecognizer.FullDocumentImageDpi = (int)value; | ||
} | ||
|
||
public IImageExtensionFactors FullDocumentImageExtensionFactors | ||
{ | ||
get => new ImageExtensionFactors(nativeRecognizer.FullDocumentImageExtensionFactors); | ||
set => nativeRecognizer.FullDocumentImageExtensionFactors = (value as ImageExtensionFactors).NativeImageExtensionFactors; | ||
} | ||
|
||
public bool ReturnFaceImage | ||
{ | ||
get => nativeRecognizer.ShouldReturnFaceImage(); | ||
set => nativeRecognizer.SetReturnFaceImage(value); | ||
} | ||
|
||
public bool ReturnFullDocumentImage | ||
{ | ||
get => nativeRecognizer.ShouldReturnFullDocumentImage(); | ||
set => nativeRecognizer.SetReturnFullDocumentImage(value); | ||
} | ||
|
||
} | ||
|
||
public sealed class BelgiumIdFrontRecognizerResult : RecognizerResult, IBelgiumIdFrontRecognizerResult | ||
{ | ||
Com.Microblink.Entities.Recognizers.Blinkid.Belgium.BelgiumIdFrontRecognizer.Result nativeResult; | ||
|
||
internal BelgiumIdFrontRecognizerResult(Com.Microblink.Entities.Recognizers.Blinkid.Belgium.BelgiumIdFrontRecognizer.Result nativeResult) : base(nativeResult) | ||
{ | ||
this.nativeResult = nativeResult; | ||
} | ||
public string CardNumber => nativeResult.CardNumber; | ||
public Xamarin.Forms.ImageSource FaceImage => nativeResult.FaceImage != null ? Utils.ConvertAndroidBitmap(nativeResult.FaceImage.ConvertToBitmap()) : null; | ||
public Xamarin.Forms.ImageSource FullDocumentImage => nativeResult.FullDocumentImage != null ? Utils.ConvertAndroidBitmap(nativeResult.FullDocumentImage.ConvertToBitmap()) : null; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.