
Detecting Nudity With AI and OpenCV 172
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'.
And it performs poorly..... (Score:3)
I googled "porn" grabbed one of the top 10 image URLs Entered it.... and got PG. #FAIL@SCIENCE
Re: (Score:2)
Re:And it performs poorly..... (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.
Re:And it performs poorly..... (Score:5, Insightful)
(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)
What's wrong with (female) nipples on breasts? Are they more naked than a man with a naked upper body? Should the woman be covered while the man can freely go around without something to cover his chest? There is absolutely nothing wrong with female breasts. They are not sexual objects. Treating them like that is just demeaning, both to women and men.
Well my nipples, in fact, are sexual objects. My wife's were, too, until she had a kid. Then, not so much. Not at all, in fact.
Re: (Score:2)
In today's lesson, we will discuss how the same things can have multiple, different uses, depending on the current context.
Re: (Score:3)
You are a complete moron. One who has probably never been allowed to touch someone of the opposite gender.
Female breasts are sex objects. Until males of our species stop being turned on by the sight or touch of them, they will be sex objects. The end.
Re: (Score:2)
emale breasts are sex objects. Until males of our species stop being turned on by the sight or touch of them, they will be sex objects. The end.
Until humans stop shoving things up their arses to turn themselves on, arse-shovable-sized objects will be sex will be sex objects. The end.
Or possibly, in both cases it's context dependent. Nah.
Re: (Score:2)
Except, any healthy male human gets turned on by seeing a shapely female breast. While 99.9% wouldn't be turned on by seeing a pencil.
Re: (Score:2)
Except, any healthy male human gets turned on by seeing a shapely female breast. While 99.9% wouldn't be turned on by seeing a pencil.
As usual everyone vilifies the pencilphiles.
Re: (Score:2)
Turned on, eh? If you insist that's the case, I hope for your sake you never see a close relative breast feeding.
But that side, the less puritanical among us don't get raging boners every time we see a flash of ankle.
Re: (Score:2)
I'm not sure, but your vibrator doesn't have feelings, I think.
Re: (Score:2)
They are not sexual objects? May be not to you; to a large number of men, they most certainly are. Have you ever even in a social occasion in which, all of sudden, a really busty, deep cleavage woman steps in? You don't have to be very observant to notice how most guys in the meeting immediately become blabbering idiots while probably developing an almost instant hard-on (that is, those who still can.)
You need to stop hanging round thirteen year old boys.
Re: (Score:2)
If she is exceptionally busty, I would shrug and think "meh". Then I wait and see if there is a nice rear view instead as she goes on by. ;) *** giggity ***
Re: (Score:3)
Picking a single picture to test such a system is a scientific fraud.
It depends on what you want to prove. If the claim is that the system is useful for automatic rating of images (not sure anybody claimed this, but they do give pictures ratings on their website), then one would expect a false negative rate of [fairly tiny number], which a single randomly picked data point to the contrary gives quite a significant evidence against.
Not saying it doesn't work "pretty well" in a sort of cool tech sense, though.
Re: (Score:1)
Re: (Score:2)
What definition of nude do you use that doesn't include toplessness?
Re: (Score:2)
Re: (Score:2)
Indeed she was [wikipedia.org]
limited exposure (Score:4, Funny)
Take the skin color from the nose..
That ain't a nose!
Re: (Score:2)
Take the skin color from the nose..
That ain't a nose!
It's a disappointment!
AIs are learning to watch porn! (Score:3)
Oh, well. It's no skin off my nose.
whew! i'm safe! (Score:1)
My women-who-paint-their-noses-blue fetish will remain undetected!
Re: (Score:1)
My women-who-paint-their-noses-blue fetish will remain undetected!
Score: -1 Missed Opportunity For Clown Porn Joke
Re: (Score:2)
To not mention all the pony/furry porn.
Re: (Score:2)
To not mention all the pony/furry porn.
I told you to not mention all the pony/furry porn!
Copyright Spike Milligan.
Nude == Rude? (Score:5, Insightful)
Why does "Nude" equate to "Rude"? Oh right, I forgot... we're afraid of our bodies and spooked by healthy sexuality.
Re:Nude == Rude? (Score:5, Insightful)
Why does "Nude" equate to "Rude"? Oh right, I forgot... we're afraid of our bodies and spooked by healthy sexuality.
Puritanism is the State Religion.
Re: (Score:2)
Puritanism is the State Religion.
Mostly in the United States, and non-European countries. Germany seems pretty healthy. Maybe some Scandinavian nations as well.
Re: (Score:2)
I'm not talking about paedo stuff here, I'm talking about teens who have become sexually active on their own volition.
Says the paedophile.
There is a reason all civilized countries have an age of consent, and it's nothing to do with irrational fears of nudity.
Because Puritans (Score:4, Insightful)
and other assorted imported religious insanity.
Re: (Score:2)
Yes this is incredibly insightful. It's banal at best, foolish at worst. But modern man made himself and life has no meaning.
Re: (Score:2)
Re:Nude == Rude? (Score:5, Insightful)
Right, because a 5-year-old is traumatized by stumbling across a picture of a nude dude, but is perfectly fine watching 15 people a day being blown away violently on prime-time television shows.
OMG, think of the CHILDREN! What if she accidentally sees a PENIS? OMG OMG OMG OMG!!!!
And what if young Bobby accidentally sees a boob? OMG OMG OMG OMG!!!!
Re: (Score:3)
His daughter is a lot more likely to get pregnant* as a teenager than she is to shoot or get shot. There actually is a basis for prioritizing one over the other.
*My apologies to ArcherB, no disrespect intended.
Re:Nude == Rude? (Score:5, Informative)
Except that puritan daughters are far more likely to get pregnant as teens. Just saying.
Re: (Score:3)
[citation required]
Re:Nude == Rude? (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.
Re: (Score:2)
flawed conclusion, the sex ed was given to "puritans" and non-puritans alike. it says nothing about puritan's rates
Re: (Score:2)
Bristol Palin practices abstinence quite publicly, and ended up unwed and pregnant again.
Those educated puritanically get pregnant more often than those who are educated in a non-puritan manner.
Re: (Score:2)
Bristol Palin practices abstinence quite publicly, and ended up unwed and pregnant again.
I'm fairly sure you'd need to practise abstinence privately too.
Re: (Score:2)
Your knowledge of the real world fails, I can assure you strict conservative Christians have extra-marital sex and unwanted pregnancies.
Typical geek, you are
Re: (Score:2)
[citation required]
Sample size of one:
Bristol Palin.
Teen pregnancy prevention spokesperson
Re: Nude == Rude? (Score:3)
Re: Nude == Rude? (Score:1)
Yes yes. I've read about this unnatural state of pregnancy.
Re: (Score:2, Insightful)
Sex Ed will SIGNIFICANTLY reduce the likelihood that she gets pregnant before reaching adulthood.
Re:Nude == Rude? (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.
Re: (Score:2)
Apology accepted. My daughter will be educated in the ways of life. My point is that it is up to me to decide when my daughter learns these things. That is not a decision left to idiots in the general public.
In other words, I'm not depending on the village to raise my child. If any of the village idiots try, they will find themselves dependent on the village to take care of them.
I'm her parent. Not that asshole.
Re: (Score:2)
Re: (Score:3)
You lose. I have three kids. And there's plenty of violence in kids' shows too, even though it tends to be cartoony.
Re: (Score:2)
Re: (Score:2)
Re:Nude == Rude? (Score:5, Interesting)
Ummm... wtf? Actually, religiosity in the US is correlated with teen pregnancy rates.
Top 10 states by percentage identifying as "very religious" are Mississippi, Utah, Alabama, South Carolina, Louisiana, Arkansas, Tennessee, North Carolina, Georgia and Oklahoma.
Top 10 states by teen pregnancy rates are: New Mexico, Mississippi, Texas, Arkansas, Louisiana, Oklahoma, Nevada, Delaware, South Carolina and Hawaii.
So 5 of the top 10 religious states are also in the top 10 for teen pregnancy.
Now please cite studies showing that "bombarding children with sexuality" (whatever that means) causes teen pregnancy,
Re: (Score:2)
Nude != Sex. That's a false equivalency you're raising there.
Re: (Score:2, Insightful)
And what, exactly, does this nude-detecting AI have to do with your daughter, exactly?
You, sir, have issues. Perhaps you should stop insisting that everyone is fantasizing about her and realize you are only projecting that yourself.
Re:Nude == Rude? (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.
Re: (Score:2)
It would hurt you cuz indecent exposure to a child, then you'd go to jail and face 20 years of big dongs in ur ear and up ur nose.
Re:Nude == Rude? (Score:4, Informative)
In San Francisco there was (is?) no law against nudity in public. Last year the Board of Supervisors (the SF equivalent to a city counsel) voted to require those with an unclothed buttocks to cover any public seat with a towel or napkin before sitting. Many businesses also banned nudity and suggestive behavior was still illegal, but certainly you could not be charged because a child saw you while unclothed.
Re: (Score:2)
Based on the nude male bicycle gang that passed us near Golden Gate Park when we were there on vacation a few weeks ago, I think the correct verb is "is".
Re: (Score:2)
Personally, I don't want to see someone's hairy anus when they bend over to pick up a penny. There are also hygiene issues when nude people sit or just generally move around (our clothes catch a lot of wall naturally falls off our bodies). It gets even worse on hot days.
While some of us may enjoy it, I'm sure teenage boys might have issues with unwanted arousal too. Could be particularly difficult for gay people who have not come out yet.
Nudists deal with these issues, but in small societies that people hav
Re: (Score:2)
Personally, I don't want to see someone's hairy anus when they bend over to pick up a penny.
Just carry around a few waxing strips for these sort of personal hygience emergencies.
Re: (Score:3)
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 best way for anyone to see how this is true is to see what goes on at a Nudist park, village, beach, etc. and my direct study (this summer) of the situation confirms your answer. Nudity != sex in spades. Also, people talk about body acceptance. If a nudist camp experience can't give you that wit
Re: (Score:2)
It was actually an insightful comment. Not everyone has disavowed their human intuition as a valid source for knowledge. It's only relatively recently that much of mankind has made the laboratory the only source of knowing about he world. It's the reason philosophy is dead--interestingly it killed itself mainly, and the reason that modern man can recognize the different between a man and wife and man and partner and the reason why modern man recognizes such folly as a 'sex' change. The 'troll' simply appeal
Re: (Score:2)
Wow, are you off-base. I neither hate nor objectify women. And why do you assume "nudity" implies "female nudity"? What's wrong with nude guys?
I don't think nudity per se is a problem as long as it doesn't objectify or degrade anyone. It's perfectly harmless. Even depictions of sex, IMO, are quite harmless unless the depiction exploitative, degrading or violent.
big brother... (Score:2)
It doesn't have to catch every concurrence of course.. just enough to flag culprits with few false positives. Also,
What about photos of noses? (Score:3)
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!
And if I give it a photo of a nose?
Re: (Score:2)
Well that would be a nude nose. Think of the children!
And don't do something disgusting like blowing your nose either. Eeewww.
You Gringos have a problem with nudity (Score:2, Insightful)
Just a reminder, we are all born naked. Stop making so much trouble!
Cheers from Germany.
That's Rude! (Score:1)
Classifying nudes as rudes is so prude that it is horribly rude. Despising the more or less beautiful bodies of others before they have starting to decompose is unhealthy.
misplaced research? (Score:2, Interesting)
It used to be that homosexuality was offensive. Now the tables have turned and being anti-gay is offensive. Can we expect the same thing to happen with nudity? In a few decades, all this research into detecting nudity will seem awfully misplaced, the same as if people now were discussing AI to flag images with two men kissing.
Re: (Score:2)
I don't think this will happen quickly with nudity, and we have religion (for the most part) to thank/blame for this.
Michelangelo painted plenty of nudes, but the Catholic Church did a literal cover-up [theguardian.com]. *sigh*
Re: (Score:2)
Offensive is an ambiguous term, but if you mean the man on man sex has become normal, you are kidding yourself. It's perception has not normalized because it isn't normal and never will be. The most ardent pc leftists will descend on a homo-sexual with insults more vile than you can imagine if sufficiently provoked. It's only that pseudo popular opinion in the west is increasingly driven by elites who can afford to have outlooks with little grounding in reality, because if you are Tom Cruise it really doesn
Lena image was not "RUDE" at all (Score:4, Informative)
Having worked in image processing and having made extensive use of the "standard" USC images including Lenna, I can assure you that the Lenna image was cropped at the shoulder. The Wikipedia article shows the image as encoded as an uncompressed 512x512 image.
USC errored in the image name, naming it "Lenna" when the model was correctly identified in the Playboy issue as "Lena Soderberg".
Re: (Score:2)
The cropped image, maybe, but the original shot it came from, certainly not.
Re:Lena image was not "RUDE" at all (Score:4, Interesting)
Exactly! People are conflating the original from Playboy (which I had) and the USC scan used by every facility in the world that was working on image processing... especially color processing. The famed image was only head and the top of the shoulder from the full centerfold.
The other images included "Drop" and "Baboon" as well as some I no longer remember. "Drop" was a glass of milk just after a drop had landed dead center, raising a drop of splash. Baboon was also mis-named. It was a male mandrill. Red nose and blue cheeks. It was the one we used most frequently.
What is this "Nude" you speak of? (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!
Re: (Score:2)
Re: (Score:3)
You can convert to our new Mapolianudist Dancing Religion quite easily... All you need is a tree and no cloths...! But in our religion it is not considered nude because you have a tree. Very liberating.
Re: (Score:2)
Would any lumber do or does it specifically need to be a tree? Can I simply stand naked beside a bush and be safe from being "nude"?
As well, would a bonsai tree suit? I could carry one of those under one (very not nude) arm!
Re: (Score:2)
Yes, any product made from wood will do. Note that a woody is not made from wood so you'll need something else. Bonsai trees are fine but use small steps to avoid tripping. Even a rolled up newspaper can count.
Nose-based visual query limitations (Score:3)
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!
So my collection of clown porn is still safely undetectable?
Re: (Score:2)
I can't wait to feed this program some explicit body paint stuff...
Coincidence? (Score:2)
Can't help but notice the headline "AI finding nudity" aligned with the one below it, about AI's getting Testy...
Hmm.
Rude ? (Score:5, Insightful)
Re: (Score:2)
Old tech (Score:1)
Wrong idea: too much skin colors. (Score:5, Interesting)
Looking for too much skin color is a bad way to test for nudes.
You don't get to nudity untill you start seeing colors that are not the skin color.
aesthetically, maybe? (Score:5, Informative)
FTFA, "ascetically pleasing"... hehehe
I don't think that word means what you think it means. :)
ascetic: A person who renounces material comforts and leads a life of austere self-discipline, especially as an act of religious devotion.
Although, I guess nudity would be the highest form asceticism...
Bad (Score:2)
I tried an image of Karen Gillan in a bikini, and it got rated R Nude.
Then I tried one of Lily Cole, a full frontal nude. Detected as G - Not nude.
Tinky? (Score:1)
Might work with humans (Score:1)
After more testing.... (Score:1)
Excellent (Score:5, Funny)
I'm glad that AI has learned to spot tits. I'm sure this will only be used for moral purposes, like enforcing our ban on nipples that are on a chick (biological or trans), or a dude who has chick breasts (as in to win a bet). Everyone knows that nipples rot the minds of children, which in why they cannot speak until after weaning. It's science!
It is my fondest hope that our robot overlords appreciate a nice rack. That will make the slaving in the rare earth mines a little more tolerable, at least.
Is This The Death Of The Internet (Score:2)
Oh great... (Score:1)
Now they've got computer to take away our skin pics. Pretty soon we'll be back to flashlights under a blanket!
i wonder what apparal will confuse it the most (Score:1)
Comment removed (Score:4, Funny)
Black and White Photography ... (Score:2)
It's what makes facebook ban art museums (Score:2)
Just the other day, facebook shut down the account of a swedish art museum for posting images by Anders Zorn, an early 1900's artist (wikipedia's description [wikipedia.org]: "Zorn was a prolific artist. He became an international success as one of the most acclaimed portrait painters of his era. His sitters included three American Presidents, nobility, the Swedish king and queen and numerous members of high society."). You can scroll down a bit on the wikipedia page to see examples of images that were considered so "rude"
I think... (Score:2)
the most effective way to do this would be to crowdsource it. :)
Really? (Score:2)
So when can we expect the first beta version of Windows Puritanity version 0.9?