Skip to content

Commit

Permalink
Merge pull request #64 from BlinkID/release/5.12.0
Browse files Browse the repository at this point in the history
Release/5.12.0
  • Loading branch information
krizaa authored Jul 2, 2021
2 parents 8864877 + 880cd85 commit 4677913
Show file tree
Hide file tree
Showing 74 changed files with 1,797 additions and 1,403 deletions.
6 changes: 3 additions & 3 deletions Binding/Android/AndroidBinding.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@
<MonoAndroidAssetsPrefix>Assets</MonoAndroidAssetsPrefix>
<AndroidClassParser>class-parse</AndroidClassParser>
<PackageId>BlinkID.Android.Binding</PackageId>
<PackageVersion>5.11.0</PackageVersion>
<PackageVersion>5.12.0</PackageVersion>
<Authors>Microblink</Authors>
<Owners>Microblink</Owners>
<PackageProjectUrl>https://github.com/blinkid/blinkid-xamarin</PackageProjectUrl>
<PackageReleaseNotes>Updated to BlinkID Android SDK v5.11.0
<PackageReleaseNotes>Updated to BlinkID Android SDK v5.12.0

https://github.com/BlinkID/blinkid-android/releases/tag/v5.11.0</PackageReleaseNotes>
https://github.com/BlinkID/blinkid-android/releases/tag/v5.12.0</PackageReleaseNotes>
<Summary>A small, but powerful ID scanning library - native Android SDK binding package.</Summary>
<Title>BlinkID</Title>
<Description>A small, but powerful ID scanning library - native Android SDK binding package.</Description>
Expand Down
4 changes: 2 additions & 2 deletions Binding/Android/Jars/LibBlinkID.aar
Git LFS file not shown
2 changes: 1 addition & 1 deletion Binding/Android/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@
// if desired. See the Mono documentation for more information about signing.

//[assembly: AssemblyDelaySign(false)]
//[assembly: AssemblyKeyFile("")]
//[assembly: AssemblyKeyFile("")]
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<AndroidResgenFile>Resources\Resource.designer.cs</AndroidResgenFile>
<MonoAndroidAssetsPrefix>Assets</MonoAndroidAssetsPrefix>
<PackageId>BlinkID.Forms.Android</PackageId>
<PackageVersion>5.11.0</PackageVersion>
<PackageVersion>5.12.0</PackageVersion>
<Authors>Microblink</Authors>
<Owners>Microblink</Owners>
<PackageProjectUrl>https://github.com/blinkid/blinkid-xamarin</PackageProjectUrl>
Expand All @@ -26,9 +26,9 @@
<Description>A small, but powerful ID scanning library - Android implementation for Xamarin Forms.</Description>
<ReleaseVersion>4.0.0</ReleaseVersion>
<PackOnBuild>true</PackOnBuild>
<PackageReleaseNotes>Updated for BlinkID Android SDK v5.11.0
<PackageReleaseNotes>Updated for BlinkID Android SDK v5.12.0

https://github.com/BlinkID/blinkid-android/releases/tag/v5.11.0</PackageReleaseNotes>
https://github.com/BlinkID/blinkid-android/releases/tag/v5.12.0</PackageReleaseNotes>
<!-- Workaround for build error -->
<DesignTimeBuild>false</DesignTimeBuild>
</PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,4 +121,4 @@ public IMicroblinkScanner CreateMicroblinkScanner(string licenseKey, string lice
return new MicroblinkScannerImplementation(licenseKey, licensee, showTimeLimitedLicenseWarning, AndroidHostActivity);
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@
// if desired. See the Mono documentation for more information about signing.

//[assembly: AssemblyDelaySign(false)]
//[assembly: AssemblyKeyFile("")]
//[assembly: AssemblyKeyFile("")]
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@ public bool AllowBlurFilter
set => nativeRecognizer.SetAllowBlurFilter(value);
}

public bool AllowUncertainFrontSideScan
{
get => nativeRecognizer.ShouldAllowUncertainFrontSideScan();
set => nativeRecognizer.SetAllowUncertainFrontSideScan(value);
}

public bool AllowUnparsedMrzResults
{
get => nativeRecognizer.ShouldAllowUnparsedMrzResults();
Expand Down Expand Up @@ -63,6 +69,12 @@ public IImageExtensionFactors FullDocumentImageExtensionFactors
set => nativeRecognizer.FullDocumentImageExtensionFactors = (value as ImageExtensionFactors).NativeImageExtensionFactors;
}

