Skip to main content

Crate outis_core

Crate outis_core 

Source
Expand description

Captcha Engine - RTEN-based captcha recognition

A standalone library for breaking text-based captchas using a pre-trained RTEN model (optimized ONNX).

§Features

  • download (default): Enables async model download from HuggingFace
  • embed-model: Embeds the model in the binary (~19MB larger, no network required)

§Example

use outis_core::CaptchaModel;

// With embed-model feature:
let mut model = CaptchaModel::load_embedded()?;

// Or load from file:
let mut model = CaptchaModel::load("path/to/outis-model.rten")?;

let image = image::open("captcha.png")?;
let text = model.predict(&image)?;
println!("Captcha text: {}", text);

Re-exports§

pub use model::CaptchaModel;
pub use tokenizer::Tokenizer;
pub use model::ensure_model_downloaded;

Modules§

image_ops
Image preprocessing for the captcha model.
model
tokenizer
Tokenizer for decoding captcha model output.

Enums§

Error
Errors that can occur during captcha processing.

Type Aliases§

Result
Result type alias for captcha engine operations.