Skip to content

thermosym/go-nude

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-nude

Nudity detection with Go.

(Go porting from https://github.com/pa7/nude.js)

(Fork from https://github.com/koyachi/go-nude)

Install

# before go get, you need to set up the golang env, like GOPATH etc.
go get github.com/gin-gonic/gin
go get github.com/thermosym/go-nude

Build

cd server # go into server subfolder
go build # it will generate an executable file 'server'

Usage

./server [-p port_number]

HTTP Access

curl --request POST \
  --url http:https://localhost:8080/check \
  --header 'content-type: multipart/form-data' \
  --form 'file=@/Path/To/Photo'

Response:

{
  "is_nude": true,
  "success": true,
  "message": "ok"
}

License

MIT License

About

Nudity detection with Go.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 100.0%