Skip to main content

rapiddoc_core/
ocr.rs

1//! OCR 文字与四角契约;坐标单位由包含它的输出类型声明。
2use serde::{Deserialize, Serialize};
3
4#[derive(Debug, Serialize, Deserialize)]
5pub struct TextLine {
6    pub points: [[f64; 2]; 4],
7    pub text: String,
8    pub confidence: f64,
9    pub detection_score: f64,
10}