Return >  OCR Result Class

OCR Result Class


An object of the type <result> is returned which contains the OCR result. Methods available in the object are

OCR Result Class:
result.Get Returns the OCR result in a Unicode string.
result.GetErrorCode Returns the OCR error code.
result.GetErrorString Returns the OCR error string.
result.GetFormat Returns the OCR output format.
result.GetInput Returns the input information of the OCR processing methods.
result.Save Saves the OCR result as a .txt file or a .pdf file on the local disk.
result.GetPageSetCount Returns how many pagesets are included in the OCR result.
result.GetPageSetContent Returns the selected pageset content in the OCR result.

An object of the type <PageSetResult> which is returned by result.GetPageSetCount. Methods available in the object are

PageSetResult class:
GetPageCount Returns how many pages are included in the pageset.
GetPageContent Returns the content of the specified page.

An object of the type <PageResult> which is returned by GetPageContent. Methods available in the object are

PageResult class:
GetLineCount Returns how many lines are included in the specified page.
GetLineContent Returns the content of the specified line.

An object of the type <LineResult> which is returned by GetLineContent. Methods available in the object are

LineResult class:
GetWordCount Returns how many words are included in the specified line.
GetLineRect Returns the coordinates for the rectangle that contains a specified line.
GetWordContent Returns the content of the specified word.

An object of the type <WordResult> which is returned by GetWordContent. Methods available in the object are

WordResult class:
GetText Returns the text of the specified word in the OCR result.
GetFontName Returns the font name of a specified word in the OCR result.
GetFontSize Returns the font size of a specified word in the OCR result.
GetWordRect Returns the coordinates for the rectangle that contains a specified word.