OcrOptions
Contents
[
Hide
]
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. |
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. |
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.
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. |
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.