public class EasyOCR extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
OPTION_LANG_CHI_SIM
中文识别命令执行参数常量
|
static String |
OPTION_LANG_ENG
英文识别命令执行参数常量
|
| Constructor and Description |
|---|
EasyOCR()
默认使用如下配置创建EasyOCR实例
- path环境变量配置的tesseract命令的位置 - 英文识别参数 |
EasyOCR(String tesseractPath)
按参数创建EasyOCR实例
- 手动指定的tesseract命令的位置 - 默认英文识别参数 |
EasyOCR(String tesseractPath,
String tesseractOptions)
按参数创建EasyOCR实例
- 手动指定的tesseract命令的位置 - 手动指定的识别参数 |
| Modifier and Type | Method and Description |
|---|---|
String |
discern(File fromImage)
识别图片内容,并返回读取到的内容字符串
|
String |
discern(FileInputStream fromImage)
识别图片内容,并返回读取到的内容字符串
|
String |
discern(String fromImage)
识别图片内容,并返回读取到的内容字符串
|
String |
discernAndAutoCleanImage(File fromImage,
double autoCleanImageWidthRatio,
double autoCleanImageHeightRatio)
按指定形变比例,清理识别图片内容,并返回读取到的内容字符串
|
String |
discernAndAutoCleanImage(File fromImage,
double autoCleanImageWidthRatio,
double autoCleanImageHeightRatio,
int autoCleanDegrees)
按图片类型和形变比例,清理识别图片内容,并返回读取到的内容字符串
|
String |
discernAndAutoCleanImage(File fromImage,
int autoCleanDegrees)
清理识别图片内容,并返回读取到的内容字符串
|
String |
discernAndAutoCleanImage(File fromImage,
Type imageType)
按图片类型,清理识别图片内容,并返回读取到的内容字符串
|
String |
discernAndAutoCleanImage(File fromImage,
Type imageType,
double autoCleanImageWidthRatio,
double autoCleanImageHeightRatio)
按图片类型和形变比例,清理识别图片内容,并返回读取到的内容字符串
|
String |
discernAndAutoCleanImage(File fromImage,
Type imageType,
double autoCleanImageWidthRatio,
double autoCleanImageHeightRatio,
int autoCleanDegrees)
按图片类型、形变比例、顺时针旋转角度,,清理识别图片内容,并返回读取到的内容字符串
|
String |
discernAndAutoCleanImage(File fromImage,
Type imageType,
int autoCleanDegrees)
按图片类型和形变比例,清理识别图片内容,并返回读取到的内容字符串
|
String |
discernAndAutoCleanImage(InputStream fromImage,
double autoCleanImageWidthRatio,
double autoCleanImageHeightRatio)
按指定形变比例,清理识别图片内容,并返回读取到的内容字符串
|
String |
discernAndAutoCleanImage(InputStream fromImage,
double autoCleanImageWidthRatio,
double autoCleanImageHeightRatio,
int autoCleanDegrees)
按图片类型和形变比例,清理识别图片内容,并返回读取到的内容字符串
|
String |
discernAndAutoCleanImage(InputStream fromImage,
int autoCleanDegrees)
清理识别图片内容,并返回读取到的内容字符串
|
String |
discernAndAutoCleanImage(InputStream fromImage,
Type imageType)
按图片类型,清理识别图片内容,并返回读取到的内容字符串
|
String |
discernAndAutoCleanImage(InputStream fromImage,
Type imageType,
double autoCleanImageWidthRatio,
double autoCleanImageHeightRatio)
按图片类型和形变比例,清理识别图片内容,并返回读取到的内容字符串
|
String |
discernAndAutoCleanImage(InputStream fromImage,
Type imageType,
double autoCleanImageWidthRatio,
double autoCleanImageHeightRatio,
int autoCleanDegrees)
按图片类型、形变比例、顺时针旋转角度,,清理识别图片内容,并返回读取到的内容字符串
|
String |
discernAndAutoCleanImage(InputStream fromImage,
Type imageType,
int autoCleanDegrees)
按图片类型和形变比例,清理识别图片内容,并返回读取到的内容字符串
|
String |
discernAndAutoCleanImage(String fromImage,
double autoCleanImageWidthRatio,
double autoCleanImageHeightRatio)
按指定形变比例,清理识别图片内容,并返回读取到的内容字符串
|
String |
discernAndAutoCleanImage(String fromImage,
double autoCleanImageWidthRatio,
double autoCleanImageHeightRatio,
int autoCleanDegrees)
按图片类型和形变比例,清理识别图片内容,并返回读取到的内容字符串
|
String |
discernAndAutoCleanImage(String fromImage,
int autoCleanDegrees)
清理识别图片内容,并返回读取到的内容字符串
|
String |
discernAndAutoCleanImage(String fromImage,
Type imageType)
按图片类型,清理识别图片内容,并返回读取到的内容字符串
|
String |
discernAndAutoCleanImage(String fromImage,
Type imageType,
double autoCleanImageWidthRatio,
double autoCleanImageHeightRatio)
按图片类型和形变比例,清理识别图片内容,并返回读取到的内容字符串
|
String |
discernAndAutoCleanImage(String fromImage,
Type imageType,
double autoCleanImageWidthRatio,
double autoCleanImageHeightRatio,
int autoCleanDegrees)
按图片类型、形变比例、顺时针旋转角度,,清理识别图片内容,并返回读取到的内容字符串
|
String |
discernAndAutoCleanImage(String fromImage,
Type imageType,
int autoCleanDegrees)
按图片类型和形变比例,清理识别图片内容,并返回读取到的内容字符串
|
boolean |
discernToFile(File fromImage)
将识别的图片上的内容输出到指定文件,默认文件名为:图片名.txt
|
boolean |
discernToFile(FileInputStream fromImage,
String toFile)
将识别的图片上的内容输出到指定文件,无需后缀名.txt
|
boolean |
discernToFile(File fromImage,
String toFile)
将识别的图片上的内容输出到指定文件,无需后缀名.txt
|
boolean |
discernToFile(String fromImage)
将识别的图片上的内容输出到指定文件,默认文件名为:图片名.txt
|
boolean |
discernToFile(String fromImage,
String toFile)
将识别的图片上的内容输出到指定文件,无需后缀名.txt
|
boolean |
discernToFileAndAutoCleanImage(File fromImage,
double autoCleanImageWidthRatio,
double autoCleanImageHeightRatio)
按指定形变比例,自动清理图片并将识别的图片上的内容输出到指定文件,默认文件名为:图片名.txt
|
boolean |
discernToFileAndAutoCleanImage(File fromImage,
double autoCleanImageWidthRatio,
double autoCleanImageHeightRatio,
int autoCleanDegrees)
按指定图片类型和形变比例,自动清理图片并将识别的图片上的内容输出到指定文件,默认文件名为:图片名.txt
|
boolean |
discernToFileAndAutoCleanImage(File fromImage,
int autoCleanDegrees)
按指定图片类型和形变比例,自动清理图片并将识别的图片上的内容输出到指定文件,默认文件名为:图片名.txt
|
boolean |
discernToFileAndAutoCleanImage(File fromImage,
String toFile,
double autoCleanImageWidthRatio,
double autoCleanImageHeightRatio)
按指定图片类型和形变比例,自动清理图片并将识别的图片上的内容输出到指定文件,默认文件名为:图片名.txt
|
boolean |
discernToFileAndAutoCleanImage(File fromImage,
String toFile,
double autoCleanImageWidthRatio,
double autoCleanImageHeightRatio,
int autoCleanDegrees)
按指定图片类型和形变比例,自动清理图片并将识别的图片上的内容输出到指定文件,默认文件名为:图片名.txt
|
boolean |
discernToFileAndAutoCleanImage(File fromImage,
String toFile,
int autoCleanDegrees)
按指定图片类型和形变比例,自动清理图片并将识别的图片上的内容输出到指定文件,默认文件名为:图片名.txt
|
boolean |
discernToFileAndAutoCleanImage(File fromImage,
String toFile,
Type imageType)
按指定图片类型和形变比例,自动清理图片并将识别的图片上的内容输出到指定文件,默认文件名为:图片名.txt
|
boolean |
discernToFileAndAutoCleanImage(File fromImage,
String toFile,
Type imageType,
double autoCleanImageWidthRatio,
double autoCleanImageHeightRatio)
按指定图片类型和形变比例,自动清理图片并将识别的图片上的内容输出到指定文件,默认文件名为:图片名.txt
|
boolean |
discernToFileAndAutoCleanImage(File fromImage,
String toFile,
Type imageType,
double autoCleanImageWidthRatio,
double autoCleanImageHeightRatio,
int autoCleanDegrees)
按指定图片类型和形变比例,自动清理图片并将识别的图片上的内容输出到指定文件,默认文件名为:图片名.txt
|
boolean |
discernToFileAndAutoCleanImage(File fromImage,
String toFile,
Type imageType,
int autoCleanDegrees)
按指定图片类型和形变比例,自动清理图片并将识别的图片上的内容输出到指定文件,默认文件名为:图片名.txt
|
boolean |
discernToFileAndAutoCleanImage(File fromImage,
Type imageType)
自动清理图片并将识别的图片上的内容输出到指定文件,默认文件名为:图片名.txt
|
boolean |
discernToFileAndAutoCleanImage(File fromImage,
Type imageType,
double autoCleanImageWidthRatio,
double autoCleanImageHeightRatio)
按指定图片类型和形变比例,自动清理图片并将识别的图片上的内容输出到指定文件,默认文件名为:图片名.txt
|
boolean |
discernToFileAndAutoCleanImage(File fromImage,
Type imageType,
double autoCleanImageWidthRatio,
double autoCleanImageHeightRatio,
int autoCleanDegrees)
按指定图片类型和形变比例,自动清理图片并将识别的图片上的内容输出到指定文件,默认文件名为:图片名.txt
|
boolean |
discernToFileAndAutoCleanImage(File fromImage,
Type imageType,
int autoCleanDegrees)
按指定图片类型和形变比例,自动清理图片并将识别的图片上的内容输出到指定文件,默认文件名为:图片名.txt
|
boolean |
discernToFileAndAutoCleanImage(InputStream fromImage,
String toFile,
double autoCleanImageWidthRatio,
double autoCleanImageHeightRatio)
按指定图片类型和形变比例,自动清理图片并将识别的图片上的内容输出到指定文件,默认文件名为:图片名.txt
|
boolean |
discernToFileAndAutoCleanImage(InputStream fromImage,
String toFile,
double autoCleanImageWidthRatio,
double autoCleanImageHeightRatio,
int autoCleanDegrees)
按指定图片类型和形变比例,自动清理图片并将识别的图片上的内容输出到指定文件,默认文件名为:图片名.txt
|
boolean |
discernToFileAndAutoCleanImage(InputStream fromImage,
String toFile,
int autoCleanDegrees)
按指定图片类型和形变比例,自动清理图片并将识别的图片上的内容输出到指定文件,默认文件名为:图片名.txt
|
boolean |
discernToFileAndAutoCleanImage(InputStream fromImage,
String toFile,
Type imageType)
按指定图片类型和形变比例,自动清理图片并将识别的图片上的内容输出到指定文件,默认文件名为:图片名.txt
|
boolean |
discernToFileAndAutoCleanImage(InputStream fromImage,
String toFile,
Type imageType,
double autoCleanImageWidthRatio,
double autoCleanImageHeightRatio)
按指定图片类型和形变比例,自动清理图片并将识别的图片上的内容输出到指定文件,默认文件名为:图片名.txt
|
boolean |
discernToFileAndAutoCleanImage(InputStream fromImage,
String toFile,
Type imageType,
double autoCleanImageWidthRatio,
double autoCleanImageHeightRatio,
int autoCleanDegrees)
按指定图片类型和形变比例,自动清理图片并将识别的图片上的内容输出到指定文件,默认文件名为:图片名.txt
|
boolean |
discernToFileAndAutoCleanImage(InputStream fromImage,
String toFile,
Type imageType,
int autoCleanDegrees)
按指定图片类型和形变比例,自动清理图片并将识别的图片上的内容输出到指定文件,默认文件名为:图片名.txt
|
boolean |
discernToFileAndAutoCleanImage(String fromImage,
double autoCleanImageWidthRatio,
double autoCleanImageHeightRatio)
按指定形变比例,自动清理图片并将识别的图片上的内容输出到指定文件,默认文件名为:图片名.txt
|
boolean |
discernToFileAndAutoCleanImage(String fromImage,
double autoCleanImageWidthRatio,
double autoCleanImageHeightRatio,
int autoCleanDegrees)
按指定图片类型和形变比例,自动清理图片并将识别的图片上的内容输出到指定文件,默认文件名为:图片名.txt
|
boolean |
discernToFileAndAutoCleanImage(String fromImage,
int autoCleanDegrees)
按指定图片类型和形变比例,自动清理图片并将识别的图片上的内容输出到指定文件,默认文件名为:图片名.txt
|
boolean |
discernToFileAndAutoCleanImage(String fromImage,
String toFile,
double autoCleanImageWidthRatio,
double autoCleanImageHeightRatio)
按指定图片类型和形变比例,自动清理图片并将识别的图片上的内容输出到指定文件,默认文件名为:图片名.txt
|
boolean |
discernToFileAndAutoCleanImage(String fromImage,
String toFile,
double autoCleanImageWidthRatio,
double autoCleanImageHeightRatio,
int autoCleanDegrees)
按指定图片类型和形变比例,自动清理图片并将识别的图片上的内容输出到指定文件,默认文件名为:图片名.txt
|
boolean |
discernToFileAndAutoCleanImage(String fromImage,
String toFile,
int autoCleanDegrees)
按指定图片类型和形变比例,自动清理图片并将识别的图片上的内容输出到指定文件,默认文件名为:图片名.txt
|
boolean |
discernToFileAndAutoCleanImage(String fromImage,
String toFile,
Type imageType)
按指定图片类型和形变比例,自动清理图片并将识别的图片上的内容输出到指定文件,默认文件名为:图片名.txt
|
boolean |
discernToFileAndAutoCleanImage(String fromImage,
String toFile,
Type imageType,
double autoCleanImageWidthRatio,
double autoCleanImageHeightRatio)
按指定图片类型和形变比例,自动清理图片并将识别的图片上的内容输出到指定文件,默认文件名为:图片名.txt
|
boolean |
discernToFileAndAutoCleanImage(String fromImage,
String toFile,
Type imageType,
double autoCleanImageWidthRatio,
double autoCleanImageHeightRatio,
int autoCleanDegrees)
按指定图片类型和形变比例,自动清理图片并将识别的图片上的内容输出到指定文件,默认文件名为:图片名.txt
|
boolean |
discernToFileAndAutoCleanImage(String fromImage,
String toFile,
Type imageType,
int autoCleanDegrees)
按指定图片类型和形变比例,自动清理图片并将识别的图片上的内容输出到指定文件,默认文件名为:图片名.txt
|
boolean |
discernToFileAndAutoCleanImage(String fromImage,
Type imageType)
自动清理图片并将识别的图片上的内容输出到指定文件,默认文件名为:图片名.txt
|
boolean |
discernToFileAndAutoCleanImage(String fromImage,
Type imageType,
double autoCleanImageWidthRatio,
double autoCleanImageHeightRatio)
按指定图片类型和形变比例,自动清理图片并将识别的图片上的内容输出到指定文件,默认文件名为:图片名.txt
|
boolean |
discernToFileAndAutoCleanImage(String fromImage,
Type imageType,
double autoCleanImageWidthRatio,
double autoCleanImageHeightRatio,
int autoCleanDegrees)
按指定图片类型和形变比例,自动清理图片并将识别的图片上的内容输出到指定文件,默认文件名为:图片名.txt
|
boolean |
discernToFileAndAutoCleanImage(String fromImage,
Type imageType,
int autoCleanDegrees)
按指定图片类型和形变比例,自动清理图片并将识别的图片上的内容输出到指定文件,默认文件名为:图片名.txt
|
String |
discernToFileAndGet(File fromImage)
将识别的图片上的内容输出到指定文件,并返回读取到的内容字符串,默认输出文件名为:图片名.txt
|
String |
discernToFileAndGet(FileInputStream fromImage,
String toFile)
将识别的图片上的内容输出到指定文件,并返回读取到的内容字符串,无需后缀名.txt
|
String |
discernToFileAndGet(File fromImage,
String toFile)
将识别的图片上的内容输出到指定文件,并返回读取到的内容字符串,无需后缀名.txt
|
String |
discernToFileAndGet(String fromImage)
将识别的图片上的内容输出到指定文件,并返回读取到的内容字符串,默认输出文件名为:图片名.txt
|
String |
discernToFileAndGet(String fromImage,
String toFile)
将识别的图片上的内容输出到指定文件,并返回读取到的内容字符串,无需后缀名.txt
|
String |
discernToFileAndGetAndAutoCleanImage(File fromImage,
double autoCleanImageWidthRatio,
double autoCleanImageHeightRatio)
按指定形变比例,自动清理图片并将识别的图片上的内容输出到指定文件,并返回读取到的内容字符串,无需后缀名.txt
|
String |
discernToFileAndGetAndAutoCleanImage(File fromImage,
double autoCleanImageWidthRatio,
double autoCleanImageHeightRatio,
int autoCleanDegrees)
按指定形变比例,自动清理图片并将识别的图片上的内容输出到指定文件,并返回读取到的内容字符串,无需后缀名.txt
|
String |
discernToFileAndGetAndAutoCleanImage(File fromImage,
int autoCleanDegrees)
自动清理图片并将识别的图片上的内容输出到指定文件,并返回读取到的内容字符串,无需后缀名.txt
|
String |
discernToFileAndGetAndAutoCleanImage(File fromImage,
String toFile,
double autoCleanImageWidthRatio,
double autoCleanImageHeightRatio)
按指定形变比例,自动清理图片并将识别的图片上的内容输出到指定文件,并返回读取到的内容字符串,无需后缀名.txt
|
String |
discernToFileAndGetAndAutoCleanImage(File fromImage,
String toFile,
double autoCleanImageWidthRatio,
double autoCleanImageHeightRatio,
int autoCleanDegrees)
按指定形变比例,自动清理图片并将识别的图片上的内容输出到指定文件,并返回读取到的内容字符串,无需后缀名.txt
|
String |
discernToFileAndGetAndAutoCleanImage(File fromImage,
String toFile,
int autoCleanDegrees)
自动清理图片并将识别的图片上的内容输出到指定文件,并返回读取到的内容字符串,无需后缀名.txt
|
String |
discernToFileAndGetAndAutoCleanImage(File fromImage,
String toFile,
Type imageType)
自动清理图片并将识别的图片上的内容输出到指定文件,并返回读取到的内容字符串,无需后缀名.txt
|
String |
discernToFileAndGetAndAutoCleanImage(File fromImage,
String toFile,
Type imageType,
double autoCleanImageWidthRatio,
double autoCleanImageHeightRatio)
自动清理图片并将识别的图片上的内容输出到指定文件,并返回读取到的内容字符串,无需后缀名.txt
|
String |
discernToFileAndGetAndAutoCleanImage(File fromImage,
String toFile,
Type imageType,
double autoCleanImageWidthRatio,
double autoCleanImageHeightRatio,
int autoCleanDegrees)
自动清理图片并将识别的图片上的内容输出到指定文件,并返回读取到的内容字符串,无需后缀名.txt
|
String |
discernToFileAndGetAndAutoCleanImage(File fromImage,
String toFile,
Type imageType,
int autoCleanDegrees)
自动清理图片并将识别的图片上的内容输出到指定文件,并返回读取到的内容字符串,无需后缀名.txt
|
String |
discernToFileAndGetAndAutoCleanImage(File fromImage,
Type imageType)
自动清理图片并将识别的图片上的内容输出到指定文件,并返回读取到的内容字符串,无需后缀名.txt
|
String |
discernToFileAndGetAndAutoCleanImage(File fromImage,
Type imageType,
double autoCleanImageWidthRatio,
double autoCleanImageHeightRatio)
自动清理图片并将识别的图片上的内容输出到指定文件,并返回读取到的内容字符串,无需后缀名.txt
|
String |
discernToFileAndGetAndAutoCleanImage(File fromImage,
Type imageType,
double autoCleanImageWidthRatio,
double autoCleanImageHeightRatio,
int autoCleanDegrees)
自动清理图片并将识别的图片上的内容输出到指定文件,并返回读取到的内容字符串,无需后缀名.txt
|
String |
discernToFileAndGetAndAutoCleanImage(File fromImage,
Type imageType,
int autoCleanDegrees)
自动清理图片并将识别的图片上的内容输出到指定文件,并返回读取到的内容字符串,无需后缀名.txt
|
String |
discernToFileAndGetAndAutoCleanImage(InputStream fromImage,
String toFile,
double autoCleanImageWidthRatio,
double autoCleanImageHeightRatio)
按指定形变比例,自动清理图片并将识别的图片上的内容输出到指定文件,并返回读取到的内容字符串,无需后缀名.txt
|
String |
discernToFileAndGetAndAutoCleanImage(InputStream fromImage,
String toFile,
double autoCleanImageWidthRatio,
double autoCleanImageHeightRatio,
int autoCleanDegrees)
按指定形变比例,自动清理图片并将识别的图片上的内容输出到指定文件,并返回读取到的内容字符串,无需后缀名.txt
|
String |
discernToFileAndGetAndAutoCleanImage(InputStream fromImage,
String toFile,
int autoCleanDegrees)
自动清理图片并将识别的图片上的内容输出到指定文件,并返回读取到的内容字符串,无需后缀名.txt
|
String |
discernToFileAndGetAndAutoCleanImage(InputStream fromImage,
String toFile,
Type imageType)
自动清理图片并将识别的图片上的内容输出到指定文件,并返回读取到的内容字符串,无需后缀名.txt
|
String |
discernToFileAndGetAndAutoCleanImage(InputStream fromImage,
String toFile,
Type imageType,
double autoCleanImageWidthRatio,
double autoCleanImageHeightRatio)
自动清理图片并将识别的图片上的内容输出到指定文件,并返回读取到的内容字符串,无需后缀名.txt
|
String |
discernToFileAndGetAndAutoCleanImage(InputStream fromImage,
String toFile,
Type imageType,
double autoCleanImageWidthRatio,
double autoCleanImageHeightRatio,
int autoCleanDegrees)
自动清理图片并将识别的图片上的内容输出到指定文件,并返回读取到的内容字符串,无需后缀名.txt
|
String |
discernToFileAndGetAndAutoCleanImage(InputStream fromImage,
String toFile,
Type imageType,
int autoCleanDegrees)
自动清理图片并将识别的图片上的内容输出到指定文件,并返回读取到的内容字符串,无需后缀名.txt
|
String |
discernToFileAndGetAndAutoCleanImage(String fromImage,
double autoCleanImageWidthRatio,
double autoCleanImageHeightRatio)
按指定形变比例,自动清理图片并将识别的图片上的内容输出到指定文件,并返回读取到的内容字符串,无需后缀名.txt
|
String |
discernToFileAndGetAndAutoCleanImage(String fromImage,
double autoCleanImageWidthRatio,
double autoCleanImageHeightRatio,
int autoCleanDegrees)
按指定形变比例,自动清理图片并将识别的图片上的内容输出到指定文件,并返回读取到的内容字符串,无需后缀名.txt
|
String |
discernToFileAndGetAndAutoCleanImage(String fromImage,
int autoCleanDegrees)
自动清理图片并将识别的图片上的内容输出到指定文件,并返回读取到的内容字符串,无需后缀名.txt
|
String |
discernToFileAndGetAndAutoCleanImage(String fromImage,
String toFile,
double autoCleanImageWidthRatio,
double autoCleanImageHeightRatio)
按指定形变比例,自动清理图片并将识别的图片上的内容输出到指定文件,并返回读取到的内容字符串,无需后缀名.txt
|
String |
discernToFileAndGetAndAutoCleanImage(String fromImage,
String toFile,
double autoCleanImageWidthRatio,
double autoCleanImageHeightRatio,
int autoCleanDegrees)
按指定形变比例,自动清理图片并将识别的图片上的内容输出到指定文件,并返回读取到的内容字符串,无需后缀名.txt
|
String |
discernToFileAndGetAndAutoCleanImage(String fromImage,
String toFile,
int autoCleanDegrees)
自动清理图片并将识别的图片上的内容输出到指定文件,并返回读取到的内容字符串,无需后缀名.txt
|
String |
discernToFileAndGetAndAutoCleanImage(String fromImage,
String toFile,
Type imageType)
自动清理图片并将识别的图片上的内容输出到指定文件,并返回读取到的内容字符串,无需后缀名.txt
|
String |
discernToFileAndGetAndAutoCleanImage(String fromImage,
String toFile,
Type imageType,
double autoCleanImageWidthRatio,
double autoCleanImageHeightRatio)
自动清理图片并将识别的图片上的内容输出到指定文件,并返回读取到的内容字符串,无需后缀名.txt
|
String |
discernToFileAndGetAndAutoCleanImage(String fromImage,
String toFile,
Type imageType,
double autoCleanImageWidthRatio,
double autoCleanImageHeightRatio,
int autoCleanDegrees)
自动清理图片并将识别的图片上的内容输出到指定文件,并返回读取到的内容字符串,无需后缀名.txt
|
String |
discernToFileAndGetAndAutoCleanImage(String fromImage,
String toFile,
Type imageType,
int autoCleanDegrees)
自动清理图片并将识别的图片上的内容输出到指定文件,并返回读取到的内容字符串,无需后缀名.txt
|
String |
discernToFileAndGetAndAutoCleanImage(String fromImage,
Type imageType)
自动清理图片并将识别的图片上的内容输出到指定文件,并返回读取到的内容字符串,无需后缀名.txt
|
String |
discernToFileAndGetAndAutoCleanImage(String fromImage,
Type imageType,
double autoCleanImageWidthRatio,
double autoCleanImageHeightRatio)
自动清理图片并将识别的图片上的内容输出到指定文件,并返回读取到的内容字符串,无需后缀名.txt
|
String |
discernToFileAndGetAndAutoCleanImage(String fromImage,
Type imageType,
double autoCleanImageWidthRatio,
double autoCleanImageHeightRatio,
int autoCleanDegrees)
自动清理图片并将识别的图片上的内容输出到指定文件,并返回读取到的内容字符串,无需后缀名.txt
|
String |
discernToFileAndGetAndAutoCleanImage(String fromImage,
Type imageType,
int autoCleanDegrees)
自动清理图片并将识别的图片上的内容输出到指定文件,并返回读取到的内容字符串,无需后缀名.txt
|
int |
getAutoCleanDegrees()
获得图片清理的顺时针旋转角度
|
double |
getAutoCleanImageHeightRatio()
自动清理图片时,图片高度放大比例,某些图片形变后识别率可以提高,1为原始比例,不形变
|
double |
getAutoCleanImageWidthRatio()
自动清理图片时,图片宽度放大比例,某些图片形变后识别率可以提高,1为原始比例,不形变
|
Type |
getAutoCleanType()
获得图片的清理类型
|
String |
getTesseractOptions()
tesseract执行命令的参数
|
String |
getTesseractPath()
tesseract执行命令的位置,可从TesseractOCR.OPTION_LANG_...常量选择
例如:设置中文识别 EasyOCR e=new EasyOCR(); e.setTesseractOptions(EasyOCR.OPTION_LANG_CHI_SIM); |
void |
setAutoCleanDegrees(int autoCleanDegrees)
设置自动清理图片时的图片旋转角度
|
void |
setAutoCleanImageHeightRatio(double autoCleanImageHeightRatio)
自动清理图片时,图片高度放大比例,某些图片形变后识别率可以提高,1为原始比例,不形变
|
void |
setAutoCleanImageRatio(double autoCleanImageWidthRatio,
double autoCleanImageHeightRatio)
自动清理图片时,设置图片宽度和高度放大比例,某些图片形变后识别率可以提高,1为原始比例,不形变
|
void |
setAutoCleanImageType(Type autoCleanImageType)
设置图片的清理类型
|
void |
setAutoCleanImageWidthRatio(double autoCleanImageWidthRatio)
自动清理图片时,图片宽度放大比例,某些图片形变后识别率可以提高,1为原始比例,不形变
|
void |
setDegrees(int autoCleanDegrees)
获得自动清理图片时的图片旋转角度
|
void |
setTesseractOptions(String tesseractOptions)
tesseract执行命令的参数 可从TesseractOCR.OPTION_LANG_...常量选择
|
void |
setTesseractPath(String tesseractPath)
tesseract执行命令的位置,使用前需要提前设置 如果配置了path环境变量,则可以不用设置
例如:"D:\\Program Files\\Tesseract-OCR\\tesseract"; |
public static final String OPTION_LANG_ENG
public static final String OPTION_LANG_CHI_SIM
public EasyOCR()
public EasyOCR(String tesseractPath)
tesseractPath - tesseract执行命令的位置(如果配置了path环境变量,则可以不用设置)public String discern(File fromImage)
fromImage - 要识别的图片public String discern(FileInputStream fromImage)
fromImage - 要识别的图片public String discern(String fromImage)
fromImage - 要识别的图片public String discernAndAutoCleanImage(File fromImage, double autoCleanImageWidthRatio, double autoCleanImageHeightRatio)
fromImage - 原始图片autoCleanImageWidthRatio - 直接指定图片宽度度放大比例,某些图片形变后识别率可以提高autoCleanImageHeightRatio - 直接指定图片高度放大比例,某些图片形变后识别率可以提高public String discernAndAutoCleanImage(File fromImage, double autoCleanImageWidthRatio, double autoCleanImageHeightRatio, int autoCleanDegrees)
fromImage - 原始图片autoCleanImageWidthRatio - 直接指定图片宽度度放大比例,某些图片形变后识别率可以提高autoCleanImageHeightRatio - 直接指定图片高度放大比例,某些图片形变后识别率可以提高autoCleanDegrees - 图片自动清理时的顺时针旋转角度public String discernAndAutoCleanImage(File fromImage, Type imageType)
fromImage - 原始图片imageType - 图片类型枚举public String discernAndAutoCleanImage(File fromImage, Type imageType, double autoCleanImageWidthRatio, double autoCleanImageHeightRatio)
fromImage - 原始图片imageType - 图片类型枚举autoCleanImageWidthRatio - 直接指定图片宽度度放大比例,某些图片形变后识别率可以提高autoCleanImageHeightRatio - 直接指定图片高度放大比例,某些图片形变后识别率可以提高public String discernAndAutoCleanImage(File fromImage, Type imageType, double autoCleanImageWidthRatio, double autoCleanImageHeightRatio, int autoCleanDegrees)
fromImage - 原始图片imageType - 图片类型枚举autoCleanImageWidthRatio - 直接指定图片宽度度放大比例,某些图片形变后识别率可以提高autoCleanImageHeightRatio - 直接指定图片高度放大比例,某些图片形变后识别率可以提高autoCleanDegrees - 图片自动清理时的顺时针旋转角度public String discernAndAutoCleanImage(File fromImage, Type imageType, int autoCleanDegrees)
fromImage - 原始图片imageType - 图片类型枚举autoCleanDegrees - 图片自动清理时的顺时针旋转角度public String discernAndAutoCleanImage(File fromImage, int autoCleanDegrees)
fromImage - 原始图片autoCleanDegrees - 图片自动清理时的顺时针旋转角度public String discernAndAutoCleanImage(InputStream fromImage, double autoCleanImageWidthRatio, double autoCleanImageHeightRatio)
fromImage - 原始图片autoCleanImageWidthRatio - 直接指定图片宽度度放大比例,某些图片形变后识别率可以提高autoCleanImageHeightRatio - 直接指定图片高度放大比例,某些图片形变后识别率可以提高public String discernAndAutoCleanImage(InputStream fromImage, double autoCleanImageWidthRatio, double autoCleanImageHeightRatio, int autoCleanDegrees)
fromImage - 原始图片autoCleanImageWidthRatio - 直接指定图片宽度度放大比例,某些图片形变后识别率可以提高autoCleanImageHeightRatio - 直接指定图片高度放大比例,某些图片形变后识别率可以提高autoCleanDegrees - 图片自动清理时的顺时针旋转角度public String discernAndAutoCleanImage(InputStream fromImage, Type imageType)
fromImage - 原始图片imageType - 图片类型枚举public String discernAndAutoCleanImage(InputStream fromImage, Type imageType, double autoCleanImageWidthRatio, double autoCleanImageHeightRatio)
fromImage - 原始图片imageType - 图片类型枚举autoCleanImageWidthRatio - 直接指定图片宽度度放大比例,某些图片形变后识别率可以提高autoCleanImageHeightRatio - 直接指定图片高度放大比例,某些图片形变后识别率可以提高public String discernAndAutoCleanImage(InputStream fromImage, Type imageType, double autoCleanImageWidthRatio, double autoCleanImageHeightRatio, int autoCleanDegrees)
fromImage - 原始图片imageType - 图片类型枚举autoCleanImageWidthRatio - 直接指定图片宽度度放大比例,某些图片形变后识别率可以提高autoCleanImageHeightRatio - 直接指定图片高度放大比例,某些图片形变后识别率可以提高autoCleanDegrees - 图片自动清理时的顺时针旋转角度public String discernAndAutoCleanImage(InputStream fromImage, Type imageType, int autoCleanDegrees)
fromImage - 原始图片imageType - 图片类型枚举autoCleanDegrees - 图片自动清理时的顺时针旋转角度public String discernAndAutoCleanImage(InputStream fromImage, int autoCleanDegrees)
fromImage - 原始图片autoCleanDegrees - 图片自动清理时的顺时针旋转角度public String discernAndAutoCleanImage(String fromImage, double autoCleanImageWidthRatio, double autoCleanImageHeightRatio)
fromImage - 原始图片autoCleanImageWidthRatio - 直接指定图片宽度度放大比例,某些图片形变后识别率可以提高autoCleanImageHeightRatio - 直接指定图片高度放大比例,某些图片形变后识别率可以提高public String discernAndAutoCleanImage(String fromImage, double autoCleanImageWidthRatio, double autoCleanImageHeightRatio, int autoCleanDegrees)
fromImage - 原始图片autoCleanImageWidthRatio - 直接指定图片宽度度放大比例,某些图片形变后识别率可以提高autoCleanImageHeightRatio - 直接指定图片高度放大比例,某些图片形变后识别率可以提高autoCleanDegrees - 图片自动清理时的顺时针旋转角度public String discernAndAutoCleanImage(String fromImage, Type imageType)
fromImage - 原始图片imageType - 图片类型枚举public String discernAndAutoCleanImage(String fromImage, Type imageType, double autoCleanImageWidthRatio, double autoCleanImageHeightRatio)
fromImage - 原始图片imageType - 图片类型枚举autoCleanImageWidthRatio - 直接指定图片宽度度放大比例,某些图片形变后识别率可以提高autoCleanImageHeightRatio - 直接指定图片高度放大比例,某些图片形变后识别率可以提高public String discernAndAutoCleanImage(String fromImage, Type imageType, double autoCleanImageWidthRatio, double autoCleanImageHeightRatio, int autoCleanDegrees)
fromImage - 原始图片imageType - 图片类型枚举autoCleanImageWidthRatio - 直接指定图片宽度度放大比例,某些图片形变后识别率可以提高autoCleanImageHeightRatio - 直接指定图片高度放大比例,某些图片形变后识别率可以提高autoCleanDegrees - 图片自动清理时的顺时针旋转角度public String discernAndAutoCleanImage(String fromImage, Type imageType, int autoCleanDegrees)
fromImage - 原始图片imageType - 图片类型枚举autoCleanDegrees - 图片自动清理时的顺时针旋转角度public String discernAndAutoCleanImage(String fromImage, int autoCleanDegrees)
fromImage - 原始图片autoCleanDegrees - 图片自动清理时的顺时针旋转角度public boolean discernToFile(File fromImage)
fromImage - 要识别的图片public boolean discernToFile(File fromImage, String toFile)
fromImage - 要识别的图片toFile - 保存识别内容的文件名,默认会自动添加.txt后缀public boolean discernToFile(FileInputStream fromImage, String toFile)
fromImage - 要识别的图片toFile - 保存识别内容的文件名,默认会自动添加.txt后缀public boolean discernToFile(String fromImage)
fromImage - 要识别的图片public boolean discernToFile(String fromImage, String toFile)
fromImage - 要识别的图片toFile - 保存识别内容的文件名,默认会自动添加.txt后缀public boolean discernToFileAndAutoCleanImage(File fromImage, double autoCleanImageWidthRatio, double autoCleanImageHeightRatio)
fromImage - 要识别的图片autoCleanImageWidthRatio - 直接指定图片宽度度放大比例,某些图片形变后识别率可以提高autoCleanImageHeightRatio - 直接指定图片高度放大比例,某些图片形变后识别率可以提高public boolean discernToFileAndAutoCleanImage(File fromImage, double autoCleanImageWidthRatio, double autoCleanImageHeightRatio, int autoCleanDegrees)
fromImage - 要识别的图片autoCleanImageWidthRatio - 直接指定图片宽度度放大比例,某些图片形变后识别率可以提高autoCleanImageHeightRatio - 直接指定图片高度放大比例,某些图片形变后识别率可以提高autoCleanDegrees - 图片自动清理时的顺时针旋转角度public boolean discernToFileAndAutoCleanImage(File fromImage, Type imageType)
fromImage - 要识别的图片imageType - 图片类型public boolean discernToFileAndAutoCleanImage(File fromImage, Type imageType, double autoCleanImageWidthRatio, double autoCleanImageHeightRatio)
fromImage - 要识别的图片imageType - 图片类型autoCleanImageWidthRatio - 直接指定图片宽度度放大比例,某些图片形变后识别率可以提高autoCleanImageHeightRatio - 直接指定图片高度放大比例,某些图片形变后识别率可以提高public boolean discernToFileAndAutoCleanImage(File fromImage, Type imageType, double autoCleanImageWidthRatio, double autoCleanImageHeightRatio, int autoCleanDegrees)
fromImage - 要识别的图片imageType - 图片类型autoCleanImageWidthRatio - 直接指定图片宽度度放大比例,某些图片形变后识别率可以提高autoCleanImageHeightRatio - 直接指定图片高度放大比例,某些图片形变后识别率可以提高autoCleanDegrees - 图片自动清理时的顺时针旋转角度public boolean discernToFileAndAutoCleanImage(File fromImage, Type imageType, int autoCleanDegrees)
fromImage - 要识别的图片imageType - 图片类型autoCleanDegrees - 图片自动清理时的顺时针旋转角度public boolean discernToFileAndAutoCleanImage(File fromImage, int autoCleanDegrees)
fromImage - 要识别的图片autoCleanDegrees - 图片自动清理时的顺时针旋转角度public boolean discernToFileAndAutoCleanImage(File fromImage, String toFile, double autoCleanImageWidthRatio, double autoCleanImageHeightRatio)
fromImage - 要识别的图片toFile - 保存内容的文件autoCleanImageWidthRatio - 直接指定图片宽度度放大比例,某些图片形变后识别率可以提高autoCleanImageHeightRatio - 直接指定图片高度放大比例,某些图片形变后识别率可以提高public boolean discernToFileAndAutoCleanImage(File fromImage, String toFile, double autoCleanImageWidthRatio, double autoCleanImageHeightRatio, int autoCleanDegrees)
fromImage - 要识别的图片toFile - 保存内容的文件autoCleanImageWidthRatio - 直接指定图片宽度度放大比例,某些图片形变后识别率可以提高autoCleanImageHeightRatio - 直接指定图片高度放大比例,某些图片形变后识别率可以提高autoCleanDegrees - 图片自动清理时的顺时针旋转角度public boolean discernToFileAndAutoCleanImage(File fromImage, String toFile, Type imageType)
fromImage - 要识别的图片toFile - 保存内容的文件imageType - 图片类型public boolean discernToFileAndAutoCleanImage(File fromImage, String toFile, Type imageType, double autoCleanImageWidthRatio, double autoCleanImageHeightRatio)
fromImage - 要识别的图片toFile - 保存内容的文件imageType - 图片类型autoCleanImageWidthRatio - 直接指定图片宽度度放大比例,某些图片形变后识别率可以提高autoCleanImageHeightRatio - 直接指定图片高度放大比例,某些图片形变后识别率可以提高public boolean discernToFileAndAutoCleanImage(File fromImage, String toFile, Type imageType, double autoCleanImageWidthRatio, double autoCleanImageHeightRatio, int autoCleanDegrees)
fromImage - 要识别的图片toFile - 保存内容的文件imageType - 图片类型autoCleanImageWidthRatio - 直接指定图片宽度度放大比例,某些图片形变后识别率可以提高autoCleanImageHeightRatio - 直接指定图片高度放大比例,某些图片形变后识别率可以提高autoCleanDegrees - 图片自动清理时的顺时针旋转角度public boolean discernToFileAndAutoCleanImage(File fromImage, String toFile, Type imageType, int autoCleanDegrees)
fromImage - 要识别的图片toFile - 保存内容的文件imageType - 图片类型autoCleanDegrees - 图片自动清理时的顺时针旋转角度public boolean discernToFileAndAutoCleanImage(File fromImage, String toFile, int autoCleanDegrees)
fromImage - 要识别的图片toFile - 保存内容的文件autoCleanDegrees - 图片自动清理时的顺时针旋转角度public boolean discernToFileAndAutoCleanImage(InputStream fromImage, String toFile, double autoCleanImageWidthRatio, double autoCleanImageHeightRatio)
fromImage - 要识别的图片toFile - 保存内容的文件autoCleanImageWidthRatio - 直接指定图片宽度度放大比例,某些图片形变后识别率可以提高autoCleanImageHeightRatio - 直接指定图片高度放大比例,某些图片形变后识别率可以提高public boolean discernToFileAndAutoCleanImage(InputStream fromImage, String toFile, double autoCleanImageWidthRatio, double autoCleanImageHeightRatio, int autoCleanDegrees)
fromImage - 要识别的图片toFile - 保存内容的文件autoCleanImageWidthRatio - 直接指定图片宽度度放大比例,某些图片形变后识别率可以提高autoCleanImageHeightRatio - 直接指定图片高度放大比例,某些图片形变后识别率可以提高autoCleanDegrees - 图片自动清理时的顺时针旋转角度public boolean discernToFileAndAutoCleanImage(InputStream fromImage, String toFile, Type imageType)
fromImage - 要识别的图片toFile - 保存内容的文件imageType - 图片类型public boolean discernToFileAndAutoCleanImage(InputStream fromImage, String toFile, Type imageType, double autoCleanImageWidthRatio, double autoCleanImageHeightRatio)
fromImage - 要识别的图片toFile - 保存内容的文件imageType - 图片类型autoCleanImageWidthRatio - 直接指定图片宽度度放大比例,某些图片形变后识别率可以提高autoCleanImageHeightRatio - 直接指定图片高度放大比例,某些图片形变后识别率可以提高public boolean discernToFileAndAutoCleanImage(InputStream fromImage, String toFile, Type imageType, double autoCleanImageWidthRatio, double autoCleanImageHeightRatio, int autoCleanDegrees)
fromImage - 要识别的图片toFile - 保存内容的文件imageType - 图片类型autoCleanImageWidthRatio - 直接指定图片宽度度放大比例,某些图片形变后识别率可以提高autoCleanImageHeightRatio - 直接指定图片高度放大比例,某些图片形变后识别率可以提高autoCleanDegrees - 图片自动清理时的顺时针旋转角度public boolean discernToFileAndAutoCleanImage(InputStream fromImage, String toFile, Type imageType, int autoCleanDegrees)
fromImage - 要识别的图片toFile - 保存内容的文件imageType - 图片类型autoCleanDegrees - 图片自动清理时的顺时针旋转角度public boolean discernToFileAndAutoCleanImage(InputStream fromImage, String toFile, int autoCleanDegrees)
fromImage - 要识别的图片toFile - 保存内容的文件autoCleanDegrees - 图片自动清理时的顺时针旋转角度public boolean discernToFileAndAutoCleanImage(String fromImage, double autoCleanImageWidthRatio, double autoCleanImageHeightRatio)
fromImage - 要识别的图片autoCleanImageWidthRatio - 直接指定图片宽度度放大比例,某些图片形变后识别率可以提高autoCleanImageHeightRatio - 直接指定图片高度放大比例,某些图片形变后识别率可以提高public boolean discernToFileAndAutoCleanImage(String fromImage, double autoCleanImageWidthRatio, double autoCleanImageHeightRatio, int autoCleanDegrees)
fromImage - 要识别的图片autoCleanImageWidthRatio - 直接指定图片宽度度放大比例,某些图片形变后识别率可以提高autoCleanImageHeightRatio - 直接指定图片高度放大比例,某些图片形变后识别率可以提高autoCleanDegrees - 图片自动清理时的顺时针旋转角度public boolean discernToFileAndAutoCleanImage(String fromImage, Type imageType)
fromImage - 要识别的图片imageType - 图片类型public boolean discernToFileAndAutoCleanImage(String fromImage, Type imageType, double autoCleanImageWidthRatio, double autoCleanImageHeightRatio)
fromImage - 要识别的图片imageType - 图片类型autoCleanImageWidthRatio - 直接指定图片宽度度放大比例,某些图片形变后识别率可以提高autoCleanImageHeightRatio - 直接指定图片高度放大比例,某些图片形变后识别率可以提高public boolean discernToFileAndAutoCleanImage(String fromImage, Type imageType, double autoCleanImageWidthRatio, double autoCleanImageHeightRatio, int autoCleanDegrees)
fromImage - 要识别的图片imageType - 图片类型autoCleanImageWidthRatio - 直接指定图片宽度度放大比例,某些图片形变后识别率可以提高autoCleanImageHeightRatio - 直接指定图片高度放大比例,某些图片形变后识别率可以提高autoCleanDegrees - 图片自动清理时的顺时针旋转角度public boolean discernToFileAndAutoCleanImage(String fromImage, Type imageType, int autoCleanDegrees)
fromImage - 要识别的图片imageType - 图片类型autoCleanDegrees - 图片自动清理时的顺时针旋转角度public boolean discernToFileAndAutoCleanImage(String fromImage, int autoCleanDegrees)
fromImage - 要识别的图片autoCleanDegrees - 图片自动清理时的顺时针旋转角度public boolean discernToFileAndAutoCleanImage(String fromImage, String toFile, double autoCleanImageWidthRatio, double autoCleanImageHeightRatio)
fromImage - 要识别的图片toFile - 保存内容的文件autoCleanImageWidthRatio - 直接指定图片宽度度放大比例,某些图片形变后识别率可以提高autoCleanImageHeightRatio - 直接指定图片高度放大比例,某些图片形变后识别率可以提高public boolean discernToFileAndAutoCleanImage(String fromImage, String toFile, double autoCleanImageWidthRatio, double autoCleanImageHeightRatio, int autoCleanDegrees)
fromImage - 要识别的图片toFile - 保存内容的文件autoCleanImageWidthRatio - 直接指定图片宽度度放大比例,某些图片形变后识别率可以提高autoCleanImageHeightRatio - 直接指定图片高度放大比例,某些图片形变后识别率可以提高autoCleanDegrees - 图片自动清理时的顺时针旋转角度public boolean discernToFileAndAutoCleanImage(String fromImage, String toFile, Type imageType)
fromImage - 要识别的图片toFile - 保存内容的文件imageType - 图片类型public boolean discernToFileAndAutoCleanImage(String fromImage, String toFile, Type imageType, double autoCleanImageWidthRatio, double autoCleanImageHeightRatio)
fromImage - 要识别的图片toFile - 保存内容的文件imageType - 图片类型autoCleanImageWidthRatio - 直接指定图片宽度度放大比例,某些图片形变后识别率可以提高autoCleanImageHeightRatio - 直接指定图片高度放大比例,某些图片形变后识别率可以提高public boolean discernToFileAndAutoCleanImage(String fromImage, String toFile, Type imageType, double autoCleanImageWidthRatio, double autoCleanImageHeightRatio, int autoCleanDegrees)
fromImage - 要识别的图片toFile - 保存内容的文件imageType - 图片类型autoCleanImageWidthRatio - 直接指定图片宽度度放大比例,某些图片形变后识别率可以提高autoCleanImageHeightRatio - 直接指定图片高度放大比例,某些图片形变后识别率可以提高autoCleanDegrees - 图片自动清理时的顺时针旋转角度public boolean discernToFileAndAutoCleanImage(String fromImage, String toFile, Type imageType, int autoCleanDegrees)
fromImage - 要识别的图片toFile - 保存内容的文件imageType - 图片类型autoCleanDegrees - 图片自动清理时的顺时针旋转角度public boolean discernToFileAndAutoCleanImage(String fromImage, String toFile, int autoCleanDegrees)
fromImage - 要识别的图片toFile - 保存内容的文件autoCleanDegrees - 图片自动清理时的顺时针旋转角度public String discernToFileAndGet(File fromImage)
fromImage - 要识别的图片public String discernToFileAndGet(File fromImage, String toFile)
fromImage - 要识别的图片toFile - 同时保存内容的的文件public String discernToFileAndGet(FileInputStream fromImage, String toFile)
fromImage - 要识别的图片toFile - 同时保存内容的的文件public String discernToFileAndGet(String fromImage)
fromImage - 要识别的图片public String discernToFileAndGet(String fromImage, String toFile)
fromImage - 要识别的图片toFile - 同时保存内容的的文件public String discernToFileAndGetAndAutoCleanImage(File fromImage, double autoCleanImageWidthRatio, double autoCleanImageHeightRatio)
fromImage - 要识别的图片autoCleanImageWidthRatio - 直接指定图片宽度度放大比例,某些图片形变后识别率可以提高autoCleanImageHeightRatio - 直接指定图片高度放大比例,某些图片形变后识别率可以提高public String discernToFileAndGetAndAutoCleanImage(File fromImage, double autoCleanImageWidthRatio, double autoCleanImageHeightRatio, int autoCleanDegrees)
fromImage - 要识别的图片autoCleanImageWidthRatio - 直接指定图片宽度度放大比例,某些图片形变后识别率可以提高autoCleanImageHeightRatio - 直接指定图片高度放大比例,某些图片形变后识别率可以提高autoCleanDegrees - 图片自动清理时的顺时针旋转角度public String discernToFileAndGetAndAutoCleanImage(File fromImage, Type imageType)
fromImage - 要识别的图片imageType - 图片类型public String discernToFileAndGetAndAutoCleanImage(File fromImage, Type imageType, double autoCleanImageWidthRatio, double autoCleanImageHeightRatio)
fromImage - 要识别的图片imageType - 图片类型autoCleanImageWidthRatio - 直接指定图片宽度度放大比例,某些图片形变后识别率可以提高autoCleanImageHeightRatio - 直接指定图片高度放大比例,某些图片形变后识别率可以提高public String discernToFileAndGetAndAutoCleanImage(File fromImage, Type imageType, double autoCleanImageWidthRatio, double autoCleanImageHeightRatio, int autoCleanDegrees)
fromImage - 要识别的图片imageType - 图片类型autoCleanImageWidthRatio - 直接指定图片宽度度放大比例,某些图片形变后识别率可以提高autoCleanImageHeightRatio - 直接指定图片高度放大比例,某些图片形变后识别率可以提高autoCleanDegrees - 图片自动清理时的顺时针旋转角度public String discernToFileAndGetAndAutoCleanImage(File fromImage, Type imageType, int autoCleanDegrees)
fromImage - 要识别的图片imageType - 图片类型autoCleanDegrees - 图片自动清理时的顺时针旋转角度public String discernToFileAndGetAndAutoCleanImage(File fromImage, int autoCleanDegrees)
fromImage - 要识别的图片autoCleanDegrees - 图片自动清理时的顺时针旋转角度public String discernToFileAndGetAndAutoCleanImage(File fromImage, String toFile, double autoCleanImageWidthRatio, double autoCleanImageHeightRatio)
fromImage - 要识别的图片toFile - 同时保存内容的的文件autoCleanImageWidthRatio - 直接指定图片宽度度放大比例,某些图片形变后识别率可以提高autoCleanImageHeightRatio - 直接指定图片高度放大比例,某些图片形变后识别率可以提高public String discernToFileAndGetAndAutoCleanImage(File fromImage, String toFile, double autoCleanImageWidthRatio, double autoCleanImageHeightRatio, int autoCleanDegrees)
fromImage - 要识别的图片toFile - 同时保存内容的的文件autoCleanImageWidthRatio - 直接指定图片宽度度放大比例,某些图片形变后识别率可以提高autoCleanImageHeightRatio - 直接指定图片高度放大比例,某些图片形变后识别率可以提高autoCleanDegrees - 图片自动清理时的顺时针旋转角度public String discernToFileAndGetAndAutoCleanImage(File fromImage, String toFile, Type imageType)
fromImage - 要识别的图片toFile - 同时保存内容的的文件imageType - 图片类型public String discernToFileAndGetAndAutoCleanImage(File fromImage, String toFile, Type imageType, double autoCleanImageWidthRatio, double autoCleanImageHeightRatio)
fromImage - 要识别的图片toFile - 同时保存内容的的文件imageType - 图片类型autoCleanImageWidthRatio - 直接指定图片宽度度放大比例,某些图片形变后识别率可以提高autoCleanImageHeightRatio - 直接指定图片高度放大比例,某些图片形变后识别率可以提高public String discernToFileAndGetAndAutoCleanImage(File fromImage, String toFile, Type imageType, double autoCleanImageWidthRatio, double autoCleanImageHeightRatio, int autoCleanDegrees)
fromImage - 要识别的图片toFile - 同时保存内容的的文件imageType - 图片类型autoCleanImageWidthRatio - 直接指定图片宽度度放大比例,某些图片形变后识别率可以提高autoCleanImageHeightRatio - 直接指定图片高度放大比例,某些图片形变后识别率可以提高autoCleanDegrees - 图片自动清理时的顺时针旋转角度public String discernToFileAndGetAndAutoCleanImage(File fromImage, String toFile, Type imageType, int autoCleanDegrees)
fromImage - 要识别的图片toFile - 同时保存内容的的文件imageType - 图片类型autoCleanDegrees - 图片自动清理时的顺时针旋转角度public String discernToFileAndGetAndAutoCleanImage(File fromImage, String toFile, int autoCleanDegrees)
fromImage - 要识别的图片toFile - 同时保存内容的的文件autoCleanDegrees - 图片自动清理时的顺时针旋转角度public String discernToFileAndGetAndAutoCleanImage(InputStream fromImage, String toFile, double autoCleanImageWidthRatio, double autoCleanImageHeightRatio)
fromImage - 要识别的图片toFile - 同时保存内容的的文件autoCleanImageWidthRatio - 直接指定图片宽度度放大比例,某些图片形变后识别率可以提高autoCleanImageHeightRatio - 直接指定图片高度放大比例,某些图片形变后识别率可以提高public String discernToFileAndGetAndAutoCleanImage(InputStream fromImage, String toFile, double autoCleanImageWidthRatio, double autoCleanImageHeightRatio, int autoCleanDegrees)
fromImage - 要识别的图片toFile - 同时保存内容的的文件autoCleanImageWidthRatio - 直接指定图片宽度度放大比例,某些图片形变后识别率可以提高autoCleanImageHeightRatio - 直接指定图片高度放大比例,某些图片形变后识别率可以提高autoCleanDegrees - 图片自动清理时的顺时针旋转角度public String discernToFileAndGetAndAutoCleanImage(InputStream fromImage, String toFile, Type imageType)
fromImage - 要识别的图片toFile - 同时保存内容的的文件imageType - 图片类型public String discernToFileAndGetAndAutoCleanImage(InputStream fromImage, String toFile, Type imageType, double autoCleanImageWidthRatio, double autoCleanImageHeightRatio)
fromImage - 要识别的图片toFile - 同时保存内容的的文件imageType - 图片类型autoCleanImageWidthRatio - 直接指定图片宽度度放大比例,某些图片形变后识别率可以提高autoCleanImageHeightRatio - 直接指定图片高度放大比例,某些图片形变后识别率可以提高public String discernToFileAndGetAndAutoCleanImage(InputStream fromImage, String toFile, Type imageType, double autoCleanImageWidthRatio, double autoCleanImageHeightRatio, int autoCleanDegrees)
fromImage - 要识别的图片toFile - 同时保存内容的的文件imageType - 图片类型autoCleanImageWidthRatio - 直接指定图片宽度度放大比例,某些图片形变后识别率可以提高autoCleanImageHeightRatio - 直接指定图片高度放大比例,某些图片形变后识别率可以提高autoCleanDegrees - 图片自动清理时的顺时针旋转角度public String discernToFileAndGetAndAutoCleanImage(InputStream fromImage, String toFile, Type imageType, int autoCleanDegrees)
fromImage - 要识别的图片toFile - 同时保存内容的的文件imageType - 图片类型autoCleanDegrees - 图片自动清理时的顺时针旋转角度public String discernToFileAndGetAndAutoCleanImage(InputStream fromImage, String toFile, int autoCleanDegrees)
fromImage - 要识别的图片toFile - 同时保存内容的的文件autoCleanDegrees - 图片自动清理时的顺时针旋转角度public String discernToFileAndGetAndAutoCleanImage(String fromImage, double autoCleanImageWidthRatio, double autoCleanImageHeightRatio)
fromImage - 要识别的图片autoCleanImageWidthRatio - 直接指定图片宽度度放大比例,某些图片形变后识别率可以提高autoCleanImageHeightRatio - 直接指定图片高度放大比例,某些图片形变后识别率可以提高public String discernToFileAndGetAndAutoCleanImage(String fromImage, double autoCleanImageWidthRatio, double autoCleanImageHeightRatio, int autoCleanDegrees)
fromImage - 要识别的图片autoCleanImageWidthRatio - 直接指定图片宽度度放大比例,某些图片形变后识别率可以提高autoCleanImageHeightRatio - 直接指定图片高度放大比例,某些图片形变后识别率可以提高autoCleanDegrees - 图片自动清理时的顺时针旋转角度public String discernToFileAndGetAndAutoCleanImage(String fromImage, Type imageType)
fromImage - 要识别的图片imageType - 图片类型public String discernToFileAndGetAndAutoCleanImage(String fromImage, Type imageType, double autoCleanImageWidthRatio, double autoCleanImageHeightRatio)
fromImage - 要识别的图片imageType - 图片类型autoCleanImageWidthRatio - 直接指定图片宽度度放大比例,某些图片形变后识别率可以提高autoCleanImageHeightRatio - 直接指定图片高度放大比例,某些图片形变后识别率可以提高public String discernToFileAndGetAndAutoCleanImage(String fromImage, Type imageType, double autoCleanImageWidthRatio, double autoCleanImageHeightRatio, int autoCleanDegrees)
fromImage - 要识别的图片imageType - 图片类型autoCleanImageWidthRatio - 直接指定图片宽度度放大比例,某些图片形变后识别率可以提高autoCleanImageHeightRatio - 直接指定图片高度放大比例,某些图片形变后识别率可以提高autoCleanDegrees - 图片自动清理时的顺时针旋转角度public String discernToFileAndGetAndAutoCleanImage(String fromImage, Type imageType, int autoCleanDegrees)
fromImage - 要识别的图片imageType - 图片类型autoCleanDegrees - 图片自动清理时的顺时针旋转角度public String discernToFileAndGetAndAutoCleanImage(String fromImage, int autoCleanDegrees)
fromImage - 要识别的图片autoCleanDegrees - 图片自动清理时的顺时针旋转角度public String discernToFileAndGetAndAutoCleanImage(String fromImage, String toFile, double autoCleanImageWidthRatio, double autoCleanImageHeightRatio)
fromImage - 要识别的图片toFile - 同时保存内容的的文件autoCleanImageWidthRatio - 直接指定图片宽度度放大比例,某些图片形变后识别率可以提高autoCleanImageHeightRatio - 直接指定图片高度放大比例,某些图片形变后识别率可以提高public String discernToFileAndGetAndAutoCleanImage(String fromImage, String toFile, double autoCleanImageWidthRatio, double autoCleanImageHeightRatio, int autoCleanDegrees)
fromImage - 要识别的图片toFile - 同时保存内容的的文件autoCleanImageWidthRatio - 直接指定图片宽度度放大比例,某些图片形变后识别率可以提高autoCleanImageHeightRatio - 直接指定图片高度放大比例,某些图片形变后识别率可以提高autoCleanDegrees - 图片自动清理时的顺时针旋转角度public String discernToFileAndGetAndAutoCleanImage(String fromImage, String toFile, Type imageType)
fromImage - 要识别的图片toFile - 同时保存内容的的文件imageType - 图片类型public String discernToFileAndGetAndAutoCleanImage(String fromImage, String toFile, Type imageType, double autoCleanImageWidthRatio, double autoCleanImageHeightRatio)
fromImage - 要识别的图片toFile - 同时保存内容的的文件imageType - 图片类型autoCleanImageWidthRatio - 直接指定图片宽度度放大比例,某些图片形变后识别率可以提高autoCleanImageHeightRatio - 直接指定图片高度放大比例,某些图片形变后识别率可以提高public String discernToFileAndGetAndAutoCleanImage(String fromImage, String toFile, Type imageType, double autoCleanImageWidthRatio, double autoCleanImageHeightRatio, int autoCleanDegrees)
fromImage - 要识别的图片toFile - 同时保存内容的的文件imageType - 图片类型autoCleanImageWidthRatio - 直接指定图片宽度度放大比例,某些图片形变后识别率可以提高autoCleanImageHeightRatio - 直接指定图片高度放大比例,某些图片形变后识别率可以提高autoCleanDegrees - 图片自动清理时的顺时针旋转角度public String discernToFileAndGetAndAutoCleanImage(String fromImage, String toFile, Type imageType, int autoCleanDegrees)
fromImage - 要识别的图片toFile - 同时保存内容的的文件imageType - 图片类型autoCleanDegrees - 图片自动清理时的顺时针旋转角度public String discernToFileAndGetAndAutoCleanImage(String fromImage, String toFile, int autoCleanDegrees)
fromImage - 要识别的图片toFile - 同时保存内容的的文件autoCleanDegrees - 图片自动清理时的顺时针旋转角度public int getAutoCleanDegrees()
public double getAutoCleanImageHeightRatio()
public Type getAutoCleanType()
public double getAutoCleanImageWidthRatio()
public String getTesseractOptions()
public String getTesseractPath()
public void setAutoCleanDegrees(int autoCleanDegrees)
autoCleanDegrees - 旋转角度public void setAutoCleanImageHeightRatio(double autoCleanImageHeightRatio)
autoCleanImageHeightRatio - 图片放大比例public void setAutoCleanImageRatio(double autoCleanImageWidthRatio,
double autoCleanImageHeightRatio)
autoCleanImageWidthRatio - 图片宽度放大比例,某些图片形变后识别率可以提高,1为原始比例,不形变autoCleanImageHeightRatio - 图片高度放大比例,某些图片形变后识别率可以提高,1为原始比例,不形变public void setAutoCleanImageType(Type autoCleanImageType)
autoCleanImageType - 图片的清理类型public void setAutoCleanImageWidthRatio(double autoCleanImageWidthRatio)
autoCleanImageWidthRatio - 图片宽度放大public void setDegrees(int autoCleanDegrees)
autoCleanDegrees - 图片旋转角度public void setTesseractOptions(String tesseractOptions)
tesseractOptions - tesseract执行命令的参数public void setTesseractPath(String tesseractPath)
tesseractPath - tesseract执行路径Copyright © 2015. All rights reserved.