YooniK.Face.Client
1.0.0
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package YooniK.Face.Client --version 1.0.0
NuGet\Install-Package YooniK.Face.Client -Version 1.0.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="YooniK.Face.Client" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add YooniK.Face.Client --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: YooniK.Face.Client, 1.0.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install YooniK.Face.Client as a Cake Addin #addin nuget:?package=YooniK.Face.Client&version=1.0.0 // Install YooniK.Face.Client as a Cake Tool #tool nuget:?package=YooniK.Face.Client&version=1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
This package implements an integration SDK to facilitate the consumption of the YooniK.Face API, an YooniK Services offering.
For more information please contact us.
Example
FaceClient methods depend on Yoonik.Services.Client that uses HttpClient to handle the API calls.
For more information feel free to take a look at YooniK.Services.Client
Use it:
// Edit your access credentials
string baseUrl = "YOUR-API-ENDPOINT";
string subscriptionKey = "YOUR-X-API-KEY-ENDPOINT";
var faceConnectionInformation = new ConnectionInformation(baseUrl, subscriptionKey);
// Instantiate the FaceClient and establish a connection
FaceClient faceClient = new FaceClient(faceConnectionInformation);
// Verifies the faces similarity between two images in base 64
VerifyImagesResponse verifyImages = await faceClient.VerifyImagesAsync(firstPhotoInBase64, secondPhotoInBase64);
Console.WriteLine($"Similarity Score: { verifyImages.Score }");
// Processes all the image containing faces, and returning them in a list. This photo only contains one face.
List<ProcessResponse> process = await faceClient.ProcessAync(firstPhotoInBase64);
string firstPhotoTemplate = process.Count == 1 ? process[0].Template : null;
List<ProcessResponse> process2 = await faceClient.ProcessAync(secondPhotoInBase64);
string secondPhotoTemplate = process2.Count == 1 ? process2[0].Template : null;
// Verifies the faces similarity between the extracted biometric template from the processed images
VerifyResponse verify = await faceClient.VerifyAsync(firstPhotoTemplate, secondPhotoTemplate);
Console.WriteLine($"Similarity Score (w/Template): {verify.Score}");
If you're interested in using YooniK.Face API for identification purposes, please visit our sample project.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 is compatible. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net5.0
- YooniK.Services.Client (>= 1.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.