Welcome to WebmasterWorld Guest from

Forum Moderators: rogerd

Message Too Old, No Replies

Automatic Image Recognition (Pornography)

Is there any scripts out there that will scan an image for 'flesh tones'?



5:00 pm on Oct 13, 2006 (gmt 0)

10+ Year Member

I am running a small social networking site. One of our features, as most have, is the ability to upload images. The site is growing rapidly, and I find it impossible to moderate and enforce the terms of service, the most important term being 'no pornography'.

Are there any basic scripts that can examine a JPEG or GIF and report a percentage of chance that the given image is pornographic? I could then use this to generate a check list that moderators or myself would examine by hand.


6:25 pm on Oct 13, 2006 (gmt 0)

5+ Year Member


might be of use.


8:56 pm on Oct 13, 2006 (gmt 0)

WebmasterWorld Administrator rogerd is a WebmasterWorld Top Contributor of All Time 10+ Year Member

Interesting thought, delphian, but wouldn't a picture of a face, for example, have a large portion of the image in the flesh tone range?

Flesh tones tend to vary, too, of course.


1:41 am on Oct 14, 2006 (gmt 0)

10+ Year Member

Maybe you can stave off pornography uploads by threatening to ban users who do?


3:33 pm on Oct 16, 2006 (gmt 0)

10+ Year Member

The way that I have tackled this problem has been to implement a small 'flag this page' feature on each page. When clicked, it opens up a simple little dialog box that enables viewers to type a reason why they think the page is offensive and then send that to the site admin (me). This is similar to the way in which blogger.com works.

Whenever I get one of these emails, I check out the page and either mask it from public view or, if it contains pornography, just delete the entire account.

This seems to work really well and I only actually get about 3-4 flags a week (from thousands of users on the site). I think once people realised that porn got deleted immediately, they stopped trying!


Featured Threads

Hot Threads This Week

Hot Threads This Month