Line | |
---|
1 | package org.atea.nlptools.ocr.objects;
|
---|
2 |
|
---|
3 | import org.atea.nlptools.ocr.abstractions.objects.IOcrOptions;
|
---|
4 | import org.bytedeco.tesseract.global.tesseract;
|
---|
5 |
|
---|
6 | /**
|
---|
7 | * Represents various options that can be used when performing OCR using Tesseract.
|
---|
8 | */
|
---|
9 | public class TesseractOptions implements IOcrOptions
|
---|
10 | {
|
---|
11 | private String language;
|
---|
12 |
|
---|
13 | public int pageSegmentationMode;
|
---|
14 |
|
---|
15 | public TesseractOptions()
|
---|
16 | {
|
---|
17 | this.language = "mri";
|
---|
18 | this.pageSegmentationMode = tesseract.PSM_AUTO;
|
---|
19 | }
|
---|
20 |
|
---|
21 | @Override
|
---|
22 | public String getLanguage() {
|
---|
23 | return this.language;
|
---|
24 | }
|
---|
25 |
|
---|
26 | @Override
|
---|
27 | public void setLanguage(String value) {
|
---|
28 | this.language = value;
|
---|
29 | }
|
---|
30 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.