方便好用的图片审核API

图片审核API有什么作用呢?

  • 规避违法、违规风险
    图片信息可能带来的恶心攻击、网络诈骗、个人信息泄露以及诱发违法犯罪等违法违规行为。
  • 提高审核效率
    解放人工,提高效率的同时又节约了成本。
方便好用的图片审核API
文章图片

【方便好用的图片审核API】APISpace 的 图片审核API,支持对图片进行政治敏感识别、色情识别、暴恐识别、恶心图像识别、广告检测、图像质量检测。APISpace上面有很有类别的API,比如短信类、天气类、物流类、智能识别类、教育文化类等等,并且所有的API都提供免费的调用次数,大家可以上去看看有没有自己需要的~
接口信息
  • 请求方式:POST
  • 请求格式:FORMDATA
  • 请求参数:
    • imageUrl:图片资源访问链接
    • BizType:配置不同的内容审核策略,通过接口调用,默认不填为0,后端使用默认策略
  • 请求代码示例:
OkHttpClient client = new OkHttpClient().newBuilder().build(); MediaType mediaType = MediaType.parse("application/x-www-form-urlencoded"); RequestBody body = RequestBody.create(mediaType, "imageUrl=&BizType="); Request request = new Request.Builder() .url("https://eolink.o.apispace.com/nrsh/imgcheck") .method("POST",body) .addHeader("X-APISpace-Token","") .addHeader("Authorization-Type","apikey") .addHeader("Content-Type","") .build(); Response response = client.newCall(request).execute();

  • 返回示例:
{ tradeNo: "796078182020423680", chargeStatus: 1, message: "成功", data: { RequestId: "6b84d8a8-c9b8-438e-a811-b67171311ee7", SubLabel: "", LabelResults: [{ Suggestion: "Pass", Score: 0, Details: [], SubLabel: "", Label: "Normal", Scene: "Terror", HitFlag: 0 }, { Suggestion: "Pass", Score: 0, Details: [], SubLabel: "", Label: "Normal", Scene: "Porn", HitFlag: 0 }, { Suggestion: "Pass", Score: 41, Details: [], SubLabel: "", Label: "Normal", Scene: "Sexy", HitFlag: 0 } ], LibResults: [{ Suggestion: "Pass", Score: 0, SubLabel: "", Label: "Normal", Scene: "Similar", HitFlag: 0 }], Label: "Normal", ObjectResults: [{ Names: [], Suggestion: "Pass", Score: 68, Details: [], SubLabel: "", Label: "Normal", Scene: "PolityFace", HitFlag: 0 }], BizType: "0", HitFlag: 0, Suggestion: "Pass", Score: 0, OcrResults: [], DataId: "", Extra: "" }, code: "200000" }

返回参数说明可查看官网详情页。

    推荐阅读