|
|
|
|
@@ -36,6 +36,7 @@ import com.kamco.cd.kamcoback.scheduler.dto.JobStatusDto;
|
|
|
|
|
import jakarta.persistence.EntityManager;
|
|
|
|
|
import jakarta.persistence.EntityNotFoundException;
|
|
|
|
|
import jakarta.validation.constraints.NotNull;
|
|
|
|
|
import java.time.LocalDateTime;
|
|
|
|
|
import java.time.ZonedDateTime;
|
|
|
|
|
import java.util.ArrayList;
|
|
|
|
|
import java.util.LinkedHashMap;
|
|
|
|
|
@@ -453,12 +454,18 @@ public class InferenceResultCoreService {
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
public AnalResultInfo getInferenceResultInfo(UUID uuid) {
|
|
|
|
|
|
|
|
|
|
// 추론 결과 정보조회
|
|
|
|
|
log.info("get inference result info start time = {}", LocalDateTime.now());
|
|
|
|
|
AnalResultInfo resultInfo = mapSheetLearnRepository.getInferenceResultInfo(uuid);
|
|
|
|
|
log.info("get inference result info end time = {}", LocalDateTime.now());
|
|
|
|
|
// bbox, point 조회
|
|
|
|
|
log.info("get inference result info bbox start time = {}", LocalDateTime.now());
|
|
|
|
|
BboxPointDto bboxPointDto = mapSheetLearnRepository.getBboxPoint(uuid);
|
|
|
|
|
log.info("get inference result info bbox end time = {}", LocalDateTime.now());
|
|
|
|
|
resultInfo.setBboxGeom(bboxPointDto.getBboxGeom());
|
|
|
|
|
resultInfo.setBboxCenterPoint(bboxPointDto.getBboxCenterPoint());
|
|
|
|
|
|
|
|
|
|
return resultInfo;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@@ -469,7 +476,10 @@ public class InferenceResultCoreService {
|
|
|
|
|
* @return 분류별 탐지건수 정보
|
|
|
|
|
*/
|
|
|
|
|
public List<Dashboard> getInferenceClassCountList(UUID uuid) {
|
|
|
|
|
return mapSheetLearnRepository.getInferenceClassCountList(uuid);
|
|
|
|
|
log.info("get inference class count list start time = {}", LocalDateTime.now());
|
|
|
|
|
List<Dashboard> classCountList = mapSheetLearnRepository.getInferenceClassCountList(uuid);
|
|
|
|
|
log.info("get inference class count list end time = {}", LocalDateTime.now());
|
|
|
|
|
return classCountList;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
@@ -478,7 +488,11 @@ public class InferenceResultCoreService {
|
|
|
|
|
* @return geom 목록 정보
|
|
|
|
|
*/
|
|
|
|
|
public Page<Geom> getInferenceGeomList(UUID uuid, SearchGeoReq searchGeoReq) {
|
|
|
|
|
return mapSheetLearnRepository.getInferenceGeomList(uuid, searchGeoReq);
|
|
|
|
|
log.info("get Inference Geom List start time = {}", LocalDateTime.now());
|
|
|
|
|
Page<Geom> geom = mapSheetLearnRepository.getInferenceGeomList(uuid, searchGeoReq);
|
|
|
|
|
log.info("get Inference Geom List end time = {}", LocalDateTime.now());
|
|
|
|
|
|
|
|
|
|
return geom;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|