Skip to main content

swaswa_nude_net_lib/
lib.rs

1//! NudeNet ONNX inference + content-tag derivation.
2//!
3//! The crate is framework-agnostic: it exposes a [`NudeDetector`] that owns
4//! a loaded ONNX session and a pure-functional tagging pipeline that turns
5//! [`Detection`]s into a typed [`TagResult`]. Callers wrap it in whatever
6//! command/handler layer they want (Tauri, axum, CLI).
7
8mod class;
9mod detection;
10mod detector;
11mod error;
12mod tagging;
13
14pub use class::{Class, Rating, Tag};
15pub use detection::{BBox, Detection};
16pub use detector::{DetectorConfig, NudeDetector};
17pub use error::NudeError;
18pub use tagging::{TagResult, build_tags, derive_rating};
19
20pub type Result<T> = std::result::Result<T, NudeError>;