public class DocumentRecognitionSettings extends Object
Constructor and Description |
---|
DocumentRecognitionSettings(int pagesNumber)
Initializes a new instance of the @see #DocumentRecognitionSettings class with default properties.
|
DocumentRecognitionSettings(int startPage,
int pagesNumber)
Initializes a new instance of the @see #DocumentRecognitionSettings class with short set of properties.
|
DocumentRecognitionSettings(int startPage,
int pagesNumber,
Language language,
boolean detectAreas,
boolean autoSkew,
int threshold)
Initializes a new instance of the @see #DocumentRecognitionSettings class with full set of properties.
|
Modifier and Type | Method and Description |
---|---|
String |
getIgnoredCharacters() |
Language |
getLanguage() |
int |
getPagesNumber() |
int |
getStartPage() |
int |
getThresholdValue() |
boolean |
isAutoSkew() |
boolean |
isDetectAreas() |
boolean |
isLinesFiltration() |
void |
setAutoSkew(boolean autoSkew) |
void |
setDetectAreas(boolean detectAreas) |
void |
setIgnoredCharacters(String ignoredCharacters) |
void |
setLanguage(Language language) |
void |
setLinesFiltration(boolean linesFiltration) |
void |
setPagesNumber(int pagesNumber) |
void |
setStartPage(int startPage) |
void |
setThresholdValue(int thresholdValue) |
public DocumentRecognitionSettings(int pagesNumber)
pagesNumber
- Set the number of pages for recognition multipage pdf file.public DocumentRecognitionSettings(int startPage, int pagesNumber)
startPage
- Set the first page for recognition.pagesNumber
- Set the number of pages for recognition multipage pdf file.public DocumentRecognitionSettings(int startPage, int pagesNumber, Language language, boolean detectAreas, boolean autoSkew, int threshold)
startPage
- Set the first page for recognition. 0 by default.pagesNumber
- Set the number of pages for recognition multipage pdf file.language
- Language used for OCR.detectAreas
- Enable automatic text areas detection.autoSkew
- Enable automatic image skew correction.threshold
- Custom image binarization thresholdpublic void setDetectAreas(boolean detectAreas)
public void setAutoSkew(boolean autoSkew)
public void setLanguage(Language language)
public void setThresholdValue(int thresholdValue)
public void setIgnoredCharacters(String ignoredCharacters)
public void setLinesFiltration(boolean linesFiltration)
public void setStartPage(int startPage)
public void setPagesNumber(int pagesNumber)
public boolean isDetectAreas()
public boolean isAutoSkew()
public Language getLanguage()
public int getThresholdValue()
public String getIgnoredCharacters()
public boolean isLinesFiltration()
public int getStartPage()
public int getPagesNumber()
Copyright © 2021 Aspose. All rights reserved.