Commit ae5cce1c by 雷紫添

添加缺失的字段

parent cc3edc8d
......@@ -27,6 +27,6 @@ server:
port: 9061
xxcx:
author: Basic 9b6c45cfcf3a4a629e3ed90fa3e5d058
orc: http://47.92.223.200:8866/predict/ocr_system
orc: http://39.99.224.27:8866/predict/chinese_ocr_db_crnn_mobile
ce: http://39.99.224.27:8866/predict/chinese_ocr_db_crnn_mobile
ce1: http://39.99.224.27:8866/predict/ocr_system
......@@ -43,14 +43,20 @@
var $ = layui.jquery
,upload = layui.upload;
var posterWidth = 500, posterHeight = 500;
//普通图片上传
var uploadInst = upload.render({
elem: '#test1'
,url: '/ocr/InvoiceOcr' //改成您自己的上传接口
,size: 1024
,size: 500
,before: function(obj){
//预读本地文件示例,不支持ie8
/* var img = new Image();
img.src = result;
layer.msg('分辨率'+img.width);
if (posterWidth < img.width || posterHeight < img.height) {
layer.msg('分辨率需要低于500');
}*/
obj.preview(function(index, file, result){
$('#demo1').attr('src', result); //图片链接(base64)
});
......
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