Imager::SkinDetectorTry to detect skin tones and nudity in images | |
Download |
Imager::SkinDetector Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Cosimo Streppone
- Publisher web site:
- http://search.cpan.org/~dkasak/
Imager::SkinDetector Tags
Imager::SkinDetector Description
Try to detect skin tones and nudity in images Have you ever needed to know if an image has some amount of skin tone color? Did you find some tool to do it? Free software? Yes? If so, please tell me right now!If not, Imager::SkinDetector is a Perl module that uses Imager as processing engine, so it should have a decent speed. Don't expect miracles, though.Developer commentsI'm planning to use this as part of a set of tools to automatically classify images as nudity or "containing skin". It's only a plan. I might succeed one day. Most probably I won't.Feel free to provide feedback and code.SYNOPSIS use Imager::SkinDetector; # Use whatever format your Imager supports my $name = 'mypic.png'; # Check a local file my $image = Imager::SkinDetector->new(file => $name) or die "Can't load image \n"; # ... or download a remote picture via HTTP my $image = Imager::SkinDetector->new(url => 'http://some.server/some.pic') or die "Can't load image!\n"; my $skinniness = $image->skinniness(); printf "Image is %3.2f%% skinny\n", $skinniness * 100; my $prob = $image->contains_nudity(); printf "Contains nudity with a %.2f%% probability\n", $prob * 100; Requirements: · Perl
Imager::SkinDetector Related Software