图像审核

最后更新于:2022-04-02 08:17:38

## 图像审核 ![](https://docs.gechiui.com/gc-content/uploads/sites/kancloud/0b/0b/0b0b589a7bbda0f4464a0004ba66b2f5_200x200.png) > 判断网络图像是否违禁,imgurl传递网络图片url,支持识别色情、政治人物和暴恐类型。 ## 接口费用( [点击购买](https://market.topthink.com/product/213)) > 最低 0.002元/次 ## 接口调用([调用须知](https://docs.topthink.com/think-api/1835086)) ### 请求地址 ``` GET https://api.topthink.com/website/imgcensor ``` ### 请求参数 | 名称 | 类型 | 必填 | 说明 | | --- | --- | --- | --- | | appCode| string| 是|用户授权码,参考[API调用](https://docs.topthink.com/think-api/1835086) | | imgurl| string | 是 | 待审核的图像url地址| ### 返回`data`参数 | 名称 | 类型 | 示例值 | 说明 | | --- | --- | --- | --- | | conclusion | string | 合规 | 审核提示 | | conclusionType | int | 1 | 审核结果类型,分别代表1:合规,2:不合规,3:疑似,4:审核失败 | ## SDK调用 ``` $client = new Client("YourAppCode"); $result = $client->websiteImgcensor() ->withImgurl('https://image.thinkphp.cn/upload/20200920/134911_5f66ed574ca36') ->request(); ``` 返回示例: ~~~ { "code":0, "message": "成功", "data": [ { "conclusion":"合规", "conclusionType": 1 } ] } ~~~
';