图像鉴黄,支持 restful api 鉴黄,精准度达到 93%
2.0K
上传图片URL,即可鉴黄。
安装步骤:
测试: curl --location --request GET 'http://127.0.0.1:3307/api/nsfw/classify?url=https://image.zdw1.cn/img20210720174923.png'
响应: [ { "className": "Drawing", "probability": 0.824431836605072 }, { "className": "Hentai", "probability": 0.16360442340373993 }, { "className": "Neutral", "probability": 0.007620695047080517 }, { "className": "Porn", "probability": 0.004154415801167488 }, { "className": "Sexy", "probability": 0.00018858206749428064 } ]
上传图片后,总共会返回 5 个维度的数值来鉴别该图片的尺度:
当porn评分超过>=0.6左右,就几乎是一张带有色情性质的图片了。
Content type
Image
Digest
Size
501.7 MB
Last updated
about 5 years ago
docker pull zengdawei/nsfw_restful_api