Use deep neural networks and other algos for detect nude images in images and pdf files.
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 -p 9191:9191 opendating/adult-image-detector
git clone https://github.com/open-dating/adult-image-detector --recursive
docker build -t adult-image-detector .
git clone https://github.com/open-dating/adult-image-detector --recursive
cd docker/dev
docker-compose up
cd docker/test
docker-compose up
Use deploy button or:
fork, create app and change stack to container
heroku stack:set container
Go 1.17
opencv 4.5.1
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