4 releases (2 breaking)

0.3.0 Feb 15, 2020
0.2.0 Jul 21, 2019
0.1.1 May 13, 2019
0.1.0 Apr 15, 2019

#643 in Images

Download history 40/week @ 2023-11-20 53/week @ 2023-11-27 37/week @ 2023-12-04 47/week @ 2023-12-11 42/week @ 2023-12-18 38/week @ 2023-12-25 43/week @ 2024-01-01 61/week @ 2024-01-08 40/week @ 2024-01-15 49/week @ 2024-01-22 53/week @ 2024-01-29 60/week @ 2024-02-05 52/week @ 2024-02-12 82/week @ 2024-02-19 89/week @ 2024-02-26 74/week @ 2024-03-04

305 downloads per month
Used in sn0int

LGPL-3.0

420KB
399 lines

nude-rs Build Status crates.io docs.rs

High performance nudity detection in rust. This is a port based on nude.js and nude.py.

benchmark

We are currently going for an identical nudity detection algorithm, future versions may tweak parameters but due to the complexity of this topic we can't provide actual support for false positives or negatives. You are welcome to discuss ideas in the issue tracker but you may have to write a patch yourself.

The original implementation is based on this paper.

Please consider this library experimental.

Usage as a library

extern crate image;
extern crate nude;

let img = image::open("test_data/test2.jpg").expect("failed to open");
let nudity = nude::scan(&img).analyse();
println!("nudity={:?}", nudity);

Running the example binary

cargo run --release --example scan test_data/test2.jpg

License

This project is free software released under the LGPL3+ license.

Dependencies

~14MB
~70K SLoC