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)
文本审核接口
本接口除了支持自定义配置外,还对返回结果进行了总体的包装,按照用户在控制台中配置的规则直接返回是否合规,如果不合规则指出具体不合规的内容。
|
org.json.JSONObject |
videoCensorUserDefined(String name,
String videoUrl,
String extId,
HashMap<String,String> options)
视频审核接口
本接口除了支持自定义配置外,还对返回结果进行了总体的包装,按照用户在控制台中配置的规则直接返回是否合规,如果不合规则指出具体不合规的内容。
|
org.json.JSONObject |
voiceCensorUserDefined(byte[] voiceData,
Integer rate,
String fmt,
HashMap<String,String> options)
语音审核接口
本接口除了支持自定义配置外,还对返回结果进行了总体的包装,按照用户在控制台中配置的规则直接返回是否合规,如果不合规则指出具体不合规的内容。
|
org.json.JSONObject |
voiceUrlCensorUserDefined(String url,
Integer rate,
String fmt,
HashMap<String,String> options)
语音审核接口
本接口除了支持自定义配置外,还对返回结果进行了总体的包装,按照用户在控制台中配置的规则直接返回是否合规,如果不合规则指出具体不合规的内容。
|
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 - 文本public org.json.JSONObject voiceUrlCensorUserDefined(String url, Integer rate, String fmt, HashMap<String,String> options)
url - 语音文件的url地址fmt - 语音文件类型options - 可选参数public org.json.JSONObject voiceCensorUserDefined(byte[] voiceData,
Integer rate,
String fmt,
HashMap<String,String> options)
voiceData - 语音二进制数据fmt - 语音文件类型options - 可选参数public org.json.JSONObject videoCensorUserDefined(String name, String videoUrl, String extId, HashMap<String,String> options)
name - 视频名字videoUrl - 视频urlextId - 视频idoptions - 可选参数Copyright © 2022. All rights reserved.