Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update #67

Merged
merged 3 commits into from
Mar 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/Regula.FaceSDK.IdentificationExample/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ public static void Main(string[] args)
var person2Id = sdk.PersonApi.CreatePerson(
new PersonFields(name:"person1")).Id;

sdk.PersonApi.AddImageToPerson(person1Id, new ImageFields(image:new ImageFieldsImage(content: face1)));
sdk.PersonApi.AddImageToPerson(person2Id, new ImageFields(image:new ImageFieldsImage(content: face2)));
sdk.PersonApi.AddImageToPerson(person1Id, new ImageFields(image:new AddImageToPersonRequestImage(content: face1)));
sdk.PersonApi.AddImageToPerson(person2Id, new ImageFields(image:new AddImageToPersonRequestImage(content: face2)));

var person1 = sdk.PersonApi.GetPerson(person1Id);
var person2 = sdk.PersonApi.GetPerson(person2Id);

var group = sdk.GroupApi.CreateGroup(new GroupToCreate(name: "group1"));
var group = sdk.GroupApi.CreateGroup(new GroupToCreate(name: "group1", metadata: new Dictionary<string, object>()));

sdk.GroupApi.UpdatePersonsInGroup(
group.Id,
Expand All @@ -54,7 +54,7 @@ public static void Main(string[] args)
var searchResult = sdk.SearchApi.Search(
new SearchRequest(
groupIds: new List<Guid>() {},
image: new ImageFieldsImage(content: face1),
image: new AddImageToPersonRequestImage(content: face1),
limit: 10,
threshold: 0.8f
)
Expand Down
4 changes: 2 additions & 2 deletions src/Regula.FaceSDK.NetCoreExample/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ private static void Main(string[] args)
var matchImage2 = new MatchImage(data: face1, type: ImageSource.DOCUMENT_RFID);
var matchImage3 = new MatchImage(data: face2, type: ImageSource.LIVE);

var matchingRequest = new MatchRequest(tag: "1",
var matchingRequest = new MatchRequest(tag: Guid.NewGuid().ToString(),
thumbnails:false, images:new List<MatchImage> {matchImage1, matchImage2, matchImage3}
);

Expand All @@ -38,7 +38,7 @@ private static void Main(string[] args)
Console.WriteLine("pair({0}, {1}) similarity: {2}",
comparison.FirstIndex, comparison.SecondIndex, comparison.Similarity);

var detectRequest = new DetectRequest(tag: "1", image:face2);
var detectRequest = new DetectRequest(tag: Guid.NewGuid().ToString(), image:face2);
var detectResponse = sdk.MatchingApi.Detect(detectRequest);
var detectResults = detectResponse.Results;

Expand Down
4 changes: 2 additions & 2 deletions src/Regula.FaceSDK.WebClient/Api/MatchingApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ public void AddDefaultHeader(string key, string value)
}

return new ApiResponse<DetectResponse>(localVarStatusCode,
localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)),
localVarResponse.Headers. GroupBy(x=>x.Name, StringComparer.OrdinalIgnoreCase).ToDictionary(g => g.Key, g => string.Join(",", g.First().Value)),
(DetectResponse) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(DetectResponse)));
}

Expand Down Expand Up @@ -512,7 +512,7 @@ public void AddDefaultHeader(string key, string value)
}

return new ApiResponse<MatchResponse>(localVarStatusCode,
localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)),
localVarResponse.Headers. GroupBy(x=>x.Name, StringComparer.OrdinalIgnoreCase).ToDictionary(g=>g.Key, g => string.Join(",", g.First().Value)),
(MatchResponse) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(MatchResponse)));
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* Regula FaceSDK Web API
* Regula Face SDK Web API
*
* [Download OpenAPI specification](https://github.com/regulaforensics/FaceSDK-web-openapi) ### Clients * [JavaScript](https://github.com/regulaforensics/FaceSDK-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/FaceSDK-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/FaceSDK-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/FaceSDK-web-csharp-client) client for .NET & .NET Core
* <a href=\"https://regulaforensics.com/products/face-recognition-sdk/ \" target=\"_blank\">Regula Face SDK</a> is a cross-platform biometric verification solution for a digital identity verification process. The SDK enables convenient and reliable face capture on the client side (mobile, web, and desktop) and further processing on the client or server side. The Face SDK includes the following features: * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-detection\" target=\"_blank\">Face Detection</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-comparison-11\" target=\"_blank\">Face Match (1:1)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-identification-1n\" target=\"_blank\">Face Search (1:N)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#liveness-assessment\" target=\"_blank\">Liveness Assessment</a> Here is the <a href=\"https://github.com/regulaforensics/FaceSDK-web-openapi \" target=\"_blank\">OpenAPI specification on GitHub</a>. ### Clients * [JavaScript](https://github.com/regulaforensics/FaceSDK-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/FaceSDK-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/FaceSDK-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/FaceSDK-web-csharp-client) client for .NET & .NET Core
*
* The version of the OpenAPI document: 6.1.0
*
Expand Down Expand Up @@ -144,12 +144,12 @@
) &&
(
this.Threshold == input.Threshold ||
(this.Threshold != null &&

Check warning on line 147 in src/Regula.FaceSDK.WebClient/Model/AddImageToPersonRequest.cs

View workflow job for this annotation

GitHub Actions / run_smoke_test

The result of the expression is always 'true' since a value of type 'float' is never equal to 'null' of type 'float?'
this.Threshold.Equals(input.Threshold))
) &&
(
this.Limit == input.Limit ||
(this.Limit != null &&

Check warning on line 152 in src/Regula.FaceSDK.WebClient/Model/AddImageToPersonRequest.cs

View workflow job for this annotation

GitHub Actions / run_smoke_test

The result of the expression is always 'true' since a value of type 'int' is never equal to 'null' of type 'int?'
this.Limit.Equals(input.Limit))
);
}
Expand All @@ -167,9 +167,9 @@
hashCode = hashCode * 59 + this.Tag.GetHashCode();
if (this.Image != null)
hashCode = hashCode * 59 + this.Image.GetHashCode();
if (this.Threshold != null)

Check warning on line 170 in src/Regula.FaceSDK.WebClient/Model/AddImageToPersonRequest.cs

View workflow job for this annotation

GitHub Actions / run_smoke_test

The result of the expression is always 'true' since a value of type 'float' is never equal to 'null' of type 'float?'
hashCode = hashCode * 59 + this.Threshold.GetHashCode();
if (this.Limit != null)

Check warning on line 172 in src/Regula.FaceSDK.WebClient/Model/AddImageToPersonRequest.cs

View workflow job for this annotation

GitHub Actions / run_smoke_test

