|
@@ -1,5 +1,6 @@ |
|
|
package com.iformall.sm; |
|
|
package com.iformall.sm; |
|
|
|
|
|
|
|
|
|
|
|
import com.alibaba.fastjson.JSONObject; |
|
|
import lombok.Data; |
|
|
import lombok.Data; |
|
|
|
|
|
|
|
|
import java.util.List; |
|
|
import java.util.List; |
|
@@ -52,7 +53,7 @@ public class AiVideoParam { |
|
|
} |
|
|
} |
|
|
if(video_files.getDigital_human() != null){ |
|
|
if(video_files.getDigital_human() != null){ |
|
|
str.append("\"digital_human\":").append("{") |
|
|
str.append("\"digital_human\":").append("{") |
|
|
.append("\"coord\":").append(video_files.getDigital_human().getCoord().toString()).append(",") |
|
|
|
|
|
|
|
|
.append("\"coord\":").append(JSONObject.toJSONString(video_files.getDigital_human().getCoord())).append(",") |
|
|
.append("\"level\":").append(video_files.getDigital_human().getLevel()).append(",") |
|
|
.append("\"level\":").append(video_files.getDigital_human().getLevel()).append(",") |
|
|
.append("\"ratio\":").append(video_files.getDigital_human().getRatio()) |
|
|
.append("\"ratio\":").append(video_files.getDigital_human().getRatio()) |
|
|
.append("},"); |
|
|
.append("},"); |
|
@@ -62,7 +63,7 @@ public class AiVideoParam { |
|
|
for (Material material:video_files.getMaterial()) { |
|
|
for (Material material:video_files.getMaterial()) { |
|
|
if(material != null){ |
|
|
if(material != null){ |
|
|
str.append("{"); |
|
|
str.append("{"); |
|
|
str.append("\"coord\":").append(material.getCoord().toString()).append(",") |
|
|
|
|
|
|
|
|
str.append("\"coord\":").append(JSONObject.toJSONString(material.getCoord())).append(",") |
|
|
.append("\"image\":").append("\"").append("\",") |
|
|
.append("\"image\":").append("\"").append("\",") |
|
|
.append("\"level\":").append(material.getLevel()).append(",") |
|
|
.append("\"level\":").append(material.getLevel()).append(",") |
|
|
.append("\"ratio\":").append(material.getRatio()); |
|
|
.append("\"ratio\":").append(material.getRatio()); |
|
|