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
d8219d98
Commit
d8219d98
authored
Feb 02, 2021
by
libin
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
ff6fe883
d123d1a1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
src/main/java/com/founder/service/impl/OcrServiceImpl.java
+4
-2
src/main/resources/application.yml
+1
-0
No files found.
src/main/java/com/founder/service/impl/OcrServiceImpl.java
View file @
d8219d98
...
...
@@ -7,6 +7,7 @@ import com.founder.service.OcrService;
import
com.founder.util.InvoiceOcr
;
import
org.apache.http.client.HttpClient
;
import
org.apache.http.client.methods.HttpPost
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.stereotype.Service
;
/**
...
...
@@ -14,11 +15,12 @@ import org.springframework.stereotype.Service;
*/
@Service
public
class
OcrServiceImpl
implements
OcrService
{
@Value
(
"${orc}"
)
private
String
orc
;
@Override
public
String
getOcr
(
String
encoder
)
{
InvoiceOcr
ac
=
new
InvoiceOcr
(
apiURL
);
InvoiceOcr
ac
=
new
InvoiceOcr
(
orc
);
JSONArray
arry
=
new
JSONArray
();
JSONObject
j
=
new
JSONObject
();
arry
.
add
(
encoder
);
...
...
src/main/resources/application.yml
View file @
d8219d98
...
...
@@ -27,3 +27,4 @@ server:
port
:
9061
xxcx
:
author
:
Basic 9b6c45cfcf3a4a629e3ed90fa3e5d058
orc
:
http://39.99.224.27:8866/predict/chinese_ocr_db_crnn_mobile
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