open-dating / adult-image-detector

Use deep neural networks and other algos for detect nude images

Home Page:https://adult-image-detector.herokuapp.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

adult-image-detector

Deploy Docker Cloud Build Status

Use deep neural networks and other algos for detect nude images in images and pdf files.

Try detection

Usage

For detect nudity in images exec:

curl -i -X POST -F "image=@Daddy_Lets_Me_Ride_His_Cock_preview_720p.mp4.jpg" http://localhost:9191/api/v1/detect

Result:

{
  "app_version":"0.2.0",
  "open_nsfw_score":0.81577397,
  "an_algorithm_for_nudity_detection": true,
  "image_name":"Daddy_Lets_Me_Ride_His_Cock_preview_720p.mp4.jpg"
}

For detect nudity in pdf exec:

curl -i -X POST -F "pdf=@Daddy_Lets_Me_Ride_His_Cock_preview_720p.mp4.pdf" http://localhost:9191/api/v1/pdf_detect

Result:

{
  "app_version": "0.4.0",
  "result": {
    "2021-06-05T09:01:38Z_ac749c19-8bd1-48fa-88d5-0a448c0d948c_1_Im4.png": {
      "open_nsfw_score": 0.0015096113,
      "an_algorithm_for_nudity_detection": false
    },
    "2021-06-05T09:01:38Z_ac749c19-8bd1-48fa-88d5-0a448c0d948c_1_Im5.png": {
      "open_nsfw_score": 0.00092005456,
      "an_algorithm_for_nudity_detection": false
    }
  },
  "nudity_detection_disabled": false,
  "image_scoring_disabled": false,
  "image_name": "Daddy_Lets_Me_Ride_His_Cock_preview_720p.mp4.pdf",
  "an_algorithm_for_nudity_detection": false,
  "open_nsfw_score": 0.0015096113
}

Docker

Run

docker run -p 9191:9191 opendating/adult-image-detector

Build

git clone https://github.com/open-dating/adult-image-detector --recursive
docker build -t adult-image-detector .

Development

git clone https://github.com/open-dating/adult-image-detector --recursive
cd docker/dev
docker-compose up

Test

cd docker/test
docker-compose up

Install to heroku

Use deploy button or:

fork, create app and change stack to container

heroku stack:set container

Requirements

Go 1.17

opencv 4.5.1

Development without docker

Recursive clone that repo:

git clone https://github.com/open-dating/adult-image-detector --recursive

or manually install submodules:

git submodule init
git submodule update

Install opencv 4.5.1

Run hot reload with fresh:

go install github.com/pilu/fresh@0fa698148017fa2234856bdc881d9cc62517f62b
fresh

About

Use deep neural networks and other algos for detect nude images

https://adult-image-detector.herokuapp.com/


Languages

Language:Go 88.4%Language:Dockerfile 11.0%Language:Shell 0.6%