To run nude.js, check out the examples on this site.
Essentially, you need to include the JS files, and then run the checking algorithm on the images you want to run it on. There are 3 functions: nude.init()
nude.load(param)
and nude.scan(function optional)
.
From the linked example site:
nude.load(node);
// Scan it
nude.scan(function(result){
alert(result ? "Nudity found in " + node.id + "!" : "Not nude");
});
It's also worth noting that an article from the developer recommends not using it in production mode.
I wouldn’t recommend using the library in production mode right now because the detection rate is about 60%
You may want to check out the links on this question and answers on SO for alternatives.