Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
thr-ocr
Project
Project
Details
Activity
Releases
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
liucheng
thr-ocr
Commits
86efdb5d
Commit
86efdb5d
authored
Dec 10, 2020
by
lc@weface.com.cn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
日志
parent
8d8521cd
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
OcrService.java
src/main/java/com/thr/service/OcrService.java
+2
-1
No files found.
src/main/java/com/thr/service/OcrService.java
View file @
86efdb5d
...
...
@@ -3,6 +3,7 @@ package com.thr.service;
import
cn.hutool.core.collection.CollUtil
;
import
cn.hutool.core.util.StrUtil
;
import
cn.hutool.http.HttpUtil
;
import
cn.hutool.json.JSONUtil
;
import
com.google.gson.Gson
;
import
com.google.gson.GsonBuilder
;
import
com.idcard.Demo
;
...
...
@@ -60,7 +61,6 @@ public class OcrService {
}
catch
(
UnsupportedEncodingException
e
)
{
e
.
printStackTrace
();
}
log
.
info
(
strResult
);
strResult
=
strResult
.
replace
(
"\u0000"
,
""
);
GsonBuilder
gsonbuilder
=
new
GsonBuilder
();
gsonbuilder
.
serializeNulls
();
...
...
@@ -75,6 +75,7 @@ public class OcrService {
dto
.
setNation
(
data
.
getIDC_FOLK
());
dto
.
setQuality
(
data
.
getIMG_QUALITY
());
dto
.
setAddress
(
data
.
getIDC_ADDRESS
());
log
.
info
(
JSONUtil
.
toJsonStr
(
dto
));
if
(
param
.
isHead
()){
dto
.
setHeadimg
(
data
.
getHeadimg
());
}
...
...
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