OcrOptions
Inheritance: java.lang.Object
public class OcrOptions
Provides the options which are used for OCR Connector.
Constructors
| Constructor | Description | 
|---|---|
| OcrOptions(Rectangle rectangle) | Initializes a new instance of the OcrOptions class with rectangular area. | 
| OcrOptions(OcrEventHandler handler) | Initializes a new instance of the OcrOptions class with OcrEventHandler object. | 
| OcrOptions(Rectangle rectangle, OcrEventHandler handler) | Initializes a new instance of the OcrOptions class with rectangular area and OcrEventHandler object. | 
| OcrOptions(Rectangle rectangle, OcrEventHandler handler, boolean useSpellCheker) | Initializes a new instance of the OcrOptions class. | 
Methods
| Method | Description | 
|---|---|
| getRectangle() | Gets the rectangular area that constraints the page area which is used for text recognizing. | 
| getHandler() | Gets the event handler to catch OCR events. | 
| getUseSpellChecker() | Gets the value that indicates whether the spell checker is used. | 
OcrOptions(Rectangle rectangle)
public OcrOptions(Rectangle rectangle)
Initializes a new instance of the OcrOptions class with rectangular area.
Parameters:
| Parameter | Type | Description | 
|---|---|---|
| rectangle | Rectangle | The rectangular area that constraints the page area which is used for text recognizing. | 
OcrOptions(OcrEventHandler handler)
public OcrOptions(OcrEventHandler handler)
Initializes a new instance of the OcrOptions class with OcrEventHandler object.
Parameters:
| Parameter | Type | Description | 
|---|---|---|
| handler | OcrEventHandler | An instance of OcrEventHandler to catch OCR events. | 
OcrOptions(Rectangle rectangle, OcrEventHandler handler)
public OcrOptions(Rectangle rectangle, OcrEventHandler handler)
Initializes a new instance of the OcrOptions class with rectangular area and OcrEventHandler object.
Parameters:
| Parameter | Type | Description | 
|---|---|---|
| rectangle | Rectangle | The rectangular area that constraints the page area which is used for text recognizing. | 
| handler | OcrEventHandler | An instance of OcrEventHandler to catch OCR events. | 
OcrOptions(Rectangle rectangle, OcrEventHandler handler, boolean useSpellCheker)
public OcrOptions(Rectangle rectangle, OcrEventHandler handler, boolean useSpellCheker)
Initializes a new instance of the OcrOptions class.
Parameters:
| Parameter | Type | Description | 
|---|---|---|
| rectangle | Rectangle | The rectangular area that constraints the page area which is used for text recognizing. | 
| handler | OcrEventHandler | An instance of OcrEventHandler to catch OCR events. | 
| useSpellCheker | boolean | The value that indicates whether the spell checker is used. | 
getRectangle()
public Rectangle getRectangle()
Gets the rectangular area that constraints the page area which is used for text recognizing.
Returns: Rectangle - An instance of Rectangle class that represents the rectangular area that constraints the page area which is used for text recognizing; null if it isn’t set.
getHandler()
public OcrEventHandler getHandler()
Gets the event handler to catch OCR events.
Returns: OcrEventHandler - An instance of OcrEventHandler class which is used to catch OCR events.
getUseSpellChecker()
public boolean getUseSpellChecker()
Gets the value that indicates whether the spell checker is used.
Returns: boolean - true if the spell checker is used; otherwise, false .