GithubHelp home page GithubHelp logo

hellogitsource / checkimage Goto Github PK

View Code? Open in Web Editor NEW

This project forked from iiiiiii1/checkimage

0.0 0.0 0.0 13 KB

一个图片鉴黄api接口,支持jpg、png、jpeg格式文件

JavaScript 100.00%

checkimage's Introduction

checkimage

提示:由于该接口用的人不多,又消耗服务器资源,从2021.12.16开始关闭该接口,且代码已开源,有需求自己搭建。

本项目是一个图片鉴黄api接口,支持jpgpngjpeg格式文件,参考nsfwjs

安装步骤

自行搭建好ndoejs环境,使用命令:

git clone https://github.com/iiiiiii1/checkimage
cd checkimage
npm i
npm i -g pm2
pm2 start index.js --name checkimage

访问地址:ip:3027,使用看下方演示。

接口地址

https://checkimage.querydata.org/api

使用示例

#/root/xx.png为图片路径
curl https://checkimage.querydata.org/api -F "image=@/root/xx.png;type=image/jpeg" 

返回信息:

[
    {
        "className": "Neutral",
        "probability": 0.9277840852737427
    },
    {
        "className": "Drawing",
        "probability": 0.07143104821443558
    },
    {
        "className": "Hentai",
        "probability": 0.0007780276937410235
    },
    {
        "className": "Porn",
        "probability": 0.000005075656645203708
    },
    {
        "className": "Sexy",
        "probability": 0.0000018030658566203783
    }
]

类型参考:

Drawing和Neutral:均为正常图片
hentai:二次元类型的暴露图片指数
sexy:露点图片的指数
porn:就是色情图片的指数

图片指数越高,越接近该类型,最高的基本可以判定为该类型。

checkimage's People

Contributors

iiiiiii1 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.