图片识别
赞助服务器推荐:
接口说明:
用来检测图片是否色情,暴恐,政治,公众,OCR,网图OCR,恶心图,水印二维码
接口参数:
接口地址:
https://v2.alapi.cn/api/ai/image
请求方式:
get
post
请求参数:
参数名称 | 是否必选 | 参数类型 | 示例 | 说明 |
---|---|---|---|---|
url |
否 | string | 图片 url 地址 | |
file |
否 | image | 上传要识别的图片,post 方式上传 | |
type |
否 | string | antiporn | 检测的类型 ,默认 色情检测 antiporn |
type 参数说明
type 支持多个组合识别,如 type=public,antiporn
多个类型用英文逗号分隔
更多返回参数可参考百度AI 文档,写文档好累...(;´д`)ゞ
参数名称 | 说明 |
---|---|
ocr | 通用文字识别 |
public | 公众人物识别 |
politician | 政治人物识别 |
antiporn | 色情识别 |
terror | 暴恐识别。 |
webimage | 网图OCR识别 |
disgust | 恶心图 |
watermark | 水印、二维码 |
返回参数
色情识别(默认类型)
data
下面 antiporn
参数就是 type 参数。probability
: 不合规项置信度。class_name
:描述
conclusion
最后识别结果
模拟请求
示例代码
>