|
@@ -197,7 +197,6 @@ public class RabbitMqListener {
|
|
|
|
|
|
String dataPath = "data/data" + num;//老版本文件路径
|
|
String dataPath = "data/data" + num;//老版本文件路径
|
|
|
|
|
|
- Map<String,String> map = null;
|
|
|
|
Integer pushChannel = null;
|
|
Integer pushChannel = null;
|
|
String pushToken = null;
|
|
String pushToken = null;
|
|
Integer videoVersion = null;
|
|
Integer videoVersion = null;
|
|
@@ -230,7 +229,7 @@ public class RabbitMqListener {
|
|
//生成project.json和data.json供算法部使用
|
|
//生成project.json和data.json供算法部使用
|
|
ComputerUtil.createJson(path, splitType, skyboxType, dataDescribe, num, path);
|
|
ComputerUtil.createJson(path, splitType, skyboxType, dataDescribe, num, path);
|
|
//计算模型并返回需要上传oss的文件集合
|
|
//计算模型并返回需要上传oss的文件集合
|
|
- map = ComputerUtil.computer(num, path, buildType);
|
|
|
|
|
|
+ ComputerUtil.computer(num, path, buildType);
|
|
|
|
|
|
} else {
|
|
} else {
|
|
|
|
|
|
@@ -254,9 +253,7 @@ public class RabbitMqListener {
|
|
this.deleteCachesAndResult(path);
|
|
this.deleteCachesAndResult(path);
|
|
|
|
|
|
//v2版本使用4k算法
|
|
//v2版本使用4k算法
|
|
- if(dataJson.containsKey("videoVersion")
|
|
|
|
- && StringUtils.isNotEmpty(dataJson.getString("videoVersion"))
|
|
|
|
- && Integer.parseInt(dataJson.getString("videoVersion")) < 4){
|
|
|
|
|
|
+ if (!ObjectUtils.isEmpty(dataJson.getInteger("videoVersion")) && dataJson.getIntValue("videoVersion") < 4) {
|
|
skyboxType = "SKYBOX_V6";
|
|
skyboxType = "SKYBOX_V6";
|
|
}
|
|
}
|
|
|
|
|
|
@@ -264,43 +261,25 @@ public class RabbitMqListener {
|
|
log.info("path:" + path);
|
|
log.info("path:" + path);
|
|
ComputerUtil.createJson(path, splitType, skyboxType, dataDescribe, num, path);
|
|
ComputerUtil.createJson(path, splitType, skyboxType, dataDescribe, num, path);
|
|
//计算模型并返回需要上传oss的文件集合
|
|
//计算模型并返回需要上传oss的文件集合
|
|
- map = ComputerUtil.computer(num, path, buildType);
|
|
|
|
|
|
+ ComputerUtil.computer(num, path, buildType);
|
|
//计算完成时间
|
|
//计算完成时间
|
|
log.info("计算完成耗时:{}",computeTime);
|
|
log.info("计算完成耗时:{}",computeTime);
|
|
|
|
|
|
- if(Integer.parseInt(cameraType) == 5 || Integer.parseInt(cameraType) == 6){
|
|
|
|
- map.put(path + File.separator + "capture/stitch_params.txt", dataPath + "/stitch_params.txt");
|
|
|
|
- }
|
|
|
|
- map.put(path + File.separator + "capture/Up.xml", dataPath + "/Up.xml");
|
|
|
|
- map.put(path + File.separator + "capture/Up2.xml", dataPath + "/Up2.xml");
|
|
|
|
-
|
|
|
|
- //转台相机
|
|
|
|
- if(Integer.parseInt(cameraType) == 13){
|
|
|
|
- map.put(path + File.separator + "capture/Up.txt", dataPath + "/Up.txt");
|
|
|
|
- map.put(path + File.separator + "capture/Up2.txt", dataPath + "/Up2.txt");
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
//计算已使用容量
|
|
//计算已使用容量
|
|
payStatus = 1;
|
|
payStatus = 1;
|
|
|
|
|
|
log.info("八目上完oss结束修改数据:"+num);
|
|
log.info("八目上完oss结束修改数据:"+num);
|
|
|
|
|
|
- //读取计算结果文件生成videosJson
|
|
|
|
- String videoVersionStr = dataJson.getString("videoVersion");
|
|
|
|
- videoVersion = StrUtil.isEmpty(videoVersionStr) ? null : Integer.parseInt(videoVersionStr);
|
|
|
|
-
|
|
|
|
//计算成功 激光转台相机 同步 请求
|
|
//计算成功 激光转台相机 同步 请求
|
|
this.syncLaserSystem(message);
|
|
this.syncLaserSystem(message);
|
|
}
|
|
}
|
|
|
|
|
|
buildSceneResult.setFileId(fileId);
|
|
buildSceneResult.setFileId(fileId);
|
|
buildSceneResult.setPayStatus(payStatus);
|
|
buildSceneResult.setPayStatus(payStatus);
|
|
- buildSceneResult.setUploadMap(map);
|
|
|
|
buildSceneResult.setPath(path);
|
|
buildSceneResult.setPath(path);
|
|
buildSceneResult.setPushChannel(pushChannel);
|
|
buildSceneResult.setPushChannel(pushChannel);
|
|
buildSceneResult.setPushToken(pushToken);
|
|
buildSceneResult.setPushToken(pushToken);
|
|
buildSceneResult.setPrefix(prefix);
|
|
buildSceneResult.setPrefix(prefix);
|
|
- buildSceneResult.setVideoVersion(videoVersion);
|
|
|
|
|
|
|
|
CreateObjUtil.deleteFile(path.replace(ConstantFilePath.BUILD_MODEL_PATH, "/") + "/capture");
|
|
CreateObjUtil.deleteFile(path.replace(ConstantFilePath.BUILD_MODEL_PATH, "/") + "/capture");
|
|
|
|
|