Coder Social home page Coder Social logo

reejit / nsfw-image-detector Goto Github PK

View Code? Open in Web Editor NEW

This project forked from theakasha/nsfw-image-detector

0.0 0.0 0.0 104.42 MB

Web api for detecting NSFW Images.

Home Page: https://nsfw-web-api.herokuapp.com/swagger/

Python 90.91% HTML 9.09%

nsfw-image-detector's Introduction

NSFW-Image-Detector

API Keys
serverless : https://jl09ro02z3.execute-api.ap-south-1.amazonaws.com/dev
eg:
https://jl09ro02z3.execute-api.ap-south-1.amazonaws.com/dev/pred?text=https://disco.scrolller.com/media/5bfac.jpg

heroku : https://nsfw-web-api.herokuapp.com/swagger
eg:
https://nsfw-web-api.herokuapp.com/pred?text=https://disco.scrolller.com/media/5bfac.jpg

What it does?
It detects Not Safe For Work Images by calculating a NSFW score and classifying them into five categories: Drawing, Hentai, Neutral, Porn, Sexy. Images can be uploaded directly from the client's computer or through a GET or POST request with the source of the image.

What is it?
It's a Convolutional Neural Network model(Inception v3) deployed using Flask ,tensorflow-lite ,Pillow, Python3.6, Tensorflow 2.0, Swagger.

The inception v3 model is trained and finetuned on the dataset. https://github.com/alex000kim/nsfw_data_scraper .
How to run on local host?

  • Clone into the project
  • make sure python3.6 is installed and set to default
  • Open terminal
  • virtualenv env
  • source env/bin/activate
  • pip install -r requirements.txt
  • python server.py

The motive:
The main purpose behind this is to use Artificial intelligence to provide users with a safe browsing experience

This REST-API is called from a browser extension to blur out NSFW images on the tab: https://github.com/rishav1802/NSFW-Images-Filter

nsfw-image-detector's People

Contributors

rishavk99 avatar dependabot[bot] avatar reejit 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.