C# Class FacialRecognitionDoor.FacialRecognition.FaceApiRecognizer

Inheritance: IFaceRecognizer
Show file Open project: ms-iot/Facial-Recognition-Door

Public Methods

Method Description
AddImageToWhitelistAsync ( StorageFile imageFile, string personName = null ) : Task
AddPersonToWhitelistAsync ( StorageFolder faceImagesFolder, string personName = null ) : Task
CreateWhitelistFromFolderAsync ( string whitelistId, StorageFolder whitelistFolder = null, IProgress progress = null ) : Task
FaceRecognizeAsync ( StorageFile imageFile ) : Task>
RemoveImageFromWhitelistAsync ( StorageFile imageFile, string personName = null ) : Task
RemovePersonFromWhitelistAsync ( string personName ) : Task

Private Methods

Method Description
AddFace ( System.Guid personId, System.Guid faceId, string imagePath ) : System.Threading.Tasks.Task

Add face to both Cloud Face API and local whitelist

BuildWhiteListAsync ( IProgress progress, double progressCnt ) : System.Threading.Tasks.Task

Use whitelist folder to build whitelist Database

CreatePerson ( string personName, StorageFolder personFolder ) : Task

Create a person into Face API and whitelist

DetectFaceFromImage ( StorageFile imageFile ) : Task

Detect face and return the face id of a image file

DetectFacesFromImage ( StorageFile imageFile ) : Task

Detect face and return the face id of a image file

FaceApiRecognizer ( ) : System

Constructor Initial Face Api client

RemoveFace ( System.Guid personId, System.Guid faceId ) : System.Threading.Tasks.Task

Remove face from both Cloud Face API and local whitelist

RemovePerson ( System.Guid personId ) : System.Threading.Tasks.Task
TrainingWhitelistAsync ( ) : Task

Train whitelist until training finished

UpdateProgress ( IProgress progress, double progressCnt ) : void

Method Details

AddImageToWhitelistAsync() public method

public AddImageToWhitelistAsync ( StorageFile imageFile, string personName = null ) : Task
imageFile Windows.Storage.StorageFile
personName string
return Task

AddPersonToWhitelistAsync() public method

public AddPersonToWhitelistAsync ( StorageFolder faceImagesFolder, string personName = null ) : Task
faceImagesFolder Windows.Storage.StorageFolder
personName string
return Task

CreateWhitelistFromFolderAsync() public method

public CreateWhitelistFromFolderAsync ( string whitelistId, StorageFolder whitelistFolder = null, IProgress progress = null ) : Task
whitelistId string
whitelistFolder Windows.Storage.StorageFolder
progress IProgress
return Task

FaceRecognizeAsync() public method

public FaceRecognizeAsync ( StorageFile imageFile ) : Task>
imageFile Windows.Storage.StorageFile
return Task>

RemoveImageFromWhitelistAsync() public method

public RemoveImageFromWhitelistAsync ( StorageFile imageFile, string personName = null ) : Task
imageFile Windows.Storage.StorageFile
personName string
return Task

RemovePersonFromWhitelistAsync() public method

public RemovePersonFromWhitelistAsync ( string personName ) : Task
personName string
return Task