检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
projectId = process.env.HUAWEICLOUD_SDK_PROJECT_ID; const endpoint = "https://moderation.cn-north-4.myhuaweicloud.com"; //把cn-north-4替换成服务所在的区域。
e.printStackTrace(); System.out.println(e.getHttpStatusCode()); System.out.println(e.getErrorCode());
projectId = process.env.HUAWEICLOUD_SDK_PROJECT_ID; const endpoint = "https://moderation.cn-north-4.myhuaweicloud.com"; //把cn-north-4替换成服务所在的区域。
projectId = process.env.HUAWEICLOUD_SDK_PROJECT_ID; const endpoint = "https://moderation.cn-north-4.myhuaweicloud.com";//把cn-north-4替换成服务所在的区域。 const
内容审核javascript版本SDK需要依赖moment-timezone以及moment等模块,可使用npm install命令安装或单击图1中的“+”号通过工具类安装。 图1 配置Node.js 环境 父主题: 使用SDK(Node.js)
"audio_text":"xxxxxx"},"request_params":{"event_type":"default","data":{"url":"https://xxxx.wav"},"callback":"http://xxx","categories":["porn","ad"]},"cr
e.printStackTrace(); System.out.println(e.getHttpStatusCode()); System.out.println(e.getErrorCode());
T03:44:37Z","update_time":"2021-08-05T03:44:37Z","items":[{"url":"https://sdk-obs-source-save.obs.cn-north-4.myhuaweicloud.com/terrorism.jpg"
e.printStackTrace(); System.out.println(e.getHttpStatusCode()); System.out.println(e.getRequestId());
'suggestion': 'pass', 'url': 'https://sdk-obs-source-save.obs.cn-north-4.myhuaweicloud.com/terrorism.jpg'}]
projectId = process.env.HUAWEICLOUD_SDK_PROJECT_ID; const endpoint = "https://moderation.cn-north-4.myhuaweicloud.com"; //把cn-north-4替换成服务所在的区域。
moderationRuleImageDetectionReq:= "default" urlImageDetectionReq:= "https://XXX.jpg" //此处替换为公网可以访问的图片地址 request.Body = &model.ImageDetectionReq{
riesbody, moderation_rule="default", url="https://XXX.jpg" //此处替换为公网可以访问的图片地址 ) response = client.r
e.printStackTrace(); System.out.println(e.getHttpStatusCode()); System.out.println(e.getRequestId());
e.printStackTrace(); System.out.println(e.getHttpStatusCode()); System.out.println(e.getRequestId());
e.printStackTrace(); System.out.println(e.getHttpStatusCode()); System.out.println(e.getErrorCode());
projectId = process.env.HUAWEICLOUD_SDK_PROJECT_ID; const endpoint = "https://moderation.cn-north-4.myhuaweicloud.com"; //把cn-north-4替换成服务所在的区域。
e.printStackTrace(); System.out.println(e.getHttpStatusCode()); System.out.println(e.getErrorCode());
例如,服务部署在“华北-北京四”区域的“endpoint”为“moderation.cn-north-4.myhuaweicloud.com”,请求URL为“https://moderation.cn-north-4.myhuaweicloud.com/v3/{project_id}/moderation
用户,用户通过实时访问和调用API获取推理结果,帮助用户自动采集关键数据,打造智能化业务系统,提升业务效率。 SDK概述 内容审核软件开发工具包(Content Moderation Software Development Kit,简称Moderation SDK)是对内容审核提供的REST