|
@@ -75,10 +75,12 @@ public class MeterWorkCarnoIdentifyServiceImpl extends BaseServiceImpl<MeterWork
|
|
|
long countBallIdentify = 0L;
|
|
long countBallIdentify = 0L;
|
|
|
//球机车号未识别数
|
|
//球机车号未识别数
|
|
|
long countBallIdentifyTemp = 0L;
|
|
long countBallIdentifyTemp = 0L;
|
|
|
|
|
+ long countBallIdentifyTemp02 = 0L;
|
|
|
//枪机车号识别数
|
|
//枪机车号识别数
|
|
|
long countGunIdentify = 0L;
|
|
long countGunIdentify = 0L;
|
|
|
//枪机车号未识别数
|
|
//枪机车号未识别数
|
|
|
long countGunIdentifyTemp = 0L;
|
|
long countGunIdentifyTemp = 0L;
|
|
|
|
|
+ long countGunIdentifyTemp02 = 0L;
|
|
|
//视觉识别数
|
|
//视觉识别数
|
|
|
long countVisualIdentify = 0L;
|
|
long countVisualIdentify = 0L;
|
|
|
//视觉未识别数
|
|
//视觉未识别数
|
|
@@ -122,6 +124,9 @@ public class MeterWorkCarnoIdentifyServiceImpl extends BaseServiceImpl<MeterWork
|
|
|
&& (StringUtils.isEmpty(model.getVideoCarNo1())
|
|
&& (StringUtils.isEmpty(model.getVideoCarNo1())
|
|
|
|| (model.getCarNoType().equals("2")
|
|
|| (model.getCarNoType().equals("2")
|
|
|
&& StringUtils.isNotEmpty(model.getRfidCarNo())))).count()-countRfidIdentify;
|
|
&& StringUtils.isNotEmpty(model.getRfidCarNo())))).count()-countRfidIdentify;
|
|
|
|
|
+ countBallIdentifyTemp02 = models.stream().filter(model -> model.getBaseSpotNo().equals(spot.getBaseSpotNo())
|
|
|
|
|
+ && model.getBaseSpotName().equals(spot.getBaseSpotName())
|
|
|
|
|
+ && (StringUtils.isEmpty(model.getVideoCarNo1()))).count();
|
|
|
//枪机车号识别数
|
|
//枪机车号识别数
|
|
|
countGunIdentify = models.stream().filter(model -> model.getBaseSpotNo().equals(spot.getBaseSpotNo())
|
|
countGunIdentify = models.stream().filter(model -> model.getBaseSpotNo().equals(spot.getBaseSpotNo())
|
|
|
&& model.getBaseSpotName().equals(spot.getBaseSpotName())
|
|
&& model.getBaseSpotName().equals(spot.getBaseSpotName())
|
|
@@ -130,6 +135,9 @@ public class MeterWorkCarnoIdentifyServiceImpl extends BaseServiceImpl<MeterWork
|
|
|
countGunIdentifyTemp = models.stream().filter(model -> model.getBaseSpotNo().equals(spot.getBaseSpotNo())
|
|
countGunIdentifyTemp = models.stream().filter(model -> model.getBaseSpotNo().equals(spot.getBaseSpotNo())
|
|
|
&& model.getBaseSpotName().equals(spot.getBaseSpotName())
|
|
&& model.getBaseSpotName().equals(spot.getBaseSpotName())
|
|
|
&& StringUtils.isEmpty(model.getVideoCarNo2())).count()-countRfidIdentify;
|
|
&& StringUtils.isEmpty(model.getVideoCarNo2())).count()-countRfidIdentify;
|
|
|
|
|
+ countGunIdentifyTemp02 = models.stream().filter(model -> model.getBaseSpotNo().equals(spot.getBaseSpotNo())
|
|
|
|
|
+ && model.getBaseSpotName().equals(spot.getBaseSpotName())
|
|
|
|
|
+ && StringUtils.isEmpty(model.getVideoCarNo2())).count();
|
|
|
//视觉识别数
|
|
//视觉识别数
|
|
|
countVisualIdentify = models.stream().filter(model -> model.getBaseSpotNo().equals(spot.getBaseSpotNo())
|
|
countVisualIdentify = models.stream().filter(model -> model.getBaseSpotNo().equals(spot.getBaseSpotNo())
|
|
|
&& model.getBaseSpotName().equals(spot.getBaseSpotName())
|
|
&& model.getBaseSpotName().equals(spot.getBaseSpotName())
|
|
@@ -177,16 +185,20 @@ public class MeterWorkCarnoIdentifyServiceImpl extends BaseServiceImpl<MeterWork
|
|
|
&& StringUtils.isNotEmpty(model.getVideoCarNo1())
|
|
&& StringUtils.isNotEmpty(model.getVideoCarNo1())
|
|
|
&& !model.getVideoCarNo1().equals(model.getFirstCarNo()) ).count();
|
|
&& !model.getVideoCarNo1().equals(model.getFirstCarNo()) ).count();
|
|
|
//枪机车号识别率------枪机车号识别数/一次计量车数
|
|
//枪机车号识别率------枪机车号识别数/一次计量车数
|
|
|
- if(countCarFirst != 0) {
|
|
|
|
|
|
|
+ if((countCarFirst-countRfidIdentify)-countGunIdentifyTemp <= (countCarFirst-countRfidIdentify)) {
|
|
|
countGunIndentifyRate = Math.round(((countCarFirst-countRfidIdentify)-countGunIdentifyTemp)/((countCarFirst-countRfidIdentify)*1.0)*100*100)/100.0; //(Math.round(*100))/100.0;
|
|
countGunIndentifyRate = Math.round(((countCarFirst-countRfidIdentify)-countGunIdentifyTemp)/((countCarFirst-countRfidIdentify)*1.0)*100*100)/100.0; //(Math.round(*100))/100.0;
|
|
|
|
|
+ }else {
|
|
|
|
|
+ countGunIndentifyRate = Math.round(((countCarFirst-countRfidIdentify)-countGunIdentifyTemp02)/((countCarFirst-countRfidIdentify)*1.0)*100*100)/100.0; //(Math.round(*100))/100.0;
|
|
|
}
|
|
}
|
|
|
//枪机识别准确率------(枪机识别车号数-枪机识别错误修正数)/枪机识别车号数c
|
|
//枪机识别准确率------(枪机识别车号数-枪机识别错误修正数)/枪机识别车号数c
|
|
|
if(countGunIdentify != 0) {
|
|
if(countGunIdentify != 0) {
|
|
|
countGunIndentifyAccuracyRate = Math.round((countGunIdentify-countGunResetCar)/(countGunIdentify*1.0)*100*100)/100.0; //(Math.round((*100))/100.0;
|
|
countGunIndentifyAccuracyRate = Math.round((countGunIdentify-countGunResetCar)/(countGunIdentify*1.0)*100*100)/100.0; //(Math.round((*100))/100.0;
|
|
|
}
|
|
}
|
|
|
//球机车号识别率
|
|
//球机车号识别率
|
|
|
- if(countCarFirst != 0) {
|
|
|
|
|
|
|
+ if(((countCarFirst-countRfidIdentify)-countBallIdentifyTemp) <= (countCarFirst-countRfidIdentify)) {
|
|
|
countBallIndentifyRate = Math.round(((countCarFirst-countRfidIdentify)-countBallIdentifyTemp)/((countCarFirst-countRfidIdentify)*1.0)*100*100)/100.0; //(Math.round(*100))/100.0;
|
|
countBallIndentifyRate = Math.round(((countCarFirst-countRfidIdentify)-countBallIdentifyTemp)/((countCarFirst-countRfidIdentify)*1.0)*100*100)/100.0; //(Math.round(*100))/100.0;
|
|
|
|
|
+ }else {
|
|
|
|
|
+ countGunIndentifyRate = Math.round(((countCarFirst-countRfidIdentify)-countGunIdentifyTemp02)/((countCarFirst-countRfidIdentify)*1.0)*100*100)/100.0; //(Math.round(*100))/100.0;
|
|
|
}
|
|
}
|
|
|
//球机识别准确率
|
|
//球机识别准确率
|
|
|
if(countBallIdentify != 0) {
|
|
if(countBallIdentify != 0) {
|