inital commit

main
Tait Hoyem 2 years ago
commit 954e7a20b3

2
.gitignore vendored

@ -0,0 +1,2 @@
/target
Cargo.lock

@ -0,0 +1,9 @@
[package]
name = "ocr-json-common"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
serde = { version = "1.0", features = ["derive"] }

@ -0,0 +1,22 @@
use serde::{Serialize, Deserialize};
#[derive(Serialize, Deserialize, Debug, Clone)]
pub struct TextBox {
pub id: u32,
pub hint: String,
pub confidence: u32,
pub width: u32,
pub height: u32,
pub x: i32,
pub y: i32,
}
#[cfg(test)]
mod tests {
#[test]
fn it_works() {
let result = 2 + 2;
assert_eq!(result, 4);
}
}
Loading…
Cancel
Save