This repo implements Safe/not safe for work image classification using a convolutional neural network neural network over a REST service. It uses Yahoo!'s open_nsfw model to perform classification.
You can build the nsfwaas container by issuing the following command:
docker build -t nsfwaas .
First start the service:
docker run -p 80:80/tcp nsfwaas
You can submit the images over http. The result of the classification result will be returned in the response.
curl -X POST -F "[email protected]" http://localhost/classify