public class AipContentCensor extends BaseClient
accessToken, aipKey, aipToken, appId, config, expireDate, isAuthorized, isBceKey, LOGGER, state| 构造器和说明 |
|---|
AipContentCensor(String appId,
String aipKey,
String aipToken) |
| 限定符和类型 | 方法和说明 |
|---|---|
org.json.JSONObject |
imageCensorUserDefined(byte[] imgData,
HashMap<String,String> options)
图像审核接口
本接口除了支持自定义配置外,还对返回结果进行了总体的包装,按照用户在控制台中配置的规则直接返回是否合规,如果不合规则指出具体不合规的内容。
|
org.json.JSONObject |
imageCensorUserDefined(String image,
EImgType type,
HashMap<String,String> options)
图像审核接口
本接口除了支持自定义配置外,还对返回结果进行了总体的包装,按照用户在控制台中配置的规则直接返回是否合规,如果不合规则指出具体不合规的内容。
|
org.json.JSONObject |
report(org.json.JSONArray reportData)
反馈接口
|
org.json.JSONObject |
textCensorUserDefined(String text)
文本审核接口
本接口除了支持自定义配置外,还对返回结果进行了总体的包装,按照用户在控制台中配置的规则直接返回是否合规,如果不合规则指出具体不合规的内容。
|
getAccessToken, needAuth, postOperation, preOperation, preOperation, requestServer, setConnectionTimeoutInMillis, setHttpProxy, setSocketProxy, setSocketTimeoutInMillispublic org.json.JSONObject report(org.json.JSONArray reportData)
reportData - 反馈图片识别结果好坏的json数组public org.json.JSONObject imageCensorUserDefined(String image, EImgType type, HashMap<String,String> options)
image - 本地图片路径或图片urltype - image参数类型:FILE或URLoptions - 可选参数public org.json.JSONObject imageCensorUserDefined(byte[] imgData,
HashMap<String,String> options)
imgData - 图片二进制数据options - 可选参数public org.json.JSONObject textCensorUserDefined(String text)
text - 文本Copyright © 2020. All rights reserved.