Slashdot Mirror


Detecting Nudity With AI and OpenCV

mikejuk writes: AI gets put to some strange tasks. Not satisfied with the Turing test or inventing Skynet, Algorithmia have put together a nudity detector. Take one face detector from OpenCV and use it to find a nose. Take the skin color from the nose and then see what parts of the body are skin colored in the photo. If there is lot of skin color shout NUDE! Actually, the website lets you put in your own photos and classifies them into Rude or Good and gives you a confidence estimate. Obama with his top off — no problem but the familiar image processing test photo of Lena the pin up girl rates a 'Rude'.

6 of 172 comments (clear)

  1. Nude == Rude? by dskoll · · Score: 5, Insightful

    Why does "Nude" equate to "Rude"? Oh right, I forgot... we're afraid of our bodies and spooked by healthy sexuality.

    1. Re:Nude == Rude? by Alwin+Henseler · · Score: 5, Interesting

      If I were to seek out your daughter specifically, and whip out my penis right in front of her, that would lean towards pedo tendencies & you'd be right. I'd feel the same way if I had a young daughter.

      Now if I were to walk along the street naked, go about my own business not bothering anyone, and your daughter would happen to see me in that state, please explain to me how this would 'hurt' her?

      Hint: you can't, because it doesn't. More likely the contrary (as in: seeing a naked body every now & then lets kids grow up to be healthy adults). As has been shown at least a few times in serious studies.

      The difference here is only in how I would behave towards your daughter (and other people), regardless of being naked or not. If I'm rude, then I'm rude, even with clothes on. If I'm polite, then I'm polite, even if naked.

      Although a lot more sensitive, essentially the same thing goes for human sexuality. Suppressing that from public view screws people up more badly than satisfying healthy curiosity on the subject. Or letting people have their pr0n, if they want it.

      So GP is right, there is nothing inherently wrong about showing or seeing a naked body. The 'problem' with that is a cultural one, how society deals with it.

    2. Re:Nude == Rude? by shmlco · · Score: 5, Informative

      In 2008, the Washington Post reported on a University of Washington study which found that teenagers who received comprehensive sex education were 60% less likely to get pregnant than someone who received abstinence-only education.

      A 2007 federal report found that abstinence-only programs have had "no impacts on rates of sexual abstinence," reported ThinkProgress.

      In a 2011 study published in the journal PLOS One, researchers found a similar correlation between a state's commitment to abstinence education and pregnancy rates.

      One of the most interesting and notable examples of this phenomenon comes out of Texas, which, according to ThinkProgess, has one of the highest rates of teen pregnancy in the country and a track record of strict abstinence-only education.

      --
      Any sect, cult, or religion will legislate its creed into law if it acquires the political power to do so.
    3. Re:Nude == Rude? by Anonymous Coward · · Score: 5, Insightful

      I remember back when I was 14, raised in my fundamentalist protestant christian community. No playboy magazine. No masturbation without guilt. Sexual desire was lust, which was a sin, and I was supposed to resist temptation and ask for forgiveness.

      We had no sexual outlets. So, we played with the girls every chance we got. And they were just as eager, because they were in the same boat. The moment the grown-ups weren't around, neither were the clothes. Did I mention we did not have access to condoms, pills, or any form of birth control at all?

      I am damn lucky I didn't knock anyone up. The only reason, in fact, that I didn't get someone preggo was because I DID learn (in a single akward conversation that does not qualify as sex education) the barest basics of how babies were made. Obviously, such an event would get us caught, so we played in every way we could other than that. Well some of us did, anyway. A few got pregnant.

      *THIS* is not healthy or safe for the kids. It is not even sane. Educate those kids. Every fact they have is a fact they can use to make wise choices. And for God's sakes give them access to free condoms...not to condone sexuality, but to protect the especially hormonal ones from the life-destroying consequences that otherwise result.

      Also, let go of your ridiculous notions of childhood innocence. It's a fantasy you make up. We were all dirty old men at the age of about six.

  2. What is this "Nude" you speak of? by pubwvj · · Score: 5, Interesting

    But what is this "Nude" you speak of?

    Sex based: guy in a bottoms only swim suit vs a topless woman?

    Country based: French nude beach vs USA prudes?

    Era based: Someone from the 1920's looking at a 2015 bikini?

    Age based: Young child (often completely nude in some countries is okay) vs post puberty (often requires hiding genitals and nipples on females in some countries)?

    Religious based: Whoa! Some religions are very conservative and others require nude dancing around the May pole...

    Seasonal: Have you ever tried being nude in a northern Vermont or Siberian winter!?! Don't even think about showing the tip of your nose!

  3. Re:And it performs poorly..... by Anonymous Coward · · Score: 5, Interesting

    anyone using such technology would require an extremely low false negative score... but too many false positives can make the system unusable. one of my last projects at undergraduate university was pretty much the exact same "nudity confidence" test as this project... my project "worked pretty well" also, but was equally unusable. i dialed all the parameters for a week until i got the best results on a giant dataset (millions of images)... one of the sources of images was every image from the university website (over 10,000 images just from that). so, after the tweaking, false negatives were low, but still 5% of negatives were wrong. i don't remember exact numbers, but i think of the positives, 10-15% of those were wrong. i didn't use any libraries or facial recognition, but i imagine that would help a lot... one problem is obviously if the face isn't in the picture. my technique was using a wide range of skin tones and then looking for "blobs" of similarly toned pixels and looking for shapes or shapes in shapes... (nipples on breasts were a pretty solid indicator and easy to scan for... also detecting a crotch region with dark hair... obviously a fat man in a hair-toned thong would trigger alarms)

    so, after all of this, many variables are weighted to give a single "confidence" score... so i decided to run the test a final time before the presentation the next day (it took many hours to run)... i built lots of top lists, one of them was overall confidence of nudity... the #1 picture most confident of containing a nude body ended up being the faculty office picture of one of the lecturers in the computer science department, who would be attending the talk. the office walls were a skin tone, and the way the light came in the window and lined up with her head, and round shaped things on her desk reflecting the skin tones, triggered every single test i had built. out of millions of pictures... too funny. good closer for the presentation.