- 新增OCR文字识别模块:支持最新 PP-OCRv5

- OCR文本识别:支持文字方向检测与自动校正
This commit is contained in:
dengwenjie
2025-05-26 16:24:24 +08:00
parent 8dc5f83f47
commit 1914e2c316
59 changed files with 2523 additions and 892 deletions

View File

@@ -0,0 +1,41 @@
package cn.smartjavaai.ocr.entity;
/**
* 方向检测结果
* @author Calvin
* @mail 179209347@qq.com
* @website www.aias.top
*/
public class DirectionInfo {
/**
* 方向 0 90 180 270
*/
private String name;
/**
* 置信度
*/
private Double prob;
public DirectionInfo(String name, Double prob) {
this.name = name;
this.prob = prob;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public Double getProb() {
return prob;
}
public void setProb(Double prob) {
this.prob = prob;
}
}