@@ -27,7 +27,7 @@ public class BusinessLicenseOcrManager extends AbstractManager { | |||
public BusinessLicenseOcrResponse doBusiness(BusinessLicenseOcrRequest req) throws ServiceHandleException { | |||
try { | |||
URL url = new URL(req.getUrl()); | |||
URL downloadUrl = new URL("http", "100.64.2.113", 9000, url.getPath()); | |||
URL downloadUrl = new URL("http", "100.65.10.25", 8049, url.getPath()); | |||
String compressedImgBase64 = imageCompressManager.getBaiduOcrCompressBase64(downloadUrl.toString()); | |||
BusinessLicenseOcrResponse res = baiduOcr(compressedImgBase64); |
@@ -32,7 +32,7 @@ public class IdCardOcrManager extends AbstractManager{ | |||
public IdCardOcrResponse doBusiness(IdCardOcrRequest req) throws ServiceHandleException { | |||
try { | |||
URL url = new URL(req.getUrl()); | |||
URL downloadUrl = new URL("http", "100.64.2.113", 9000, url.getPath()); | |||
URL downloadUrl = new URL("http", "100.65.10.25", 8049, url.getPath()); | |||
String compressedImgBase64 = imageCompressManager.getBaiduOcrCompressBase64(downloadUrl.toString()); | |||
IdCardOcrResponse res = baiduOcr(compressedImgBase64, req.getImageType()); |
@@ -31,7 +31,7 @@ public class VehicleLicenseOcrManager extends AbstractManager { | |||
public VehicleLicenseOcrResponse doBusiness(VehicleLicenseOcrRequest req) throws ServiceHandleException { | |||
try { | |||
URL url = new URL(req.getUrl()); | |||
URL downloadUrl = new URL("http", "100.64.2.113", 9000, url.getPath()); | |||
URL downloadUrl = new URL("http", "100.65.10.25", 8049, url.getPath()); | |||
String compressedImgBase64 = imageCompressManager.getBaiduOcrCompressBase64(downloadUrl.toString()); | |||
VehicleLicenseOcrResponse res = baiduOcr(compressedImgBase64, req.getImageType()); |