public class OCROptions extends Object
Constructor and Description |
---|
OCROptions()
Constructs a default OCROptions object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isDeskew()
Returns the flag to deskew the image before performing OCR.
|
boolean |
isDiscardInvisibleText()
Returns the flag to discard invisible text in the document before
performing OCR.
|
boolean |
isRotatePages()
Returns the flag to rotate the page to match the rotation of the text
|
void |
setDeskew(boolean deskew)
Sets the flag to deskew the image before performing OCR.
|
void |
setDiscardInvisibleText(boolean discard)
Sets the flag to discard invisible text in the document before performing
OCR.
|
void |
setRotatePages(boolean b)
Sets the flag to rotate the page to match the rotation of the text
|
public void setDeskew(boolean deskew)
deskew
- The new value of the deskew flag.public boolean isDeskew()
public void setDiscardInvisibleText(boolean discard)
discard
- The new value of the discard invisible text flag.public boolean isDiscardInvisibleText()
public boolean isRotatePages()
public void setRotatePages(boolean b)
b
- The value of the rotate pages flag.