라벨링 툴 영문명칭 수정 추가
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
package com.kamco.cd.kamcoback.common.enums;
|
package com.kamco.cd.kamcoback.common.enums;
|
||||||
|
|
||||||
|
import com.kamco.cd.kamcoback.common.utils.HeaderUtil;
|
||||||
import lombok.AllArgsConstructor;
|
import lombok.AllArgsConstructor;
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
|
|
||||||
@@ -51,6 +52,6 @@ public enum DetectionClassification {
|
|||||||
*/
|
*/
|
||||||
public static String fromStrDesc(String text) {
|
public static String fromStrDesc(String text) {
|
||||||
DetectionClassification dtf = fromString(text);
|
DetectionClassification dtf = fromString(text);
|
||||||
return dtf.getDesc();
|
return HeaderUtil.isEnglishRequest() ? dtf.getId() : dtf.getDesc();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -508,7 +508,7 @@ public class TrainingDataLabelRepositoryImpl extends QuerydslRepositorySupport
|
|||||||
: "")
|
: "")
|
||||||
.classificationName(
|
.classificationName(
|
||||||
DetectionClassification.fromStrDesc(
|
DetectionClassification.fromStrDesc(
|
||||||
mapSheetAnalDataInferenceGeomEntityEntity.getClassAfterCd()))
|
mapSheetAnalDataInferenceGeomEntityEntity.getClassBeforeCd()))
|
||||||
.probability(
|
.probability(
|
||||||
mapSheetAnalDataInferenceGeomEntityEntity.getClassBeforeProb() != null
|
mapSheetAnalDataInferenceGeomEntityEntity.getClassBeforeProb() != null
|
||||||
? mapSheetAnalDataInferenceGeomEntityEntity.getClassBeforeProb()
|
? mapSheetAnalDataInferenceGeomEntityEntity.getClassBeforeProb()
|
||||||
|
|||||||
@@ -534,7 +534,7 @@ public class TrainingDataReviewRepositoryImpl extends QuerydslRepositorySupport
|
|||||||
: "")
|
: "")
|
||||||
.classificationName(
|
.classificationName(
|
||||||
DetectionClassification.fromStrDesc(
|
DetectionClassification.fromStrDesc(
|
||||||
mapSheetAnalDataInferenceGeomEntityEntity.getClassAfterCd()))
|
mapSheetAnalDataInferenceGeomEntityEntity.getClassBeforeCd()))
|
||||||
.probability(
|
.probability(
|
||||||
mapSheetAnalDataInferenceGeomEntityEntity.getClassBeforeProb() != null
|
mapSheetAnalDataInferenceGeomEntityEntity.getClassBeforeProb() != null
|
||||||
? mapSheetAnalDataInferenceGeomEntityEntity.getClassBeforeProb()
|
? mapSheetAnalDataInferenceGeomEntityEntity.getClassBeforeProb()
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ import com.fasterxml.jackson.databind.ObjectMapper;
|
|||||||
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
|
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
|
||||||
import com.fasterxml.jackson.databind.node.ObjectNode;
|
import com.fasterxml.jackson.databind.node.ObjectNode;
|
||||||
import com.kamco.cd.kamcoback.common.enums.ImageryFitStatus;
|
import com.kamco.cd.kamcoback.common.enums.ImageryFitStatus;
|
||||||
|
import com.kamco.cd.kamcoback.common.utils.HeaderUtil;
|
||||||
import com.kamco.cd.kamcoback.common.utils.geometry.GeometryDeserializer;
|
import com.kamco.cd.kamcoback.common.utils.geometry.GeometryDeserializer;
|
||||||
import io.swagger.v3.oas.annotations.media.Schema;
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
@@ -399,7 +400,10 @@ public class TrainingDataLabelDto {
|
|||||||
private String memo;
|
private String memo;
|
||||||
|
|
||||||
public InspectionResultInfo(String verificationResult, String inappropriateReason) {
|
public InspectionResultInfo(String verificationResult, String inappropriateReason) {
|
||||||
this.verificationResult = ImageryFitStatus.fromCode(verificationResult).getText();
|
this.verificationResult =
|
||||||
|
HeaderUtil.isEnglishRequest()
|
||||||
|
? ImageryFitStatus.fromCode(verificationResult).getTextEn()
|
||||||
|
: ImageryFitStatus.fromCode(verificationResult).getText();
|
||||||
this.inappropriateReason = inappropriateReason;
|
this.inappropriateReason = inappropriateReason;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user