use serde::Serialize;
#[derive(Debug, Clone, Serialize)]
pub struct OcrResult {
pub text: String,
pub words: Vec<OcrWord>,
pub confidence: f32,
}
#[derive(Debug, Clone, Serialize)]
pub struct OcrWord {
pub text: String,
pub confidence: f32,
pub bounding_box: BoundingBox,
}
#[derive(Debug, Clone, Serialize)]
pub struct BoundingBox {
pub x: u32,
pub y: u32,
pub width: u32,
pub height: u32,
}