Skip to content

Instantly share code, notes, and snippets.

@Injac
Created January 27, 2014 01:50
Show Gist options
  • Save Injac/8642126 to your computer and use it in GitHub Desktop.
Save Injac/8642126 to your computer and use it in GitHub Desktop.
Check for nudity using Python.
import os
import glob
import nude
from nude import Nude
path = '[Your image path]'
for infile in glob.glob(os.path.join(path,'*.png')) :
n = Nude(infile)
n.parse()
if n.result:
os.remove(infile)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment