Nudity detection with Go.
(Go porting from https://github.com/pa7/nude.js)
(Fork from https://github.com/koyachi/go-nude)
# 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
cd server # go into server subfolder
go build # it will generate an executable file 'server'
./server [-p port_number]
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"
}