The result of the expression is always 'true' since a value of type 'int' is never equal to 'null' of type 'int?'
hashCode = hashCode * 59 + this.Limit.GetHashCode();
return hashCode;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* Regula FaceSDK Web API
* Regula Face SDK Web API
*
* [Download OpenAPI specification](https://github.com/regulaforensics/FaceSDK-web-openapi) ### Clients * [JavaScript](https://github.com/regulaforensics/FaceSDK-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/FaceSDK-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/FaceSDK-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/FaceSDK-web-csharp-client) client for .NET & .NET Core
* <a href=\"https://regulaforensics.com/products/face-recognition-sdk/ \" target=\"_blank\">Regula Face SDK</a> is a cross-platform biometric verification solution for a digital identity verification process. The SDK enables convenient and reliable face capture on the client side (mobile, web, and desktop) and further processing on the client or server side. The Face SDK includes the following features: * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-detection\" target=\"_blank\">Face Detection</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-comparison-11\" target=\"_blank\">Face Match (1:1)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-identification-1n\" target=\"_blank\">Face Search (1:N)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#liveness-assessment\" target=\"_blank\">Liveness Assessment</a> Here is the <a href=\"https://github.com/regulaforensics/FaceSDK-web-openapi \" target=\"_blank\">OpenAPI specification on GitHub</a>. ### Clients * [JavaScript](https://github.com/regulaforensics/FaceSDK-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/FaceSDK-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/FaceSDK-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/FaceSDK-web-csharp-client) client for .NET & .NET Core
*
* The version of the OpenAPI document: 6.1.0
*
Expand Down Expand Up @@ -34,7 +34,7 @@ public partial class AddImageToPersonRequestImage : IEquatable<AddImageToPerson
/// Initializes a new instance of the <see cref="AddImageToPersonRequestImage" /> class.
/// </summary>
/// <param name="contentType">Original media type of the uploaded image..</param>
/// <param name="content">Base64 encoded image..</param>
/// <param name="content">Base64-encoded image..</param>
/// <param name="imageUrl">Image URL..</param>
/// <param name="resizeOptions">resizeOptions.</param>
public AddImageToPersonRequestImage(string contentType = default(string), byte[] content = default(byte[]), string imageUrl = default(string), ResizeOptions resizeOptions = default(ResizeOptions))
Expand All @@ -53,9 +53,9 @@ public partial class AddImageToPersonRequestImage : IEquatable<AddImageToPerson
public string ContentType { get; set; }

/// <summary>
/// Base64 encoded image.
/// Base64-encoded image.
/// </summary>
/// <value>Base64 encoded image.</value>
/// <value>Base64-encoded image.</value>
[DataMember(Name="content", EmitDefaultValue=false)]
public byte[] Content { get; set; }

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* Regula FaceSDK Web API
* Regula Face SDK Web API
*
* [Download OpenAPI specification](https://github.com/regulaforensics/FaceSDK-web-openapi) ### Clients * [JavaScript](https://github.com/regulaforensics/FaceSDK-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/FaceSDK-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/FaceSDK-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/FaceSDK-web-csharp-client) client for .NET & .NET Core
* <a href=\"https://regulaforensics.com/products/face-recognition-sdk/ \" target=\"_blank\">Regula Face SDK</a> is a cross-platform biometric verification solution for a digital identity verification process. The SDK enables convenient and reliable face capture on the client side (mobile, web, and desktop) and further processing on the client or server side. The Face SDK includes the following features: * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-detection\" target=\"_blank\">Face Detection</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-comparison-11\" target=\"_blank\">Face Match (1:1)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-identification-1n\" target=\"_blank\">Face Search (1:N)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#liveness-assessment\" target=\"_blank\">Liveness Assessment</a> Here is the <a href=\"https://github.com/regulaforensics/FaceSDK-web-openapi \" target=\"_blank\">OpenAPI specification on GitHub</a>. ### Clients * [JavaScript](https://github.com/regulaforensics/FaceSDK-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/FaceSDK-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/FaceSDK-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/FaceSDK-web-csharp-client) client for .NET & .NET Core
*
* The version of the OpenAPI document: 6.1.0
*
Expand Down
4 changes: 2 additions & 2 deletions src/Regula.FaceSDK.WebClient/Model/AttributeConfig.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* Regula FaceSDK Web API
* Regula Face SDK Web API
*
* [Download OpenAPI specification](https://github.com/regulaforensics/FaceSDK-web-openapi) ### Clients * [JavaScript](https://github.com/regulaforensics/FaceSDK-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/FaceSDK-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/FaceSDK-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/FaceSDK-web-csharp-client) client for .NET & .NET Core
* <a href=\"https://regulaforensics.com/products/face-recognition-sdk/ \" target=\"_blank\">Regula Face SDK</a> is a cross-platform biometric verification solution for a digital identity verification process. The SDK enables convenient and reliable face capture on the client side (mobile, web, and desktop) and further processing on the client or server side. The Face SDK includes the following features: * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-detection\" target=\"_blank\">Face Detection</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-comparison-11\" target=\"_blank\">Face Match (1:1)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-identification-1n\" target=\"_blank\">Face Search (1:N)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#liveness-assessment\" target=\"_blank\">Liveness Assessment</a> Here is the <a href=\"https://github.com/regulaforensics/FaceSDK-web-openapi \" target=\"_blank\">OpenAPI specification on GitHub</a>. ### Clients * [JavaScript](https://github.com/regulaforensics/FaceSDK-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/FaceSDK-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/FaceSDK-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/FaceSDK-web-csharp-client) client for .NET & .NET Core
*
* The version of the OpenAPI document: 6.1.0
*
Expand Down
4 changes: 2 additions & 2 deletions src/Regula.FaceSDK.WebClient/Model/Crop.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* Regula FaceSDK Web API
* Regula Face SDK Web API
*
* [Download OpenAPI specification](https://github.com/regulaforensics/FaceSDK-web-openapi) ### Clients * [JavaScript](https://github.com/regulaforensics/FaceSDK-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/FaceSDK-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/FaceSDK-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/FaceSDK-web-csharp-client) client for .NET & .NET Core
* <a href=\"https://regulaforensics.com/products/face-recognition-sdk/ \" target=\"_blank\">Regula Face SDK</a> is a cross-platform biometric verification solution for a digital identity verification process. The SDK enables convenient and reliable face capture on the client side (mobile, web, and desktop) and further processing on the client or server side. The Face SDK includes the following features: * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-detection\" target=\"_blank\">Face Detection</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-comparison-11\" target=\"_blank\">Face Match (1:1)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-identification-1n\" target=\"_blank\">Face Search (1:N)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#liveness-assessment\" target=\"_blank\">Liveness Assessment</a> Here is the <a href=\"https://github.com/regulaforensics/FaceSDK-web-openapi \" target=\"_blank\">OpenAPI specification on GitHub</a>. ### Clients * [JavaScript](https://github.com/regulaforensics/FaceSDK-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/FaceSDK-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/FaceSDK-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/FaceSDK-web-csharp-client) client for .NET & .NET Core
*
* The version of the OpenAPI document: 6.1.0
*
Expand Down
16 changes: 8 additions & 8 deletions src/Regula.FaceSDK.WebClient/Model/DetectRequest.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* Regula FaceSDK Web API
* Regula Face SDK Web API
*
* [Download OpenAPI specification](https://github.com/regulaforensics/FaceSDK-web-openapi) ### Clients * [JavaScript](https://github.com/regulaforensics/FaceSDK-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/FaceSDK-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/FaceSDK-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/FaceSDK-web-csharp-client) client for .NET & .NET Core
* <a href=\"https://regulaforensics.com/products/face-recognition-sdk/ \" target=\"_blank\">Regula Face SDK</a> is a cross-platform biometric verification solution for a digital identity verification process. The SDK enables convenient and reliable face capture on the client side (mobile, web, and desktop) and further processing on the client or server side. The Face SDK includes the following features: * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-detection\" target=\"_blank\">Face Detection</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-comparison-11\" target=\"_blank\">Face Match (1:1)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-identification-1n\" target=\"_blank\">Face Search (1:N)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#liveness-assessment\" target=\"_blank\">Liveness Assessment</a> Here is the <a href=\"https://github.com/regulaforensics/FaceSDK-web-openapi \" target=\"_blank\">OpenAPI specification on GitHub</a>. ### Clients * [JavaScript](https://github.com/regulaforensics/FaceSDK-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/FaceSDK-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/FaceSDK-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/FaceSDK-web-csharp-client) client for .NET & .NET Core
*
* The version of the OpenAPI document: 6.1.0
*
Expand Down Expand Up @@ -33,9 +33,9 @@ public partial class DetectRequest : IEquatable<DetectRequest>, IValidatableObj
/// <summary>
/// Initializes a new instance of the <see cref="DetectRequest" /> class.
/// </summary>
/// <param name="tag">Session identificator..</param>
/// <param name="tag">Session identificator, should be unique for each session..</param>
/// <param name="processParam">processParam.</param>
/// <param name="image">Base64 encoded image..</param>
/// <param name="image">Base64-encoded image..</param>
/// <param name="thumbnails">Deprecated, use the &#x60;crop&#x60; field in &#x60;processParam&#x60; instead. (default to false).</param>
public DetectRequest(string tag = default(string), ProcessParam processParam = default(ProcessParam), byte[] image = default(byte[]), bool thumbnails = false)
{
Expand All @@ -54,9 +54,9 @@ public partial class DetectRequest : IEquatable<DetectRequest>, IValidatableObj
}

/// <summary>
/// Session identificator.
/// Session identificator, should be unique for each session.
/// </summary>
/// <value>Session identificator.</value>
/// <value>Session identificator, should be unique for each session.</value>
[DataMember(Name="tag", EmitDefaultValue=false)]
public string Tag { get; set; }

Expand All @@ -67,9 +67,9 @@ public partial class DetectRequest : IEquatable<DetectRequest>, IValidatableObj
public ProcessParam ProcessParam { get; set; }

/// <summary>
/// Base64 encoded image.
/// Base64-encoded image.
/// </summary>
/// <value>Base64 encoded image.</value>
/// <value>Base64-encoded image.</value>
[DataMember(Name="image", EmitDefaultValue=false)]
public byte[] Image { get; set; }

Expand Down
Loading
Loading