Commit d8219d98 by libin

Merge remote-tracking branch 'origin/master'

parents ff6fe883 d123d1a1
......@@ -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);
......
......@@ -27,3 +27,4 @@ server:
port: 9061
xxcx:
author: Basic 9b6c45cfcf3a4a629e3ed90fa3e5d058
orc: http://39.99.224.27:8866/predict/chinese_ocr_db_crnn_mobile
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