C# Класс FacialRecognitionDoor.Helpers.OxfordFaceAPIHelper

Allows easy access to oxford functions such as adding a visitor to whitelist and checing to see if a visitor is on the whitelist
Показать файл Открыть проект

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

Метод Описание
AddImageToWhitelist ( StorageFile imageFile, string name ) : void

Accepts an image file and the name of a visitor. Associates photo with exisiting visitor.

AddUserToWhitelist ( string name, StorageFolder photoFolder ) : void

Accepts a user name and the folder in which their identifying photos are stored. Adds them to the whitelist.

InitializeOxford ( ) : Task

Initializes Oxford API. Builds existing whitelist or creates one if one does not exist.

IsFaceInWhitelist ( StorageFile image ) : Task>

Checks to see if a whitelisted visitor is in passed through image. Returns list of whitelisted visitors. If no authorized users are detected, returns an empty list.

RemoveUserFromWhitelist ( string name ) : void

Accepts the name of a visitor. Removes them from whitelist.

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

AddImageToWhitelist() публичный статический Метод

Accepts an image file and the name of a visitor. Associates photo with exisiting visitor.
public static AddImageToWhitelist ( StorageFile imageFile, string name ) : void
imageFile Windows.Storage.StorageFile
name string
Результат void

AddUserToWhitelist() публичный статический Метод

Accepts a user name and the folder in which their identifying photos are stored. Adds them to the whitelist.
public static AddUserToWhitelist ( string name, StorageFolder photoFolder ) : void
name string
photoFolder Windows.Storage.StorageFolder
Результат void

InitializeOxford() публичный статический Метод

Initializes Oxford API. Builds existing whitelist or creates one if one does not exist.
public static InitializeOxford ( ) : Task
Результат Task

IsFaceInWhitelist() публичный статический Метод

Checks to see if a whitelisted visitor is in passed through image. Returns list of whitelisted visitors. If no authorized users are detected, returns an empty list.
public static IsFaceInWhitelist ( StorageFile image ) : Task>
image Windows.Storage.StorageFile
Результат Task>

RemoveUserFromWhitelist() публичный статический Метод

Accepts the name of a visitor. Removes them from whitelist.
public static RemoveUserFromWhitelist ( string name ) : void
name string
Результат void