Skip to content
Detect if an image is likely to have porhographic content by counting skin colors, algorithm based on J. Marcial-Basilio et al. (2011) paper
Find file
Latest commit 18c6d8a @FreebieStock Update

PHP Nudity Detector

At 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');
    echo 'This image contains a lot of skin colors, thus might contain some adult content';
    echo 'This image does not contain many skin colors, thus is not likely to contain adult content';
Something went wrong with that request. Please try again.