|
|
@@ -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返回值异常"); |
|
|
|
} |
|
|
|
} |