检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
$projectId = getenv('HUAWEICLOUD_SDK_PROJECT_ID'); $endpoint = "https://moderation.cn-north-4.myhuaweicloud.com"; //把cn-north-4替换成服务所在的区域。
AudioInputBody databody = new AudioInputBody(); databody.withUrl("https://****.wav"); body.withCategories(listbodyCategories);
RunCreateAudioStreamModerationJob(req); var respStatusCode = resp.HttpStatusCode; Console.WriteLine(respStatusCode);
RunCreateVideoModerationJob(req); var respStatusCode = resp.HttpStatusCode; Console.WriteLine(respStatusCode);
$projectId = getenv('HUAWEICLOUD_SDK_PROJECT_ID'); $endpoint = "https://moderation.cn-north-4.myhuaweicloud.com"; //把cn-north-4替换成服务所在的区域。
client.RunTextModeration(req); var respStatusCode = resp.HttpStatusCode; Console.WriteLine(respStatusCode);
$projectId = getenv('HUAWEICLOUD_SDK_PROJECT_ID'); $endpoint = "https://moderation.cn-north-4.myhuaweicloud.com";//把cn-north-4替换成服务所在的区域。
表4 data 参数 是否必选 参数类型 描述 url 是 String 视频流url,支持rtmp、rtmps、hls、http、https等主流协议。 frame_interval 否 Integer 截帧频率间隔,单位为秒,取值范围为1~60s;如果不传递默认5s截帧一次。
RunCloseVideoStreamModerationJob(req); var respStatusCode = resp.HttpStatusCode; Console.WriteLine(respStatusCode);
$projectId = getenv('HUAWEICLOUD_SDK_PROJECT_ID'); $endpoint = "https://moderation.cn-north-4.myhuaweicloud.com"; //把cn-north-4替换成服务所在的区域。
例如,服务部署在“华北-北京四”区域的“endpoint”为“moderation.cn-north-4.myhuaweicloud.com”,请求URL为“https://moderation.cn-north-4.myhuaweicloud.com/v3/{project_id}/moderatio
getenv('HUAWEICLOUD_SDK_AK'); $sk = getenv('HUAWEICLOUD_SDK_SK'); $endpoint = "https://moderation.cn-north-4.myhuaweicloud.com";//把cn-north-4替换成服务所在的区域。
RunQueryVideoModerationJob(req); var respStatusCode = resp.HttpStatusCode; Console.WriteLine(respStatusCode); Console
RunCreateVideoStreamModerationJob(req); var respStatusCode = resp.HttpStatusCode; Console.WriteLine(respStatusCode);
$projectId = getenv('HUAWEICLOUD_SDK_PROJECT_ID'); $endpoint = "https://moderation.cn-north-4.myhuaweicloud.com"; //把cn-north-4替换成服务所在的区域。
CheckImageModeration(req); var respStatusCode = resp.HttpStatusCode; Console.WriteLine(respStatusCode);
"running", "request_params": {"event_type": "default", "data": {"url": "https://***.wav"}, "categories": ["porn"]}, "create_time": "2022-08-29T11:57:14
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替换成服务所在的区域。