Commit b1338b94 by xmh

ä¸è§场景配置上传下载添加标定信息

1 parent 95405dae
...@@ -201,6 +201,7 @@ public class TaskController extends TaskBaseController { ...@@ -201,6 +201,7 @@ public class TaskController extends TaskBaseController {
JSONObject result = new JSONObject(); JSONObject result = new JSONObject();
result.put("config", sceneNeed.getJSONObject("config")); result.put("config", sceneNeed.getJSONObject("config"));
result.put("rois", sceneNeed.getJSONArray("rois")); result.put("rois", sceneNeed.getJSONArray("rois"));
result.put("calibration", sceneNeed.getJSONArray("calibration"));
String s = result.toString(); String s = result.toString();
byte[] bytes = s.getBytes(StandardCharsets.UTF_8); byte[] bytes = s.getBytes(StandardCharsets.UTF_8);
......
...@@ -26,5 +26,9 @@ public enum SceneUtils { ...@@ -26,5 +26,9 @@ public enum SceneUtils {
JSONObject config = source.getJSONObject("config"); JSONObject config = source.getJSONObject("config");
target.put("config", config); target.put("config", config);
} }
if (source.containsKey("calibration")) {
JSONObject calibration = source.getJSONObject("calibration");
target.put("calibration", calibration);
}
} }
} }
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!