라벨링 툴 라벨러 목록에 polygon, cog 추가
This commit is contained in:
@@ -1,5 +1,9 @@
|
||||
package com.kamco.cd.kamcoback.trainingdata.dto;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.fasterxml.jackson.core.JsonProcessingException;
|
||||
import com.fasterxml.jackson.databind.JsonNode;
|
||||
import com.fasterxml.jackson.databind.ObjectMapper;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import java.util.UUID;
|
||||
import lombok.AllArgsConstructor;
|
||||
@@ -16,7 +20,6 @@ public class TrainingDataLabelDto {
|
||||
@Getter
|
||||
@Setter
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public static class LabelingListDto {
|
||||
|
||||
private UUID assignmentUid;
|
||||
@@ -26,6 +29,42 @@ public class TrainingDataLabelDto {
|
||||
private String mapSheetNum;
|
||||
private String mapIdNm;
|
||||
private Long pnu;
|
||||
@JsonIgnore private String geom_data; // json string
|
||||
private JsonNode geom;
|
||||
private String beforeCogUrl;
|
||||
private String afterCogUrl;
|
||||
|
||||
public LabelingListDto(
|
||||
UUID assignmentUid,
|
||||
Long inferenceGeomUid,
|
||||
String workerUid,
|
||||
String workState,
|
||||
String mapSheetNum,
|
||||
String mapIdNm,
|
||||
Long pnu,
|
||||
String geom_data,
|
||||
String beforeCogUrl,
|
||||
String afterCogUrl) {
|
||||
this.assignmentUid = assignmentUid;
|
||||
this.inferenceGeomUid = inferenceGeomUid;
|
||||
this.workerUid = workerUid;
|
||||
this.workState = workState;
|
||||
this.mapSheetNum = mapSheetNum;
|
||||
this.mapIdNm = mapIdNm;
|
||||
this.pnu = pnu;
|
||||
|
||||
ObjectMapper mapper = new ObjectMapper();
|
||||
JsonNode geomJson;
|
||||
try {
|
||||
geomJson = mapper.readTree(geom_data);
|
||||
} catch (JsonProcessingException e) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
this.geom = geomJson;
|
||||
|
||||
this.beforeCogUrl = beforeCogUrl;
|
||||
this.afterCogUrl = afterCogUrl;
|
||||
}
|
||||
}
|
||||
|
||||
@Schema(name = "searchReq", description = "검색 요청")
|
||||
|
||||
Reference in New Issue
Block a user