public class OCRConfig extends Object
OCR configuration details. OCR relies the open-source Tesseract OCR product to be already installed on your system.
Since 2.10.0, it is recommended to specify the full path the Tesseract executable file (as opposed to its installation directory).
Constructor and Description |
---|
OCRConfig()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
String |
getContentTypes()
Gets the regular expression matching content types to restrict OCR to.
|
String |
getLanguages()
Gets languages to use by OCR.
|
String |
getPath()
Gets the Tesseract OCR engine executable file path.
|
int |
hashCode() |
boolean |
isEmpty() |
void |
setContentTypes(String contentTypes)
Sets the regular expression matching content types to restrict OCR to.
|
void |
setLanguages(String languages)
Sets languages to use by OCR.
|
void |
setPath(String path)
Sets the Tesseract OCR engine executable file path.
|
String |
toString() |
public String getPath()
public void setPath(String path)
path
- installation pathpublic String getLanguages()
public void setLanguages(String languages)
languages
- languages to use by OCR.public String getContentTypes()
public void setContentTypes(String contentTypes)
contentTypes
- content typespublic boolean isEmpty()
Copyright © 2009–2021 Norconex Inc.. All rights reserved.