@ -44,6 +44,9 @@ public class AlgorithmServiceImpl implements AlgorithmService {
@Value ( "${file.infraredPath:null}" )
private String infraredPath ;
@Value ( "${file.meterPath:null}" )
private String meterPath ;
@Value ( "${test-mode:false}" )
private boolean testMode ;
@ -163,6 +166,20 @@ public class AlgorithmServiceImpl implements AlgorithmService {
log . error ( "BIG_MODEL_INFRARED continue to call infrared EXCEPTION: {}" , e . getMessage ( ) ) ;
}
}
} else if ( MiscUtils . checkMeterType ( typeList ) & & ! "null" . equals ( infraredPath ) ) {
if ( testMode ) {
try {
log . info ( Color . MAGENTA + "BIG_MODEL_METER_TEST analyseResult={}" + Color . END , new Gson ( ) . toJson ( analyseResult ) ) ;
Call < Object > call = analysisRemoteService . picAnalyseRetNotify ( analyseResult ) ;
Response < Object > response = call . execute ( ) ;
Object result = response . body ( ) ;
System . out . println ( "result: " + result ) ;
} catch ( Exception e ) {
log . error ( "BIG_MODEL_METER_TEST EXCEPTION: {}" , e . getMessage ( ) ) ;
}
} else {
/ / 调用现场表计识别服务器
}
} 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 ) ) ;