C# Class AzureSearchOCR.VisionHelper

The class is used to access vision APIs.
Show file Open project: liamca/AzureSearchOCR

Public Methods

Method Description
GetRetrieveText ( OcrResults results ) : string

Retrieve text from the given OCR results object.

RecognizeText ( string imagePathOrUrl, bool detectOrientation = true, string languageCode = LanguageCodes.AutoDetect ) : OcrResults

Recognize text from given image.

VisionHelper ( string subscriptionKey ) : System

Initializes a new instance of the VisionHelper class.

Private Methods

Method Description
ShowError ( string errorMessage ) : void

Show error message.

ShowInfo ( string workStr ) : void

Show the working item.

ShowResult ( string resultMessage ) : void

Show result message.

Method Details

GetRetrieveText() public method

Retrieve text from the given OCR results object.
public GetRetrieveText ( OcrResults results ) : string
results OcrResults The OCR results.
return string

RecognizeText() public method

Recognize text from given image.
public RecognizeText ( string imagePathOrUrl, bool detectOrientation = true, string languageCode = LanguageCodes.AutoDetect ) : OcrResults
imagePathOrUrl string The image path or url.
detectOrientation bool if set to true [detect orientation].
languageCode string The language code.
return OcrResults

VisionHelper() public method

Initializes a new instance of the VisionHelper class.
public VisionHelper ( string subscriptionKey ) : System
subscriptionKey string The subscription key.
return System