Skip to content

FreebieStock/php-nudity-detector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP Nudity Detector

At FreebieVectors.com we are concerned to filter out inappropriate content (nudity in images). This algorithm tries to detect nudity in the image based on the amount os skin colors in it.

The algorithm is based on J. Marcial-Basilio et al. (2011) paper.

Example usage:

$quant = new Image_FleshSkinQuantifier(__DIR__ . '/preview.jpg');
if($quant->isPorn())
    echo 'This image contains a lot of skin colors, thus might contain some adult content';
else
    echo 'This image does not contain many skin colors, thus is not likely to contain adult content';

About

Detect if an image is likely to have porhographic content by counting skin colors, algorithm based on J. Marcial-Basilio et al. (2011) paper

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages