PHP Classes

Image Nudity Filter: Determine whether an image may contain nudity

Recommend this page to a friend!
  Info   View files Example   View files View files (4)   DownloadInstall with Composer Download .zip   Reputation   Support forum (10)   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 43%Total: 5,995 This week: 2All time: 381 This week: 115Up
Version Licenses PHP version Categories
imagenudityfilter 1.0.0Custom (specified...4Algorithms, Graphics, Artificial inte...


This class can be used to determine whether an image may contain nudity.

It analyses the colors used in different sections of an image to determine whether those colors match the human skin color tones.

As result of the analysis it returns a score value that reflects the probability of the image to contain nudity.

Additionally, it can output a the analysed image marking the pixels with color skin tones with a given color.

Currently it can analyze images in the PNG, GIF and JPEG images.

Innovation Award
PHP Programming Innovation award nominee
August 2006
Number 2

Prize: One book of choice by SAMS
The widespread availability of nudity pictures is a great concern, especially for parents with young children.

Determining whether a picture contains nudity is also a concern for sites that ban such kinds of pictures. Often they do not have enough human resources to monitor all pictures submitted by the site users.

This class provides a solution that can help determining whether a picture may contain nudity.

It analyses the colors and shapes of the objects in a picture and gives a score value that may help picture content moderators to reduce the search for undesired nudity pictures.

Manuel Lemos
Picture of Bakr Alsharif
Name: Bakr Alsharif <contact>
Classes: 4 packages by
Country: Egypt Egypt
Age: 42
All time rank: 1132 in Egypt Egypt
Week rank: 118 Down2 in Egypt Egypt Equal
Innovation award
Innovation award
Nominee: 2x

  Files folder image Files  
File Role Description
Plain text file class.ImageFilter.php Class Image Filter main class
Plain text file example.php Example Example
Plain text file license.txt Lic. License
Accessible without login HTML file readme.html Doc. READ ME

 Version Control Unique User Downloads Download Rankings  
This week:2
All time:381
This week:115Up
User Ratings User Comments (5)
 All time
an ISLAMIC RULES software license?! It's a shame
5 years ago (harald faro)
I love, love your attempt.
10 years ago (Lisa Dawson)
Useless by "islamic rules"-"license" which is not compatible ...
10 years ago (Fenris Erinyer)
the package not include valid license,
15 years ago (Jesus Christian Cruz Acono)
great work.
13 years ago (sakthipriyabalaji)