Rest API Written In Python To Classify NSFW Images.
$ git clone https://github.com/thehamkercat/NSFW_Detection_API
$ cd NSFW_Detection_API
$ pip3 install -U -r requirements.txt
$ python3 -m api
$ git clone https://github.com/thehamkercat/NSFW_Detection_API
$ cd NSFW_Detection_API
$ docker-compose up -d
$ curl --request GET \
--url 'http://localhost:8001/?url=https%3A%2F%2Fcdn.stocksnap.io%2Fimg-thumbs%2F960w%2Fwoman-model_LCPHH1BDI2.jpg'
- Hentai - Hentai and pornographic drawings
- Porn - Pornographic images, sexual acts
- Drawings - Safe for work drawings (including anime)
- Neutral - Safe for work neutral images
- Sexy - Sexually explicit images, not pornography
Thanks to https://github.com/GantMan/nsfw_model/ for their model.