source: gs3-extensions/atea-nlp-tools/trunk/src/ocr/src/main/java/org/atea/nlptools/ocr/objects/TesseractOptions.java@ 35733

Last change on this file since 35733 was 35733, checked in by cstephen, 2 years ago

Add OCR servlet

File size: 679 bytes
Line 
1package org.atea.nlptools.ocr.objects;
2
3import org.atea.nlptools.ocr.abstractions.objects.IOcrOptions;
4import org.bytedeco.tesseract.global.tesseract;
5
6/**
7 * Represents various options that can be used when performing OCR using Tesseract.
8 */
9public 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.