Skip to main content

Crate swaswa_nude_net_lib

Crate swaswa_nude_net_lib 

Source
Expand description

NudeNet ONNX inference + content-tag derivation.

The crate is framework-agnostic: it exposes a NudeDetector that owns a loaded ONNX session and a pure-functional tagging pipeline that turns Detections into a typed TagResult. Callers wrap it in whatever command/handler layer they want (Tauri, axum, CLI).

Structs§

BBox
Axis-aligned bounding box in original-image pixel coordinates.
Detection
DetectorConfig
NudeDetector
TagResult

Enums§

Class
NudeError
Rating
Tag
Tags emitted by the tagging pipeline. Composite tags (MultipleWomen, FullNude, …) live alongside leaf tags so consumers don’t have to know the difference.

Functions§

build_tags
Build the full tag set for a list of confident detections.
derive_rating
Derive the content rating from the set of detected classes. Classes are considered in escalating severity, so a single explicit class beats any number of suggestive ones.

Type Aliases§

Result