com.aspose.ocr.core.publicapi
Interface IRecognizedTextPartInfo


public interface IRecognizedTextPartInfo

This interface presents information about each part of the recognized text. Part of text seems one part, that has all the same characteristics (style, color, etc.). It is divided by the words into parts, if have large text that has the same style.


Method Summary
 Color getBackgroundColor()
          Gets the color of background this part.
 boolean getBold()
          Gets the value that indicates whether this part is bold.
 com.aspose.ms.publics.Rectangle getBox()
          Gets the rectangular area where the text shown in the picture.
 com.aspose.ms.publics.Rectangle[] getCharactersBox()
          Gets an array of rectangles.
 float[] getCharactersQuality()
          Gets an array of values specified for some recognition of this character.
 PalFontFamily getFont()
          Gets the font of this part.
 float getFontSize()
          Gets the font size of this part.
 boolean getItalic()
          Gets a value that indicates whether this part is italic.
 String getLanguage()
          Gets the language of this part.
 String getText()
          Gets the text of this part.
 Color getTextColor()
          Gets a color of text this part.
 boolean getUnderline()
          Gets a value that indicates whether this part is underline.
 

Method Detail

getText

String getText()
Gets the text of this part.


getBox

com.aspose.ms.publics.Rectangle getBox()
Gets the rectangular area where the text shown in the picture. Coordinates starts with the upper left corner of the picture.


getFont

PalFontFamily getFont()
Gets the font of this part.


getFontSize

float getFontSize()
Gets the font size of this part.


getBold

boolean getBold()
Gets the value that indicates whether this part is bold.


getItalic

boolean getItalic()
Gets a value that indicates whether this part is italic.


getUnderline

boolean getUnderline()
Gets a value that indicates whether this part is underline.


getTextColor

Color getTextColor()
Gets a color of text this part.


getBackgroundColor

Color getBackgroundColor()
Gets the color of background this part.


getCharactersQuality

float[] getCharactersQuality()
Gets an array of values specified for some recognition of this character. Size of the array is equal to size of Text (how many letters in part). Each array element can be from 0.0 to 1.0 inclusive. Value 0.0 means that the poorly recognized, 1.0 means that perfectly recognized.


getCharactersBox

com.aspose.ms.publics.Rectangle[] getCharactersBox()
Gets an array of rectangles. Size of the array is equal to size of IRecognizedTextPartInfo.Text. Each rectangle indicates the area of character. Coordinates starts with the upper left corner of the picture. OCR-31886 - NullPointerException in RecognizedTextPartInfo class


getLanguage

String getLanguage()
Gets the language of this part.



Copyright © 2011 Aspose. All Rights Reserved.