ProxiEdge.FaceId 4.0.0

Microsoft Face Id wrapper library built using [WebClient] to enable progress reporting for Face Id API calls plus full encapsulation of the API requests entities and results into strongly typed objects for easier use.

Install-Package ProxiEdge.FaceId -Version 4.0.0
dotnet add package ProxiEdge.FaceId --version 4.0.0
<PackageReference Include="ProxiEdge.FaceId" Version="4.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add ProxiEdge.FaceId --version 4.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

ProxiEdge.FaceId Library

This library is used as a wrapper for Microsoft Cognitive Service (Face Id).

Sample Usage

ProxiEdge.FaceId.Configurations.FaceApiConfig.Init(ProxiEdge.FaceId.Base.FaceIdEndPoint.eastasia, "[API Key]");

var proxiEdgeFaceDetectionOperation = new ProxiEdge.FaceId.Face.Detect.Operation.FaceDetectionOperation("[Photo Url]", true, true);

proxiEdgeFaceDetectionOperation.ProgressChanged += ProxiEdgeFaceDetectionOperation_ProgressChanged;
proxiEdgeFaceDetectionOperation.OperationCompleted += ProxiEdgeFaceDetectionOperation_OperationCompleted;

proxiEdgeFaceDetectionOperation.Execute();

private void ProxiEdgeFaceDetectionOperation_ProgressChanged(object sender, System.ComponentModel.ProgressChangedEventArgs e)
{
    ShowProgress(e.ProgressPercentage);
}

private void ShowProgress(int progressPercentage) {}

private void ProxiEdgeFaceDetectionOperation_OperationCompleted(object sender, System.Collections.Generic.List<ProxiEdge.FaceId.Face.Detect.Result.FaceDetectionResult> e)
 {
   ProxiEdge.FaceId.Face.Detect.Operation.FaceDetectionOperation operation = (ProxiEdge.FaceId.Face.Detect.Operation.FaceDetectionOperation)sender;
    
    if(operation.IsSuccedded)
            {
                ShowResults(e);
            }
            else
            {
                HandleException(operation.Error);
            }
        }
        

Using the static layer (New)


ProxiEdge.FaceId.API.Face.DetectAsync("[Picture Url]", 
                (operation, result) =>
                { 
                    if(((ProxiEdge.FaceId.Base.IApiOperation)operation).IsSuccedded)
                    {
                        var firstDetectedFaceId = result[0].FaceId;
                    }

                });

ProxiEdge.FaceId Library

This library is used as a wrapper for Microsoft Cognitive Service (Face Id).

Sample Usage

ProxiEdge.FaceId.Configurations.FaceApiConfig.Init(ProxiEdge.FaceId.Base.FaceIdEndPoint.eastasia, "[API Key]");

var proxiEdgeFaceDetectionOperation = new ProxiEdge.FaceId.Face.Detect.Operation.FaceDetectionOperation("[Photo Url]", true, true);

proxiEdgeFaceDetectionOperation.ProgressChanged += ProxiEdgeFaceDetectionOperation_ProgressChanged;
proxiEdgeFaceDetectionOperation.OperationCompleted += ProxiEdgeFaceDetectionOperation_OperationCompleted;

proxiEdgeFaceDetectionOperation.Execute();

private void ProxiEdgeFaceDetectionOperation_ProgressChanged(object sender, System.ComponentModel.ProgressChangedEventArgs e)
{
    ShowProgress(e.ProgressPercentage);
}

private void ShowProgress(int progressPercentage) {}

private void ProxiEdgeFaceDetectionOperation_OperationCompleted(object sender, System.Collections.Generic.List<ProxiEdge.FaceId.Face.Detect.Result.FaceDetectionResult> e)
 {
   ProxiEdge.FaceId.Face.Detect.Operation.FaceDetectionOperation operation = (ProxiEdge.FaceId.Face.Detect.Operation.FaceDetectionOperation)sender;
    
    if(operation.IsSuccedded)
            {
                ShowResults(e);
            }
            else
            {
                HandleException(operation.Error);
            }
        }
        

Using the static layer (New)


ProxiEdge.FaceId.API.Face.DetectAsync("[Picture Url]", 
                (operation, result) =>
                { 
                    if(((ProxiEdge.FaceId.Base.IApiOperation)operation).IsSuccedded)
                    {
                        var firstDetectedFaceId = result[0].FaceId;
                    }

                });

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
4.0.0 195 1/3/2019