C# Class AzureSearchOCR.VisionHelper

The class is used to access vision APIs.
Afficher le fichier Open project: liamca/AzureSearchOCR

Méthodes publiques

Méthode 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

Méthode 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 méthode

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

RecognizeText() public méthode

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.
Résultat OcrResults

VisionHelper() public méthode

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