cn.net.wanmo.ocr.config.TesseractConfig Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ocr-springboot2 Show documentation
Show all versions of ocr-springboot2 Show documentation
文字识别(Optical Character Recognition,OCR )基于行业前沿的深度学习技术,将图片上的文字内容智能识别成为可编辑的文本,可以有效地代替人工录入信息。
The newest version!
package cn.net.wanmo.ocr.config;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
/**
* Tesseract
*/
@Component
@ConfigurationProperties(prefix = "tesseract", ignoreUnknownFields = false)
public class TesseractConfig {
/**
* 数据路径
*/
public static String datapath;
/**
* 语言标识
*/
public static String language;
/**
* 像素
*/
public static String varUserDefinedDpi;
public void setDatapath(String datapath) {
TesseractConfig.datapath = datapath;
}
public void setLanguage(String language) {
TesseractConfig.language = language;
}
public void setVarUserDefinedDpi(String varUserDefinedDpi) {
TesseractConfig.varUserDefinedDpi = varUserDefinedDpi;
}
}