I love, love your attempt. Great example usage. However, there are far too many false positives. Since the algorithm focuses soley on % flesh color in the image, portrait photos of normal people get marked as porn. Basically, having too much skin on a photo like a photo of a face gets marked as porn. Also, discolored photos of porn are marked as not-porn.