captcha-engine 0.4.10

ONNX-based captcha recognition engine
Documentation
//! Captcha Engine - ONNX-based captcha recognition
//!
//! A standalone library for breaking text-based captchas using a pre-trained ONNX model.
//!
//! # Features
//!
//! - `download` (default): Enables async model download from `HuggingFace`
//! - `embed-model`: Embeds the model in the binary (~19MB larger, no network required)
//!
//! # Example
//!
//! ```ignore
//! use captcha_engine::CaptchaModel;
//!
//! // With embed-model feature:
//! let mut model = CaptchaModel::load_embedded()?;
//!
//! // Or load from file:
//! let mut model = CaptchaModel::load("path/to/captcha.rten")?;
//!
//! let image = image::open("captcha.png")?;
//! let text = model.predict(&image)?;
//! println!("Captcha text: {}", text);
//! ```

mod error;
pub mod image_ops;
pub mod model;
pub mod tokenizer;

pub use error::{Error, Result};
pub use model::CaptchaModel;
pub use tokenizer::Tokenizer;

#[cfg(feature = "download")]
pub use model::ensure_model_downloaded;