Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
xzxt-api-report
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
雷紫添
xzxt-api-report
Commits
ae5cce1c
Commit
ae5cce1c
authored
Feb 23, 2021
by
雷紫添
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加缺失的字段
parent
cc3edc8d
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
3 deletions
+9
-3
src/main/resources/application.yml
+1
-1
src/main/resources/static/ocr.html
+8
-2
No files found.
src/main/resources/application.yml
View file @
ae5cce1c
...
...
@@ -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
src/main/resources/static/ocr.html
View file @
ae5cce1c
...
...
@@ -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)
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment