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
파일 보기 프로젝트 열기: ms-iot/Facial-Recognition-Door

공개 메소드들

메소드 설명
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