|
@@ -116,10 +116,14 @@ public class MaterialCutFrameServiceImpl extends ServiceImpl<MaterialCutFrameMap
|
|
|
|
|
|
snapshotConfig.put("OutputFile", output.toJSONString());
|
|
snapshotConfig.put("OutputFile", output.toJSONString());
|
|
// SnapshotConfig->Time
|
|
// SnapshotConfig->Time
|
|
- Integer time = ((secondDuration.intValue() - 2) / 14); // 时长 / 14 == 间隔时间
|
|
|
|
|
|
+ // Integer time = ((secondDuration.intValue() - 2) / 14) + 1; // 时长 / 14 == 间隔时间
|
|
|
|
+
|
|
|
|
+ double num = (double) secondDuration / 13;
|
|
|
|
+ long rint = Math.round(num);
|
|
|
|
+ log.info("相隔时间数:{}", rint);
|
|
snapshotConfig.put("Time", 2000);
|
|
snapshotConfig.put("Time", 2000);
|
|
// SnapshotConfig->Interval/Num
|
|
// SnapshotConfig->Interval/Num
|
|
- snapshotConfig.put("Interval", time);
|
|
|
|
|
|
+ snapshotConfig.put("Interval", rint);
|
|
snapshotConfig.put("Num", "14");
|
|
snapshotConfig.put("Num", "14");
|
|
// SnapshotConfig->Width/Height
|
|
// SnapshotConfig->Width/Height
|
|
snapshotConfig.put("Height", height);
|
|
snapshotConfig.put("Height", height);
|