Skip to main content

Crate fpo_rust

Crate fpo_rust 

Source
Expand description

fpo-rust – Rust inference port of fast-plate-ocr.

§Quick start

use fpo_rust::{LicensePlateRecognizer, PlateInput, OcrModel};

let rec = LicensePlateRecognizer::from_hub(OcrModel::CctSV2Global, false).unwrap();
let pred = rec.run_one(PlateInput::from("plate.png"), false, true).unwrap();
println!("{}", pred.plate);

Re-exports§

pub use config::PlateConfig;
pub use hub::OcrModel;
pub use process::PlatePrediction;
pub use recognizer::LicensePlateRecognizer;
pub use recognizer::PlateInput;

Modules§

config
Plate configuration for inference, parsed from a YAML file.
hub
Model hub: known ONNX models with their download URLs and local caching.
process
Image pre-processing and model-output post-processing.
recognizer
ONNX-Runtime-based license-plate recognizer.