C# Класс FacialRecognitionDoor.MainPage

Наследование: Windows.UI.Xaml.Controls.Page
Показать файл Открыть проект

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

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