C# Class VisionAPI_WPF_Samples.ImageScenarioPage

Common UI code for each Image based scenario
Inheritance: System.Windows.Controls.Page
Afficher le fichier Open project: Microsoft/ProjectOxford-ClientSDK

Private Properties

Свойство Type Description
Log void
ShowPreviewAndDoWork System.Threading.Tasks.Task

Méthodes protégées

Méthode Description
DoWork ( Uri imageUri, bool upload ) : System.Threading.Tasks.Task

Perform the work for this scenario

LoadImageButton_Click ( object sender, RoutedEventArgs e ) : void
LogAnalysisInDomainResult ( AnalysisInDomainResult result ) : void

Log the result of an analysis in domain result

LogAnalysisResult ( AnalysisResult result ) : void

Show Analysis Result

LogOcrResults ( OcrResults results ) : void

Log text from the given OCR results object.

SubmitUriButton_Click ( object sender, RoutedEventArgs e ) : void

Private Methods

Méthode Description
Log ( string message ) : void

Logs a message to the parent control

ShowPreviewAndDoWork ( Uri imageUri, bool upload ) : System.Threading.Tasks.Task

Method Details

DoWork() protected abstract méthode

Perform the work for this scenario
protected abstract DoWork ( Uri imageUri, bool upload ) : System.Threading.Tasks.Task
imageUri System.Uri The URI of the image to run against the scenario
upload bool Upload the image to Project Oxford if [true]; submit the Uri as a remote url if [false];
Résultat System.Threading.Tasks.Task

LoadImageButton_Click() protected méthode

protected LoadImageButton_Click ( object sender, RoutedEventArgs e ) : void
sender object
e System.Windows.RoutedEventArgs
Résultat void

LogAnalysisInDomainResult() protected méthode

Log the result of an analysis in domain result
protected LogAnalysisInDomainResult ( AnalysisInDomainResult result ) : void
result Microsoft.ProjectOxford.Vision.Contract.AnalysisInDomainResult
Résultat void

LogAnalysisResult() protected méthode

Show Analysis Result
protected LogAnalysisResult ( AnalysisResult result ) : void
result Microsoft.ProjectOxford.Vision.Contract.AnalysisResult Analysis Result
Résultat void

LogOcrResults() protected méthode

Log text from the given OCR results object.
protected LogOcrResults ( OcrResults results ) : void
results Microsoft.ProjectOxford.Vision.Contract.OcrResults The OCR results.
Résultat void

SubmitUriButton_Click() protected méthode

protected SubmitUriButton_Click ( object sender, RoutedEventArgs e ) : void
sender object
e System.Windows.RoutedEventArgs
Résultat void