public class CorrectionFilters
extends ArrayList
Represents filters for denoising of image before recognition.
OcrEngine ocr = new OcrEngine(); CorrectionFilters filters = new CorrectionFilters(); filters.add(new MedianFilter()); filters.add(new GaussBlurFilter(5, 1.4f)); ocr.getConfig().setCorrectionFilters(filters);
OcrEngine ocr = new OcrEngine(); ocr.getConfig().getCorrectionFilters().add(new GaussBlurFilter());
Constructor and Description |
---|
CorrectionFilters() |
Modifier and Type | Method and Description |
---|---|
int |
addItem(java.lang.Object value)
Add new
Filter object. |
java.lang.Object |
get_Item(int index)
Gets
Filter object by index. |
ArrayList |
getFilters()
Gets all filters.
|
void |
set_Item(int index,
java.lang.Object value)
Sets
Filter object by index. |
public int addItem(java.lang.Object value)
Add new Filter
object.
value
- public java.lang.Object get_Item(int index)
Gets Filter
object by index.
index
- Index of object.Filter
objectpublic ArrayList getFilters()
Gets all filters.
public void set_Item(int index, java.lang.Object value)
Sets Filter
object by index.
index
- Index of object.