图片审核的接口api传版本
stroyka 发布于2020-12 浏览:2844 回复:1
0
收藏

版本


com.baidu.aip
java-sdk
4.12.0

1、调用 :client.imageCensorUserDefined

public static void main(String[] args) {
AipContentCensor client = new AipContentCensor("appId", "key", "token");
client.setConnectionTimeoutInMillis(2000);
client.setSocketTimeoutInMillis(60000);

JSONObject jsonObject = client.imageCensorUserDefined("http://static.hnyequ.cn/idCardPath/a23f6dfe-8daa-4b7a-b7b4-b3571f26eab0.png", EImgType.URL, null);
System.out.println(jsonObject);
// 输出:{"conclusion":"不合规","log_id":15918424152752077,"data":[{"msg":"头像审核未检测到人脸不合规","conclusion":"不合规","subType":0,"conclusionType":2,"type":10}],"conclusionType":2}
}

2、调用:client.imageCensorComb

public static void main(String[] args) {
AipContentCensor client = new AipContentCensor("appId", "key", "token");
client.setConnectionTimeoutInMillis(2000);
client.setSocketTimeoutInMillis(60000);

JSONObject jsonObject = client.imageCensorComb("http://static.hnyequ.cn/idCardPath/13fbd450-bbdf-4d41-949a-bebcd99b325c.jpg", EImgType.URL, Arrays.asList(""), null);
System.out.println(jsonObject);
// 输出:{"log_id":15918428204155506,"error_msg":"service not support","error_code":216102}
}
图片审核,包括色情、暴恐、敏感信息等

 

收藏
点赞
0
个赞
共1条回复 最后由用户已被禁言回复于2022-03
#2饭小团回复于2020-12

可以提工单或者加审核群沟通

0
快速回复
TOP
切换版块