C# Класс FacialRecognitionDoor.FacialRecognition.FaceApiRecognizer

Наследование: IFaceRecognizer
Показать файл Открыть проект

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
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

Описание методов

AddImageToWhitelistAsync() публичный Метод

public AddImageToWhitelistAsync ( StorageFile imageFile, string personName = null ) : Task
imageFile Windows.Storage.StorageFile
personName string
Результат Task

AddPersonToWhitelistAsync() публичный Метод

public AddPersonToWhitelistAsync ( StorageFolder faceImagesFolder, string personName = null ) : Task
faceImagesFolder Windows.Storage.StorageFolder
personName string
Результат Task

CreateWhitelistFromFolderAsync() публичный Метод

public CreateWhitelistFromFolderAsync ( string whitelistId, StorageFolder whitelistFolder = null, IProgress progress = null ) : Task
whitelistId string
whitelistFolder Windows.Storage.StorageFolder
progress IProgress
Результат Task

FaceRecognizeAsync() публичный Метод

public FaceRecognizeAsync ( StorageFile imageFile ) : Task>
imageFile Windows.Storage.StorageFile
Результат Task>

RemoveImageFromWhitelistAsync() публичный Метод

public RemoveImageFromWhitelistAsync ( StorageFile imageFile, string personName = null ) : Task
imageFile Windows.Storage.StorageFile
personName string
Результат Task

RemovePersonFromWhitelistAsync() публичный Метод

public RemovePersonFromWhitelistAsync ( string personName ) : Task
personName string
Результат Task