From ec004e9a66fb12a6df5fac32be38a84269846cab Mon Sep 17 00:00:00 2001 From: yinhuaiwei Date: Wed, 20 May 2026 18:52:55 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=BA=A2=E5=A4=96=E7=AE=97=E6=B3=95?= =?UTF-8?q?=E8=AF=BB=E5=8F=96=E6=B8=A9=E5=BA=A6=E5=A4=B1=E8=B4=A5=E6=97=B6?= =?UTF-8?q?=EF=BC=8C=E6=9C=80=E9=AB=98=E4=BD=8E=E6=B8=A9=E5=9D=87=E4=B8=BA?= =?UTF-8?q?-1=E2=84=83=EF=BC=8C=E8=BF=94=E5=9B=9E=E5=88=86=E6=9E=90?= =?UTF-8?q?=E5=A4=B1=E8=B4=A5code2002?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../simulator/service/impl/HikVisionServiceImpl.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/inspect/simulator/service/impl/HikVisionServiceImpl.java b/src/main/java/com/inspect/simulator/service/impl/HikVisionServiceImpl.java index 43cc7af..100d464 100644 --- a/src/main/java/com/inspect/simulator/service/impl/HikVisionServiceImpl.java +++ b/src/main/java/com/inspect/simulator/service/impl/HikVisionServiceImpl.java @@ -903,6 +903,7 @@ public class HikVisionServiceImpl implements HikVisionService { InfraredInfo drawStringMatrix = matrixTemperatureShow(c, infraredInfo.getMatrixWidth(), infraredInfo.getMatrixHeight(), infraredInfo.getTemperatureMatrix()); infraredInfo.setFrameMax(Math.round(drawStringMatrix.getFrameMax() * 100) / 100f); + infraredInfo.setFrameMin(Math.round(drawStringMatrix.getFrameMin() * 100) / 100f); Integer maxTempX = drawStringMatrix.getMaxTempX(); Integer maxTempY = drawStringMatrix.getMaxTempY(); log.info("最高温度值坐标点:" + "maxTempX:" + maxTempX + " maxTempY:" + maxTempY); @@ -1542,14 +1543,16 @@ public class HikVisionServiceImpl implements HikVisionService { //画框标注 String s = ImageOverlays(infraPictureInfo, infraredInfo); infraredInfo.setOutPath(s); - log.info("计算过后最高温{}",infraredInfo.getFrameMax(), infraredInfo.getFrameMin()); - log.info("计算过后最高温 ->是否等于0.0f{}",infraredInfo.getFrameMax() == 0.0f); + log.info("计算过后最高温:{}, 最低温:{}",infraredInfo.getFrameMax(), infraredInfo.getFrameMin()); + log.info("计算过后最高温 ->是否等于0.0f {}",infraredInfo.getFrameMax() == 0.0f); //温度未取到 if(StringUtils.isNull(maxTemperature)){ maxTemperature = "-1"; infraredInfo.setFrameMax(-1); + infraredInfo.setFrameMin(-1); } else if(infraredInfo.getFrameMax() == 0.0f){ infraredInfo.setFrameMax(Float.parseFloat((maxTemperature))); + infraredInfo.setFrameMin(Float.parseFloat((minTemperature))); } } else if (AlgConstants.INFRA_1800.equals(imageType)) { //ivs1800红外图