public int MaxAllowedMismatchesPerField
{
get => nativeRecognizer.MaxAllowedMismatchesPerField;
set => nativeRecognizer.MaxAllowedMismatchesPerField = (int)value;
}

public float PaddingEdge
{
get => nativeRecognizer.PaddingEdge;
Expand Down Expand Up @@ -138,6 +150,7 @@ internal BlinkIdCombinedRecognizerResult(Com.Microblink.Entities.Recognizers.Bli
public string Address => nativeResult.Address;
public int Age => (int)nativeResult.Age;
public IImageAnalysisResult BackImageAnalysisResult => new ImageAnalysisResult(nativeResult.BackImageAnalysisResult);
public ProcessingStatus BackProcessingStatus => (ProcessingStatus)nativeResult.BackProcessingStatus.Ordinal();
public IVizResult BackVizResult => new VizResult(nativeResult.BackVizResult);
public IBarcodeResult BarcodeResult => new BarcodeResult(nativeResult.BarcodeResult);
public IClassInfo ClassInfo => nativeResult.ClassInfo != null ? new ClassInfo(nativeResult.ClassInfo) : null;
Expand All @@ -157,6 +170,7 @@ internal BlinkIdCombinedRecognizerResult(Com.Microblink.Entities.Recognizers.Bli
public Xamarin.Forms.ImageSource FaceImage => nativeResult.FaceImage != null ? Utils.ConvertAndroidBitmap(nativeResult.FaceImage.ConvertToBitmap()) : null;
public string FirstName => nativeResult.FirstName;
public IImageAnalysisResult FrontImageAnalysisResult => new ImageAnalysisResult(nativeResult.FrontImageAnalysisResult);
public ProcessingStatus FrontProcessingStatus => (ProcessingStatus)nativeResult.FrontProcessingStatus.Ordinal();
public IVizResult FrontVizResult => new VizResult(nativeResult.FrontVizResult);
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;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
using BlinkID.Forms.Droid.Recognizers;
using BlinkID.Forms.Core.Recognizers;

[assembly: Xamarin.Forms.Dependency(typeof(ImageExtensionFactorsFactory))]
[assembly: Xamarin.Forms.Dependency(typeof(RecognitionModeFilterFactory))]
namespace BlinkID.Forms.Droid.Recognizers
{
Expand Down Expand Up @@ -84,29 +83,6 @@ public DriverLicenseDetailedInfo(Com.Microblink.Entities.Recognizers.Blinkid.Gen

}

public sealed class ImageExtensionFactors : IImageExtensionFactors
{
public Com.Microblink.Entities.Recognizers.Blinkid.Imageoptions.Extension.ImageExtensionFactors NativeImageExtensionFactors { get; }

public ImageExtensionFactors(Com.Microblink.Entities.Recognizers.Blinkid.Imageoptions.Extension.ImageExtensionFactors nativeExtentionFactors)
{
NativeImageExtensionFactors = nativeExtentionFactors;
}

public float UpFactor => NativeImageExtensionFactors.UpFactor;
public float RightFactor => NativeImageExtensionFactors.RightFactor;
public float DownFactor => NativeImageExtensionFactors.DownFactor;
public float LeftFactor => NativeImageExtensionFactors.LeftFactor;
}

public sealed class ImageExtensionFactorsFactory : IImageExtensionFactorsFactory
{
public IImageExtensionFactors CreateImageExtensionFactors(float upFactor = 0, float downFactor = 0, float leftFactor = 0, float rightFactor = 0)
{
return new ImageExtensionFactors(new Com.Microblink.Entities.Recognizers.Blinkid.Imageoptions.Extension.ImageExtensionFactors(upFactor, downFactor, leftFactor, rightFactor));
}
}

public sealed class ClassInfo : IClassInfo
{
Com.Microblink.Entities.Recognizers.Blinkid.Generic.Classinfo.ClassInfo nativeClassInfo;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using BlinkID.Forms.Droid.Recognizers;
using BlinkID.Forms.Core.Recognizers;

[assembly: Xamarin.Forms.Dependency(typeof(ImageExtensionFactorsFactory))]
namespace BlinkID.Forms.Droid.Recognizers
{
public sealed class Date : IDate
Expand Down Expand Up @@ -46,4 +47,27 @@ public Quadrilateral(Com.Microblink.Geometry.Quadrilateral nativeQuad)
public IPoint LowerLeft { get => new Point(nativeQuad.LowerLeft); }
public IPoint LowerRight { get => new Point(nativeQuad.LowerRight); }
}

public sealed class ImageExtensionFactors : IImageExtensionFactors
{
public Com.Microblink.Entities.Recognizers.Blinkid.Imageoptions.Extension.ImageExtensionFactors NativeImageExtensionFactors { get; }

public ImageExtensionFactors(Com.Microblink.Entities.Recognizers.Blinkid.Imageoptions.Extension.ImageExtensionFactors nativeExtentionFactors)
{
NativeImageExtensionFactors = nativeExtentionFactors;
}

public float UpFactor => NativeImageExtensionFactors.UpFactor;
public float RightFactor => NativeImageExtensionFactors.RightFactor;
public float DownFactor => NativeImageExtensionFactors.DownFactor;
public float LeftFactor => NativeImageExtensionFactors.LeftFactor;
}

public sealed class ImageExtensionFactorsFactory : IImageExtensionFactorsFactory
{
public IImageExtensionFactors CreateImageExtensionFactors(float upFactor = 0, float downFactor = 0, float leftFactor = 0, float rightFactor = 0)
{
return new ImageExtensionFactors(new Com.Microblink.Entities.Recognizers.Blinkid.Imageoptions.Extension.ImageExtensionFactors(upFactor, downFactor, leftFactor, rightFactor));
}
}
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
<TargetFramework>netstandard1.0</TargetFramework>
<PackOnBuild>true</PackOnBuild>
<PackageId>BlinkID.Forms.Core</PackageId>
<PackageVersion>5.11.0</PackageVersion>
<PackageVersion>5.12.0</PackageVersion>
<Authors>Microblink</Authors>
<Owners>Microblink</Owners>
<PackageProjectUrl>https://github.com/blinkid/blinkid-xamarin</PackageProjectUrl>
<PackageReleaseNotes>Updated for BlinkID Android and iOS SDKs v5.11.0</PackageReleaseNotes>
<PackageReleaseNotes>Updated for BlinkID Android and iOS SDKs v5.12.0</PackageReleaseNotes>
<Summary>A small, but powerful ID scanning library - abstractions library for Xamarin Forms.</Summary>
<Title>BlinkID</Title>
<Description>A small, but powerful ID scanning library - abstractions library for Xamarin Forms.</Description>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,16 @@ public interface IBlinkIdCombinedRecognizer : IRecognizer
/// </summary>
bool AllowBlurFilter { get; set; }

/// <summary>
/// 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.
///
///
///
/// By default, this is set to 'false'
/// </summary>
bool AllowUncertainFrontSideScan { get; set; }

/// <summary>
/// Defines whether returning of unparsed MRZ (Machine Readable Zone) results is allowed
///
Expand Down Expand Up @@ -74,6 +84,15 @@ public interface IBlinkIdCombinedRecognizer : IRecognizer
/// </summary>
IImageExtensionFactors FullDocumentImageExtensionFactors { get; set; }

/// <summary>
/// Configure the number of characters per field that are allowed to be inconsistent in data match.
///
///
///
/// By default, this is set to '0'
/// </summary>
int MaxAllowedMismatchesPerField { get; set; }

/// <summary>
/// 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 Expand Up @@ -208,6 +227,11 @@ public interface IBlinkIdCombinedRecognizerResult : IRecognizerResult {
/// </summary>
IImageAnalysisResult BackImageAnalysisResult { get; }

/// <summary>
/// Status of the last back side recognition process.
/// </summary>
ProcessingStatus BackProcessingStatus { get; }

/// <summary>
/// Defines the data extracted from the back side visual inspection zone.
/// </summary>
Expand Down Expand Up @@ -312,6 +336,11 @@ public interface IBlinkIdCombinedRecognizerResult : IRecognizerResult {
/// </summary>
IImageAnalysisResult FrontImageAnalysisResult { get; }

/// <summary>
/// Status of the last front side recognition process.
/// </summary>
ProcessingStatus FrontProcessingStatus { get; }

/// <summary>
/// Defines the data extracted from the front side visual inspection zone.
/// </summary>
Expand Down
Loading

0 comments on commit 4677913

Please sign in to comment.