mirror of
https://github.com/geekwenjie/SmartJavaAI.git
synced 2026-09-13 05:08:55 +00:00
2、OCR:新增9个通用模型 3、OCR:支持批量检测识别 4、OCR:新增更多参数,使用更加灵活 5、人脸识别:支持ID查询及分页获取人脸信息 6、活体检测:视频检测支持设置最大帧数
38 lines
686 B
Java
38 lines
686 B
Java
package cn.smartjavaai.ocr.entity;
|
|
|
|
import lombok.Data;
|
|
|
|
import java.util.ArrayList;
|
|
import java.util.List;
|
|
import java.util.stream.Collectors;
|
|
|
|
/**
|
|
* OCR信息
|
|
* @author dwj
|
|
* @date 2025/5/20
|
|
*/
|
|
@Data
|
|
public class OcrInfo {
|
|
|
|
private List<List<OcrItem>> lineList;
|
|
|
|
private List<OcrItem> ocrItemList;
|
|
|
|
private String fullText;
|
|
|
|
|
|
|
|
public OcrInfo(List<List<OcrItem>> lineList, String fullText) {
|
|
this.lineList = lineList;
|
|
this.fullText = fullText;
|
|
}
|
|
public OcrInfo() {
|
|
}
|
|
|
|
public List<OcrItem> flattenLines() {
|
|
return lineList.stream()
|
|
.flatMap(List::stream)
|
|
.collect(Collectors.toList());
|
|
}
|
|
}
|