From 6713d433a220ff7d9a01cc0f38523a9cc8dd4381 Mon Sep 17 00:00:00 2001 From: KiSeungMin Date: Sat, 16 Nov 2024 22:32:26 +0900 Subject: [PATCH 1/2] =?UTF-8?q?feat:=20image=20process=20labels=20?= =?UTF-8?q?=ED=95=84=EB=93=9C=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../OnO/backend/Dto/Process/ImageProcessRegisterDto.java | 1 + .../aisip/OnO/backend/service/FileUploadServiceImpl.java | 6 ++---- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/aisip/OnO/backend/Dto/Process/ImageProcessRegisterDto.java b/src/main/java/com/aisip/OnO/backend/Dto/Process/ImageProcessRegisterDto.java index 182e354..082746c 100644 --- a/src/main/java/com/aisip/OnO/backend/Dto/Process/ImageProcessRegisterDto.java +++ b/src/main/java/com/aisip/OnO/backend/Dto/Process/ImageProcessRegisterDto.java @@ -16,5 +16,6 @@ public class ImageProcessRegisterDto { private String fullUrl; private List> colorsList; private List> points; + private List labels; private int intensity; } diff --git a/src/main/java/com/aisip/OnO/backend/service/FileUploadServiceImpl.java b/src/main/java/com/aisip/OnO/backend/service/FileUploadServiceImpl.java index d761bd7..63270a8 100644 --- a/src/main/java/com/aisip/OnO/backend/service/FileUploadServiceImpl.java +++ b/src/main/java/com/aisip/OnO/backend/service/FileUploadServiceImpl.java @@ -84,7 +84,8 @@ public String getProcessImage(ImageProcessRegisterDto imageProcessRegisterDto) { String url = fastApiUrl; if(imageProcessRegisterDto.getColorsList() != null){ - log.info("color list: " + imageProcessRegisterDto.getColorsList()); + log.info("intensity: " + imageProcessRegisterDto.getIntensity()); + log.info("remove colors on problemImage by colors: " + imageProcessRegisterDto.getColorsList()); url += "/process-color"; } else if (imageProcessRegisterDto.getPoints() != null){ log.info("point list: " + imageProcessRegisterDto.getPoints().toString()); @@ -98,9 +99,6 @@ public String getProcessImage(ImageProcessRegisterDto imageProcessRegisterDto) { HttpEntity request = new HttpEntity<>(imageProcessRegisterDto, headers); - log.info("intensity: " + imageProcessRegisterDto.getIntensity()); - log.info("remove colors on problemImage by colors: " + imageProcessRegisterDto.getColorsList()); - try { ResponseEntity response = restTemplate.postForEntity(url, request, String.class); From 22a0886aa8b2c9a3a52b401596f3b5caa44dd2b6 Mon Sep 17 00:00:00 2001 From: KiSeungMin Date: Sun, 17 Nov 2024 15:30:34 +0900 Subject: [PATCH 2/2] =?UTF-8?q?feat:=20=EA=B4=80=EB=A6=AC=EC=9E=90=20?= =?UTF-8?q?=ED=8E=98=EC=9D=B4=EC=A7=80=20=EC=A0=95=EB=B3=B4=20=EC=A0=9C?= =?UTF-8?q?=EA=B3=B5=20=ED=95=84=EB=93=9C=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/templates/problems.html | 4 +++- src/main/resources/templates/user.html | 4 +++- src/main/resources/templates/users.html | 6 +++++- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/src/main/resources/templates/problems.html b/src/main/resources/templates/problems.html index e1b42e6..db786f9 100644 --- a/src/main/resources/templates/problems.html +++ b/src/main/resources/templates/problems.html @@ -38,7 +38,9 @@

전체 문제 목록

ID + 템플릿 타입 폴더 ID 출처 @@ -57,7 +59,7 @@

전체 문제 목록

problemId - userName + templateType folderId Reference diff --git a/src/main/resources/templates/user.html b/src/main/resources/templates/user.html index ea8e77c..357ac37 100644 --- a/src/main/resources/templates/user.html +++ b/src/main/resources/templates/user.html @@ -41,9 +41,10 @@

유저 상세 정보

- + + diff --git a/src/main/resources/templates/users.html b/src/main/resources/templates/users.html index 919c016..ec4f38a 100644 --- a/src/main/resources/templates/users.html +++ b/src/main/resources/templates/users.html @@ -17,9 +17,11 @@

전체 유저 목록

IDUser ID 1
식별자 identifier
- + + @@ -30,8 +32,10 @@

전체 유저 목록

+
IDUser ID 식별자 유저 유형 문제 수
1 identifier GUEST