feat: class name
This commit is contained in:
@@ -196,11 +196,17 @@ public class InferenceResultDto {
|
||||
|
||||
// classification info
|
||||
@Getter
|
||||
@AllArgsConstructor
|
||||
public static class Clazz {
|
||||
|
||||
private String code;
|
||||
private String name;
|
||||
private Double score;
|
||||
|
||||
public Clazz(String code, Double score) {
|
||||
this.code = code;
|
||||
this.score = score;
|
||||
this.name = DetectionClassification.fromString(code).getDesc();
|
||||
}
|
||||
}
|
||||
|
||||
// 좌표 정보 point
|
||||
|
||||
Reference in New Issue
Block a user