Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation
This project
Loading...
Sign in
谢明辉
/
fanxing3
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit b1338b94
authored
Oct 27, 2021
by
xmh
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
ä¸è§场景配置上传下载添加标定信息
1 parent
95405dae
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
0 deletions
fanxing-task/src/main/java/com/viontech/fanxing/task/controller/web/TaskController.java
fanxing-task/src/main/java/com/viontech/fanxing/task/utils/SceneUtils.java
fanxing-task/src/main/java/com/viontech/fanxing/task/controller/web/TaskController.java
View file @
b1338b9
...
@@ -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
);
...
...
fanxing-task/src/main/java/com/viontech/fanxing/task/utils/SceneUtils.java
View file @
b1338b9
...
@@ -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
);
}
}
}
}
}
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment