Files
klp-oa/klp-wms/src/main/java/com/klp/domain/vo/ImageRecognitionVo.java

134 lines
2.2 KiB
Java
Raw Normal View History

2025-08-02 14:46:02 +08:00
package com.klp.domain.vo;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
import java.util.Map;
/**
* 图片识别结果视图对象
*
* @author klp
* @date 2025-01-27
*/
@Data
public class ImageRecognitionVo implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 识别ID
*/
private Long recognitionId;
/**
* 图片URL
*/
private String imageUrl;
/**
* 识别类型
*/
private String recognitionType;
/**
* 识别结果
*/
private String recognizedText;
/**
* 结构化识别结果JSON格式
*/
private Map<String, Object> structuredResult;
/**
* BOM信息列表
*/
private List<BomItemVo> bomItems;
2025-08-02 15:13:09 +08:00
/**
* 识别结果属性列表
*/
private List<AttributeVo> attributes;
2025-08-02 14:46:02 +08:00
/**
* 识别置信度
*/
private Double confidence;
/**
* 识别状态success-成功failed-失败processing-处理中
*/
private String status;
/**
* 错误信息
*/
private String errorMessage;
/**
* 处理时间毫秒
*/
private Long processingTime;
/**
* 创建时间
*/
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date createTime;
/**
* BOM项目信息
*/
@Data
public static class BomItemVo {
/**
* 原材料ID
*/
private String rawMaterialId;
/**
* 原材料名称
*/
private String rawMaterialName;
/**
* 数量
*/
private Double quantity;
/**
* 单位
*/
private String unit;
/**
* 规格
*/
private String specification;
/**
* 备注
*/
private String remark;
}
2025-08-02 15:13:09 +08:00
/**
* 属性信息
*/
@Data
public static class AttributeVo {
/**
* 属性名称
*/
private String attrKey;
/**
* 属性值
*/
private String attrValue;
}
2025-08-02 14:46:02 +08:00
}