Click or drag to resize
TesseractOcrEngineDetectOrientationAndScript Method (String)
Detects the orientation and script of a document image.

Namespace: DevScope.Ocr.Tesseract.WindowsPhone
Assembly: DevScope.Ocr.Tesseract.WindowsPhone (in DevScope.Ocr.Tesseract.WindowsPhone.dll) Version: 255.255.255.255
Syntax
public IAsyncOperation<TesseractOcrPageOrientationScriptInfo> DetectOrientationAndScript(
	string imageFilePath
)

Parameters

imageFilePath
Type: SystemString
The image file path.

Return Value

Type: IAsyncOperationTesseractOcrPageOrientationScriptInfo
The results of the detection
Remarks
To see a paper explaining the process check here : http://research.google.com/pubs/pub35506.html
Examples
This sample shows how to call the DetectOrientationAndScript method.
void RunOrientationAndScriptDetection()  
{ 
   ...
   // Init the OCR engine
   var ocrEngine = new TesseractOcrEngine(tessdataRootFolder.Path, languageCode);
   ...

   // Create the async operation from the full path of a file
   var osiOperation = ocrEngine.DetectOrientationAndScript(CommonSettings.FileNameFullResImageSentToOcr);

   // now, run the Orientation and Script detection
   var osiResponse = await osiOperation;

   ........
}
See Also