Captcha Engine
A high-performance, ONNX-based captcha recognition engine for Rust.
Features
- High Accuracy: Uses a custom-trained CNN-RNN-CTC model (95%+ accuracy)
- Fast Inference: Powered by ort (ONNX Runtime)
- Flexible Deployment:
download(default): Tiny binary, downloads model on first runembed-model: Zero-dependency, single binary distribution (bundles model)
- Standard Interface: Simple
predict(image)API
Usage
Add to Cargo.toml:
[]
= { = "crates/captcha-engine" }
# For embedded model:
# captcha-engine = { path = "crates/captcha-engine", features = ["embed-model"], default-features = false }
Example
use CaptchaModel;
Architecture
- Input: 215x80 RGB images
- Model: Custom ResNet + BiLSTM + CTC (ONNX format)
- Output: 6-character alphanumeric string (case-insensitive)