@ -132,6 +132,7 @@ public class AlgorithmServiceImpl implements AlgorithmService {
List < AnalyseResItem > analyseResItems = new ArrayList < > ( ) ;
analyseResItems . add ( analyseResItem ) ;
analyseResult . setResultList ( analyseResItems ) ;
/ / 红外算法且配备了红外分析地址
if ( MiscUtils . checkInfraredType ( typeList ) & & ! "null" . equals ( infraredPath ) ) {
if ( testMode ) {
try {
@ -162,6 +163,7 @@ public class AlgorithmServiceImpl implements AlgorithmService {
log . error ( "BIG_MODEL_INFRARED continue to call infrared EXCEPTION: {}" , e . getMessage ( ) ) ;
}
}
/ / 表计算法且配备了表计分析地址
} else if ( MiscUtils . checkMeterType ( typeList ) & & ! "null" . equals ( meterPath ) ) {
if ( testMode ) {
try {
@ -184,6 +186,7 @@ public class AlgorithmServiceImpl implements AlgorithmService {
log . error ( "BIG_MODEL_METER continue to call meter EXCEPTION: {}" , e . getMessage ( ) ) ;
}
}
/ / 其他情况
} else {
try {
log . info ( Color . MAGENTA + "BIG_MODEL_COMMON filterPicAnalyse: nacos file.infraredPath not config, feedback to caller, analyseResult={}" + Color . END , new Gson ( ) . toJson ( analyseResult ) ) ;
@ -274,10 +277,17 @@ public class AlgorithmServiceImpl implements AlgorithmService {
/ / analyseResPoint . setValue ( "1" ) ; / / 失败
/ / }
/ / analyseResPoint . setConf ( String . format ( "%.2f" , ( double ) infraredInfo . getFrameMax ( ) ) ) ;
analyseResPoint . setValue ( String . format ( "%.2f" , ( double ) infraredInfo . getFrameMax ( ) ) ) ;
analyseResPoint . setResImageUrl ( infraredInfo . getOutPath ( ) ) ;
analyseResPoint . setType ( typeListStr ) ;
analyseResPoint . setCode ( "2000" ) ;
if ( infraredInfo . getFrameMax ( ) = = - 1 & & infraredInfo . getFrameMin ( ) = = - 1 ) {
analyseResPoint . setCode ( "2002" ) ;
analyseResPoint . setValue ( "--" ) ;
analyseResPoint . setDesc ( "分析失败" ) ;
} else {
analyseResPoint . setCode ( "2000" ) ;
analyseResPoint . setDesc ( "正常" ) ;
analyseResPoint . setValue ( String . format ( "%.2f" , ( double ) infraredInfo . getFrameMax ( ) ) ) ;
}
if ( StringUtils . isNotBlank ( analyseResPoint . getImageNormalUrlPath ( ) ) ) {
String imageNormalUrlPath = resultAnalysisMapper . selectImg ( patrolPointId ) ;
if ( StringUtils . isBlank ( imageNormalUrlPath ) ) {