Skip to main content

fpo_rust/
lib.rs

1//! fpo-rust – Rust inference port of [fast-plate-ocr].
2//!
3//! [fast-plate-ocr]: https://github.com/ankandrew/fast-plate-ocr
4//!
5//! # Quick start
6//!
7//! ```no_run
8//! use fpo_rust::{LicensePlateRecognizer, PlateInput, OcrModel};
9//!
10//! let rec = LicensePlateRecognizer::from_hub(OcrModel::CctSV2Global, false).unwrap();
11//! let pred = rec.run_one(PlateInput::from("plate.png"), false, true).unwrap();
12//! println!("{}", pred.plate);
13//! ```
14
15pub mod config;
16pub mod hub;
17pub mod process;
18pub mod recognizer;
19
20pub use config::PlateConfig;
21pub use hub::OcrModel;
22pub use process::PlatePrediction;
23pub use recognizer::{LicensePlateRecognizer, PlateInput};