1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
//! 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.
pub use ;
pub use ;
pub use ;