C# Class VisionAPI_WPF_Samples.ImageScenarioPage

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

Private Properties

Property Type Description
Log void
ShowPreviewAndDoWork System.Threading.Tasks.Task

Protected Methods

Method 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

Method 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 method

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];
return System.Threading.Tasks.Task

LoadImageButton_Click() protected method

protected LoadImageButton_Click ( object sender, RoutedEventArgs e ) : void
sender object
e System.Windows.RoutedEventArgs
return void

LogAnalysisInDomainResult() protected method

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

LogAnalysisResult() protected method

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

LogOcrResults() protected method

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

SubmitUriButton_Click() protected method

protected SubmitUriButton_Click ( object sender, RoutedEventArgs e ) : void
sender object
e System.Windows.RoutedEventArgs
return void