zouyu
2025-11-27 eed98e551c817ead7965e08820d4b7adbc4a47f0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
package com.xindao.ocr.smartjavaai.entity;
 
import com.xindao.ocr.smartjavaai.enums.AngleEnum;
import lombok.Data;
 
/**
 * @author dwj
 * @date 2025/5/20
 */
@Data
public class OcrItem {
 
    /**
     * 识别框
     */
    private OcrBox ocrBox;
 
    /**
     * 文本
     */
    private String text;
 
    /**
     * 方向
     */
    private AngleEnum angle;
 
    /**
     * 检测得分
     */
    private float score;
 
 
    public OcrItem(OcrBox ocrBox, String text) {
        this.ocrBox = ocrBox;
        this.text = text;
    }
 
    public OcrItem() {
    }
 
    public OcrItem(OcrBox ocrBox, String text, AngleEnum angle) {
        this.ocrBox = ocrBox;
        this.text = text;
        this.angle = angle;
    }
 
    public OcrItem(OcrBox ocrBox, AngleEnum angle, float score) {
        this.ocrBox = ocrBox;
        this.angle = angle;
        this.score = score;
    }
 
}