C# 클래스 FacialRecognitionDoor.MainPage

상속: Windows.UI.Xaml.Controls.Page
파일 보기 프로젝트 열기: ms-iot/Facial-Recognition-Door

공개 메소드들

메소드 설명
InitializeGpio ( ) : void

Called once, when the app is first opened. Initializes device GPIO.

InitializeOxford ( ) : void

Called once, when the app is first opened. Initializes Oxford facial recognition.

MainPage ( ) : FacialRecognitionDoor.FacialRecognition

Called when the page is first navigated to.

보호된 메소드들

메소드 설명
OnNavigatedTo ( NavigationEventArgs e ) : void

Triggered every time the page is navigated to.

비공개 메소드들

메소드 설명
DoorBellPressed ( Windows.Devices.Gpio.GpioPin sender, Windows.Devices.Gpio.GpioPinValueChangedEventArgs args ) : void

Triggered when user presses physical door bell button

DoorbellButton_Click ( object sender, RoutedEventArgs e ) : void

Triggered when user presses virtual doorbell app bar button

DoorbellPressed ( ) : System.Threading.Tasks.Task

Called when user hits physical or vitual doorbell buttons. Captures photo of current webcam view and sends it to Oxford for facial recognition processing.

NewUserButton_Click ( object sender, RoutedEventArgs e ) : void

Called when user hits vitual add user button. Navigates to NewUserPage page.

ShutdownButton_Click ( object sender, RoutedEventArgs e ) : void

Triggered when the user selects the Shutdown button in the app bar. Closes app.

UnlockDoor ( string visitorName ) : void

Unlocks door and greets visitor

UpdateWhitelistedVisitors ( ) : void

Updates internal list of of whitelisted visitors (whitelistedVisitors) and the visible UI grid

UpdateWhitelistedVisitorsGrid ( ) : void

Updates UserInterface list of whitelisted users from the list of Visitor objects (WhitelistedVisitors)

UpdateWhitelistedVisitorsList ( ) : System.Threading.Tasks.Task

Updates the list of Visitor objects with all whitelisted visitors stored on disk

WebcamFeed_Loaded ( object sender, RoutedEventArgs e ) : void

Triggered when webcam feed loads both for the first time and every time page is navigated to. If no WebcamHelper has been created, it creates one. Otherwise, simply restarts webcam preview feed on page.

WhitelistedUsersGrid_ItemClick ( object sender, ItemClickEventArgs e ) : void

Triggered when the user selects a visitor in the WhitelistedUsersGrid

WhitelistedUsersGrid_Loaded ( object sender, RoutedEventArgs e ) : void

Triggered when the whitelisted users grid is loaded. Sets the size of each photo within the grid.

speechMediaElement_Loaded ( object sender, RoutedEventArgs e ) : void

Triggered when media element used to play synthesized speech messages is loaded. Initializes SpeechHelper and greets user.

메소드 상세

InitializeGpio() 공개 메소드

Called once, when the app is first opened. Initializes device GPIO.
public InitializeGpio ( ) : void
리턴 void

InitializeOxford() 공개 메소드

Called once, when the app is first opened. Initializes Oxford facial recognition.
public InitializeOxford ( ) : void
리턴 void

MainPage() 공개 메소드

Called when the page is first navigated to.
public MainPage ( ) : FacialRecognitionDoor.FacialRecognition
리턴 FacialRecognitionDoor.FacialRecognition

OnNavigatedTo() 보호된 메소드

Triggered every time the page is navigated to.
protected OnNavigatedTo ( NavigationEventArgs e ) : void
e Windows.UI.Xaml.Navigation.NavigationEventArgs
리턴 void