|
@@ -385,17 +385,8 @@ public class KabeiyiServiceImpl implements KabeiyiService {
|
|
|
public McR ocr(String downloadUrl,String name,String type) {
|
|
|
MDC.put("MDC_KEY_PID","1009");
|
|
|
|
|
|
- try {
|
|
|
- String content = RecognizeAllText.recognizeText("C:\\Users\\EDY\\Desktop\\4.png", type, accessKeyId, accessKeySecret);
|
|
|
- return McR.success(content);
|
|
|
- }catch (Exception e) {
|
|
|
- e.printStackTrace();
|
|
|
- log.info("识别失败:{}" + e.getMessage());
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
//下载宜搭附件
|
|
|
- /*try {
|
|
|
+ try {
|
|
|
String[] yida = McProject.getYida("1009");
|
|
|
downloadFile(downloadUrl,filePath + name,yida[0],yida[1]);
|
|
|
log.info("文件下载成功!");
|
|
@@ -410,7 +401,7 @@ public class KabeiyiServiceImpl implements KabeiyiService {
|
|
|
}catch (Exception e) {
|
|
|
e.printStackTrace();
|
|
|
log.info("识别失败:{}" + e.getMessage());
|
|
|
- }*/
|
|
|
+ }
|
|
|
return McR.errorUnknown("识别失败!");
|
|
|
}
|
|
|
|