Commit 00d121f5 by 雷紫添

添加影源ocr

parent e3fb8ba0
......@@ -14,8 +14,8 @@ import java.awt.image.*;
import java.io.*;
@Component
public class OcrFounder {
private static String dllPath="/opt";
private static String dllName="libwmreader.so"; //lunix 使用 libwmreader.so
private static String dllPath="D:\\ocr\\windows\\bin-x64";
private static String dllName="wmreader.dll"; //lunix 使用 libwmreader.so
private static String image="D:\\ocr\\images\\img2.jpg";
public String getOcrFounder(byte[] data) throws Exception {
int code= OcrUtil.init(dllPath,dllName);
......
......@@ -6,7 +6,10 @@ spring:
time-zone: GMT+8
mvc:
static-path-pattern: /**
servlet:
multipart:
max-file-size: 500MB
max-request-size: 500MB
mybatis:
#type-aliases-package: com.founder.interservice.model
config-location: classpath:mybatis/mybatis-config.xml
......
......@@ -48,7 +48,7 @@
var uploadInst = upload.render({
elem: '#test1'
,url: '/ocr/OcrFounder' //改成您自己的上传接口
,size: 500
,size: 5000000
,before: function(obj){
//预读本地文件示例,不支持ie8
/* var img = new Image();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment