GIF色情图像识别
最后更新于:2022-04-02 08:17:01
## GIF色情图片识别
![](https://docs.gechiui.com/gc-content/uploads/sites/kancloud/44/83/44834215c841c317998d9b436d6a2f1f_162x161.png)
> 识别色情动图
## 接口费用( [点击购买](https://market.topthink.com/product/104))
> 最低 0.02元/次
## 接口调用([调用须知](https://docs.topthink.com/think-api/1835086))
### 请求地址
```
POST https://api.topthink.com/image/gif_detect
```
### 请求参数
| 名称 | 必填 | 类型 | 说明 |
| --- | --- | --- | --- |
| appCode| 是 |string| 用户授权码,参考[API调用](https://docs.topthink.com/think-api/1835086) |
| image| 是 | string | 图像数据,base64编码。gif格式,每帧编码后小于4M,帧数不超过50,GIF图片整体大小base64编码后不超过20M |
### 返回`data`参数
| 名称 | 类型 | 说明 |
| --- | --- | --- |
|class_name|string|识别内容|
|score|number|评分|
|probability|number|置信度|
## SDK调用
```
$client = new Client("YourAppCode");
$result = $client->imageGifDetect()
->withImage('图像Base64编码字符串')
->request();
dump($result);
```
JSON返回示例:
~~~
{
message: "成功",
data: {
score: 0,
probability: 0,
class_name: "性感"
},
code: 0
}
~~~
';