Giter Site home page Giter Site logo

webvul / nsfw Goto Github PK

View Code? Open in Web Editor NEW

This project forked from loretoparisi/nsfw

0.0 2.0 0.0 21.12 MB

This is a simple web app written in Python

Home Page: http://itoolset.com/nsfw

License: MIT License

Python 33.89% JavaScript 59.34% CSS 4.52% HTML 2.25%

nsfw's Introduction

nsfw

This is a simple web app written in Python http://itoolset.com/nsfw

Online demo of the yahoo/open_nsfw library https://github.com/yahoo/open_nsfw

According to the document, The network takes in an image and gives output a probability (score between 0-1) which can be used to filter not suitable for work images. Scores < 0.2 indicate that the image is likely to be safe with high probability. Scores > 0.8 indicate that the image is highly probable to be NSFW. Scores in middle range may be binned for different NSFW levels.

for more details please visit the original website.

note: this project not maintained anymore.

Deps

web front end: please check the package.json file.

back end: Flask & Caffe.

API endpoint

All API methods are located at: https://www.itoolset.com/nsfw/api/0

Score

This method returns the score of the uploaded image.

request

curl -i -X POST -H "Content-Type: multipart/form-data" -F "file=@test_image.jpg" http://itoolset.com/nsfw/api/0/score

response

HTTP/1.1 100 Continue

HTTP/1.0 200 OK
Content-Type: application/json
Content-Length: 89
Server: Werkzeug/0.11.11 Python/2.7.6
Date: Thu, 13 Oct 2016 09:03:28 GMT

{
  "name": "test_image.jpg",
  "score": 0.016876673325896263,
  "status": "success"
}

status will be "success" if the operation is successful. It will be "error" when something erros happened.

License

nsfw is released under the MIT license. See LICENSE for details.

Contact

[email protected]

nsfw's People

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.