captchaforge 0.2.39

Captcha detection and solving for Firefox and BiDi-driven browsers. Detection, vendor solver scaffolding, trusted cross-origin click delivery into nested OOPIFs, and stealth personas are implemented and tested; broad live-vendor solve rates are not yet benchmarked.
Documentation
//! Local vision backend for CAPTCHA solving (zero API cost).
//!
//! Uses ONNX Runtime (`ort`) for GPU-accelerated inference on
//! pre-trained models. Models are downloaded on first use and cached
//! under the platform cache directory (`dirs::cache_dir()/captchaforge/models/`
//!: `~/.cache/captchaforge/models/` on Linux, honoring `$XDG_CACHE_HOME`).
//!
//! ## Architecture
//!
//! ```text
//! Challenge screenshot → YOLOv8 detection → grid tile mapping → BiDi clicks
//!                      → CRNN recognition → text answer
//! ```
//!
//! The vision backend is **feature-gated** behind `vision`:
//!
//! ```toml
//! [dependencies]
//! captchaforge = { version = "0.2", features = ["vision"] }
//! ```
//!
//! Without the feature, the solver chain falls back to VLM (Ollama)
//! and Tesseract OCR.

#[cfg(feature = "vision")]
pub mod model_hub;

#[cfg(feature = "vision")]
pub mod yolo;

#[cfg(feature = "vision")]
pub mod crnn;

#[cfg(feature = "vision")]
pub use model_hub::{ModelHub, ModelId};

#[cfg(feature = "vision")]
pub use yolo::{Detection, YoloDetector, YOLO_INPUT_SIZE};

#[cfg(feature = "vision")]
pub use crnn::{default_charset, CrnnRecognizer, CRNN_INPUT_HEIGHT, CRNN_INPUT_WIDTH};