Browse Source

解决离线视频分析的问题都是一个坐标问题

tags/v1.2.0^2
wanjing 1 year ago
parent
commit
9228623258
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/third/dsp/DspCallbackServiceImpl.java

+ 4
- 1
tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/third/dsp/DspCallbackServiceImpl.java View File

@@ -212,7 +212,10 @@ public class DspCallbackServiceImpl implements IDspCallbackService {
String startFrame = frame.substring(0, frame.indexOf("-"));
//统一按照25帧计算
int second = Integer.parseInt(startFrame) / 25;
long shootTime = inspection.getExecutionStartTime().getTime() + second;

// 解决离线视频分析的问题都是一个坐标问题
// long shootTime = inspection.getExecutionStartTime().getTime() + second;
long shootTime = Long.parseLong(flightDataList.get(flightDataList.size() - 1).getTimestamp()) + second * 1000;
FlightData flightData_off = getFlightDataByTime(flightDataList, shootTime);
if (ObjectUtil.isNotNull(flightData_off)) {
inspectionFile.setLongitude(flightData_off.getLng());

Loading…
Cancel
Save