Commit d123d1a1 by 雷紫添

添加缺失的字段

parent d3ac3728
...@@ -7,6 +7,7 @@ import com.founder.service.OcrService; ...@@ -7,6 +7,7 @@ import com.founder.service.OcrService;
import com.founder.util.InvoiceOcr; import com.founder.util.InvoiceOcr;
import org.apache.http.client.HttpClient; import org.apache.http.client.HttpClient;
import org.apache.http.client.methods.HttpPost; import org.apache.http.client.methods.HttpPost;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
/** /**
...@@ -14,11 +15,12 @@ import org.springframework.stereotype.Service; ...@@ -14,11 +15,12 @@ import org.springframework.stereotype.Service;
*/ */
@Service @Service
public class OcrServiceImpl implements OcrService { public class OcrServiceImpl implements OcrService {
@Value("${orc}")
private String orc;
@Override @Override
public String getOcr(String encoder) { public String getOcr(String encoder) {
InvoiceOcr ac = new InvoiceOcr(apiURL); InvoiceOcr ac = new InvoiceOcr(orc);
JSONArray arry = new JSONArray(); JSONArray arry = new JSONArray();
JSONObject j = new JSONObject(); JSONObject j = new JSONObject();
arry.add(encoder); arry.add(encoder);
......
...@@ -27,3 +27,4 @@ server: ...@@ -27,3 +27,4 @@ server:
port: 9061 port: 9061
xxcx: xxcx:
author: Basic 9b6c45cfcf3a4a629e3ed90fa3e5d058 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