yangpeilai il y a 1 mois
Parent
révision
f48a7729aa

+ 3
- 1
zhywpt-service-ats/src/main/java/cn/com/taiji/ats/manager/ocr/BaiduOcrUtil.java Voir le fichier

@@ -343,7 +343,7 @@ public class BaiduOcrUtil {

String outsideDimensions = getValue(wordsResultObj, "外廓尺寸");
if (StringUtils.hasText(outsideDimensions)) {
outsideDimensions = outsideDimensions.replaceAll("[\\^\\s]", "").toLowerCase();
outsideDimensions = outsideDimensions.replaceAll("[\\^\\s]", "");
res.setOverall(outsideDimensions);
}else {
res.setOverall(null);
@@ -359,6 +359,7 @@ public class BaiduOcrUtil {
res.setRespMessage("ocr识别成功");
return res;
} catch (Exception e) {
logger.info("解析行驶证识别异常", e);
throw GlyServiceError.BUSINESS_VALIDATE_ERR.toHandleException("解析百度ocr返回值异常");
}
}
@@ -403,6 +404,7 @@ public class BaiduOcrUtil {
res.setRespMessage("ocr识别成功");
return res;
} catch (Exception e) {
logger.info("解析营业执照识别异常", e);
throw GlyServiceError.BUSINESS_VALIDATE_ERR.toHandleException("解析百度ocr返回值异常");
}
}

Chargement…
Annuler
Enregistrer