|
|
@@ -0,0 +1,25 @@
|
|
|
+package com.etotem.cfc.dto;
|
|
|
+
|
|
|
+import lombok.Data;
|
|
|
+import java.util.List;
|
|
|
+
|
|
|
+/**
|
|
|
+ * 照片情绪识别结果
|
|
|
+ */
|
|
|
+@Data
|
|
|
+public class EmotionRecognitionResult {
|
|
|
+ /** 识别到的情绪列表,按置信度降序 */
|
|
|
+ private List<EmotionItem> emotions;
|
|
|
+ /** 综合心情天气(sunny/cloudy/rainy/stormy) */
|
|
|
+ private String moodWeather;
|
|
|
+ /** 原始响应(调试用) */
|
|
|
+ private String rawResponse;
|
|
|
+
|
|
|
+ @Data
|
|
|
+ public static class EmotionItem {
|
|
|
+ private String label; // 情绪标签:开心/平静/难过/生气 等
|
|
|
+ private Double confidence; // 置信度 0-100
|
|
|
+ private String color; // 前端展示色值
|
|
|
+ private String type; // 英文类型:joy/sadness/anger/fear 等
|
|
|
+ }
|
|
|
+}
|