|
|
|
@ -108,7 +108,7 @@ public class AlgorithmServiceImpl implements AlgorithmService { |
|
|
|
|
|
|
|
@Override |
|
|
|
public String bigModelPicAnalyse(String analyseRequestStr) { |
|
|
|
log.info(Color.MAGENTA + "BIG_MODEL_ANALYZE bigModelPicAnalyse: infraredPath: {}, analyseRequestStr={}" + Color.END, infraredPath, analyseRequestStr); |
|
|
|
log.info(Color.MAGENTA + "BIG_MODEL_ANALYZE bigModelPicAnalyse: infraredPath: {},meterPath: {}, analyseRequestStr={}" + Color.END, infraredPath, meterPath, analyseRequestStr); |
|
|
|
AnalyseRequest analyseRequest = new Gson().fromJson(analyseRequestStr, AnalyseRequest.class); |
|
|
|
if (analyseRequest.getObjectList() == null || analyseRequest.getObjectList().isEmpty()) { |
|
|
|
return "Invalid Parameter: " + analyseRequestStr; |
|
|
|
@ -179,6 +179,14 @@ public class AlgorithmServiceImpl implements AlgorithmService { |
|
|
|
} |
|
|
|
} else { |
|
|
|
// 调用现场表计识别服务器 |
|
|
|
try { |
|
|
|
final String analyseRequestStrNew = new Gson().toJson(analyseRequest); |
|
|
|
log.info(Color.MAGENTA + "BIG_MODEL_METER filterPicAnalyse: continue to call meter, meterPath: {}, analyseRequestStrNew={}" + Color.END, meterPath, analyseRequestStrNew); |
|
|
|
String meterResult = HttpClientUtils.sendPostAgain(meterPath, analyseRequestStrNew); |
|
|
|
log.info(Color.MAGENTA + "BIG_MODEL_METER RESULT: {}" + Color.END, meterResult); |
|
|
|
} catch (Exception e) { |
|
|
|
log.error("BIG_MODEL_METER continue to call meter EXCEPTION: {}", e.getMessage()); |
|
|
|
} |
|
|
|
} |
|
|
|
} else { |
|
|
|
try { |
|
|
|
|