top | item 1926752

Nude.js | Nudity detection with JavaScript and HTMLCanvas

144 points| pa7 | 15 years ago |patrick-wied.at

51 comments

order
[+] burgerbrain|15 years ago|reply
Now if only they would make one that detected violent and hateful content.

You know, things people should actually be concerned about children seeing.

[+] sliverstorm|15 years ago|reply
It's just a sample reason, nobody says it's the only use case. What if you run library computers or an internet cafe, and don't want customers browsing porn on your machines? (ethics be damned, they are your machines, you make the rules!)
[+] ben0x539|15 years ago|reply
I do not know, I see a more profitable or popular use case for a porn detector than for a violence filter.
[+] pa7|15 years ago|reply
you're right but how would you define violent and hateful content? it's not easy. ok, somebody could build a neural network and train it with typical violent content, but violence has too many types
[+] confuzatron|15 years ago|reply
I'm hoping someone will implement tiresomelyRightOn.js.
[+] matthijs|15 years ago|reply
Even a really close up picture of a face will be seen as nudity. Trying to detect a body (or parts of a body) and determine how much skin is visible would probably be a better approach.

Also quite relevant is this site: http://www.yangsky.com/researches/physicallinguistics/PLUnde... Besides a "breast detector/nipple detector" he also created a couple of weird detectors like a "cowgirl sex position detector" among others. (The link is sfw, the individual detectors are not)

[+] snowmaker|15 years ago|reply
Slightly off topic, but does anyone know of a server-side implementation of the same concept? I've been looking for a good one.
[+] dangrossman|15 years ago|reply
I wonder how much work it would take to run this server side on node.js. It has a canvas implementation.
[+] seanlinmt|15 years ago|reply
Interesting concept.Scanning through the code, reading just the comments, it seems to base the nude-not-nude decision by the amount of skin shown.

Hmm.. I guess it depends on what your definition of nudity is.

[+] cookiecaper|15 years ago|reply
Yeah, the code looks like it determines based on what percentage of the image is "skin". The demo page gives a rather close-up shot of the upper-left of a woman's shoulders/chest. What if someone zooms out a little bit? In my tests it is not doing very well if the subject is not taking up the whole image.

Perhaps a better approach would be attempting to characterize certain features, like nipples/areola or buttocks. That definitely sounds like it would require more intensive processing, though, and be highly dependent on the angle of the image.

I don't really know much about image processing and computational analysis, I just like to pretend I know things.

[+] nailer|15 years ago|reply
Indeed, the sample images don't have any edge cases - eg, a small bathing costume, pasties, etc.

Also what about people with unmaintained pubic hair?

Other tools Im familiarmwith do body part detection, which words pretty well, and generates few false positives (that said, when they do occur they tend to be amusing - a pastrami sandwich , for example).

[+] cabalamat|15 years ago|reply
> The detection algorithm runs at the client

Thank you. I really want Firefox to be even slower running unnecessary JavaScript.

[+] burgerbrain|15 years ago|reply
I'm not sure why this is downvoted. It runs really slow on firefox...
[+] Mpdreamz|15 years ago|reply
Wonder what came first, the clever wordplay or the actual feature. Really cool stuff though.
[+] seejay|15 years ago|reply
I couldn't help but click on the message :D

pretty useful concept, i must say...

[+] nailer|15 years ago|reply
That makes sense: the girl isn't nude. She has a black area over her nipple. If that's detected as nude, a small bathing costume would also be 'nude'.
[+] iwr|15 years ago|reply
If you opt out of the nude.js, the pat-down bot gets to fondle your dangling pointers.