tencentcloud-sdk-nodejs-vm 4.0.726 → 4.0.728
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +155734 -0
- package/SERVICE_CHANGELOG.md +141770 -0
- package/package.json +1 -1
- package/products.md +16 -16
- package/src/services/vm/v20210922/vm_client.ts +43 -9
- package/src/services/vm/v20210922/vm_models.ts +84 -37
- package/tencentcloud/services/vm/v20210922/vm_client.d.ts +42 -9
- package/tencentcloud/services/vm/v20210922/vm_client.js +42 -9
- package/tencentcloud/services/vm/v20210922/vm_models.d.ts +83 -37
package/package.json
CHANGED
package/products.md
CHANGED
|
@@ -14,16 +14,16 @@
|
|
|
14
14
|
| apcas | [汽车精准获客服务](https://cloud.tencent.com/document/product/1244) | 2022-04-04 06:05:36 |
|
|
15
15
|
| ape | [正版图库直通车](https://cloud.tencent.com/document/product/1181) | 2022-04-04 06:05:40 |
|
|
16
16
|
| api | [云 API](https://cloud.tencent.com/document/product/1278) | 2023-01-05 01:02:52 |
|
|
17
|
-
| apigateway | [API 网关](https://cloud.tencent.com/document/product/628) | 2023-10
|
|
17
|
+
| apigateway | [API 网关](https://cloud.tencent.com/document/product/628) | 2023-11-10 01:06:32 |
|
|
18
18
|
| apm | [应用性能监控](https://cloud.tencent.com/document/product/1463) | 2023-10-27 01:10:12 |
|
|
19
|
-
| as | [弹性伸缩](https://cloud.tencent.com/document/product/377) | 2023-10
|
|
19
|
+
| as | [弹性伸缩](https://cloud.tencent.com/document/product/377) | 2023-11-10 01:06:51 |
|
|
20
20
|
| asr | [语音识别](https://cloud.tencent.com/document/product/1093) | 2023-10-31 01:09:42 |
|
|
21
21
|
| asw | [应用与服务编排工作流](https://cloud.tencent.com/document/product/1272) | 2023-05-18 01:04:02 |
|
|
22
22
|
| ba | [ICP备案](https://cloud.tencent.com/document/product/243) | 2023-10-13 01:07:08 |
|
|
23
23
|
| batch | [批量计算](https://cloud.tencent.com/document/product/599) | 2023-10-27 01:11:09 |
|
|
24
24
|
| bda | [人体分析](https://cloud.tencent.com/document/product/1208) | 2023-10-11 01:10:01 |
|
|
25
25
|
| bi | [商业智能分析 BI](https://cloud.tencent.com/document/product/590) | 2023-10-20 01:06:54 |
|
|
26
|
-
| billing | [费用中心](https://cloud.tencent.com/document/product/555) | 2023-10
|
|
26
|
+
| billing | [费用中心](https://cloud.tencent.com/document/product/555) | 2023-11-10 01:07:23 |
|
|
27
27
|
| bizlive | [商业直播](https://cloud.tencent.com/document/product) | 2020-03-10 01:08:07 |
|
|
28
28
|
| bm | [黑石物理服务器CPM](https://cloud.tencent.com/document/product/386) | 2023-10-18 01:14:30 |
|
|
29
29
|
| bma | [品牌经营管家](https://cloud.tencent.com/document/product/1296) | 2023-08-31 01:07:17 |
|
|
@@ -47,8 +47,8 @@
|
|
|
47
47
|
| cds | [T-Sec-数据安全审计(DSA)](https://cloud.tencent.com/document/product/856) | 2023-08-17 01:43:06 |
|
|
48
48
|
| cdwch | [云数据仓库 ClickHouse](https://cloud.tencent.com/document/product/1299) | 2023-09-08 01:20:53 |
|
|
49
49
|
| cdwpg | [云数据仓库 PostgreSQL](https://cloud.tencent.com/document/product/878) | 2023-10-24 01:08:56 |
|
|
50
|
-
| cfg | [混沌演练平台](https://cloud.tencent.com/document/product/1500) | 2023-
|
|
51
|
-
| cfs | [文件存储](https://cloud.tencent.com/document/product/582) | 2023-11-
|
|
50
|
+
| cfg | [混沌演练平台](https://cloud.tencent.com/document/product/1500) | 2023-11-10 01:09:57 |
|
|
51
|
+
| cfs | [文件存储](https://cloud.tencent.com/document/product/582) | 2023-11-10 01:10:02 |
|
|
52
52
|
| cfw | [云防火墙](https://cloud.tencent.com/document/product/1132) | 2023-10-27 01:19:30 |
|
|
53
53
|
| chdfs | [云 HDFS](https://cloud.tencent.com/document/product/1105) | 2023-08-17 01:47:49 |
|
|
54
54
|
| ciam | [账号风控平台](https://cloud.tencent.com/document/product/1441) | 2023-07-06 01:13:25 |
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
| cloudaudit | [云审计](https://cloud.tencent.com/document/product/629) | 2023-05-18 01:13:28 |
|
|
61
61
|
| cloudhsm | [云加密机](https://cloud.tencent.com/document/product/639) | 2023-08-17 01:57:08 |
|
|
62
62
|
| cloudstudio | [Cloud Studio(云端 IDE)](https://cloud.tencent.com/document/product/1039) | 2023-08-03 01:03:28 |
|
|
63
|
-
| cls | [日志服务](https://cloud.tencent.com/document/product/614) | 2023-11-
|
|
63
|
+
| cls | [日志服务](https://cloud.tencent.com/document/product/614) | 2023-11-10 01:11:12 |
|
|
64
64
|
| cme | [多媒体创作引擎](https://cloud.tencent.com/document/product/1156) | 2023-10-19 16:00:29 |
|
|
65
65
|
| cmq | [消息队列 CMQ](https://cloud.tencent.com/document/product/406) | 2023-08-17 02:03:39 |
|
|
66
66
|
| cms | [内容安全](https://cloud.tencent.com/document/product/669) | 2023-08-24 01:10:10 |
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
| dlc | [数据湖计算 DLC](https://cloud.tencent.com/document/product/1342) | 2023-11-09 01:12:27 |
|
|
83
83
|
| dnspod | [DNSPod](https://cloud.tencent.com/document/product/1427) | 2023-11-09 01:12:46 |
|
|
84
84
|
| domain | [域名注册](https://cloud.tencent.com/document/product/242) | 2023-10-20 01:14:01 |
|
|
85
|
-
| drm | [数字版权管理](https://cloud.tencent.com/document/product/1000) | 2023-11-
|
|
85
|
+
| drm | [数字版权管理](https://cloud.tencent.com/document/product/1000) | 2023-11-10 01:14:28 |
|
|
86
86
|
| ds | [文档服务](https://cloud.tencent.com/document/product/869) | 2023-08-17 02:59:40 |
|
|
87
87
|
| dsgc | [数据安全治理中心](https://cloud.tencent.com/document/product/1087) | 2023-10-17 01:15:42 |
|
|
88
88
|
| dtf | [分布式事务](https://cloud.tencent.com/document/product/1224) | 2022-04-04 06:38:57 |
|
|
@@ -95,10 +95,10 @@
|
|
|
95
95
|
| eis | [数据连接器](https://cloud.tencent.com/document/product/1270) | 2023-08-10 01:17:44 |
|
|
96
96
|
| emr | [弹性 MapReduce](https://cloud.tencent.com/document/product/589) | 2023-10-16 01:15:50 |
|
|
97
97
|
| es | [Elasticsearch Service](https://cloud.tencent.com/document/product/845) | 2023-10-30 00:42:05 |
|
|
98
|
-
| ess | [腾讯电子签企业版](https://cloud.tencent.com/document/product/1323) | 2023-11-
|
|
99
|
-
| essbasic | [腾讯电子签(基础版)](https://cloud.tencent.com/document/product/1420) | 2023-11-
|
|
98
|
+
| ess | [腾讯电子签企业版](https://cloud.tencent.com/document/product/1323) | 2023-11-10 01:15:53 |
|
|
99
|
+
| essbasic | [腾讯电子签(基础版)](https://cloud.tencent.com/document/product/1420) | 2023-11-10 01:16:11 |
|
|
100
100
|
| facefusion | [人脸融合](https://cloud.tencent.com/document/product/670) | 2023-09-18 01:48:33 |
|
|
101
|
-
| faceid | [人脸核身](https://cloud.tencent.com/document/product/1007) | 2023-10
|
|
101
|
+
| faceid | [人脸核身](https://cloud.tencent.com/document/product/1007) | 2023-11-10 01:16:33 |
|
|
102
102
|
| fmu | [人脸试妆](https://cloud.tencent.com/document/product/1172) | 2023-08-17 03:12:49 |
|
|
103
103
|
| ft | [人像变换](https://cloud.tencent.com/document/product/1202) | 2023-08-17 03:12:58 |
|
|
104
104
|
| gaap | [全球应用加速](https://cloud.tencent.com/document/product/608) | 2023-09-22 01:52:02 |
|
|
@@ -130,7 +130,7 @@
|
|
|
130
130
|
| kms | [密钥管理系统](https://cloud.tencent.com/document/product/573) | 2023-08-17 03:51:31 |
|
|
131
131
|
| lcic | [实时互动-教育版](https://cloud.tencent.com/document/product/1639) | 2023-11-09 01:19:33 |
|
|
132
132
|
| lighthouse | [轻量应用服务器](https://cloud.tencent.com/document/product/1207) | 2023-11-09 01:19:51 |
|
|
133
|
-
| live | [云直播CSS](https://cloud.tencent.com/document/product/267) | 2023-10
|
|
133
|
+
| live | [云直播CSS](https://cloud.tencent.com/document/product/267) | 2023-11-10 01:19:27 |
|
|
134
134
|
| lowcode | [云开发低码](https://cloud.tencent.com/document/product/1301) | 2022-04-04 06:56:51 |
|
|
135
135
|
| lp | [登录保护](https://cloud.tencent.com/document/product/1190) | 2022-04-04 06:56:52 |
|
|
136
136
|
| mall | [商场客留大数据](https://cloud.tencent.com/document/product/1707) | 2023-07-17 10:16:02 |
|
|
@@ -150,7 +150,7 @@
|
|
|
150
150
|
| nlp | [NLP 服务](https://cloud.tencent.com/document/product/271) | 2023-09-15 02:14:19 |
|
|
151
151
|
| npp | [号码保护](https://cloud.tencent.com/document/product) | 2020-04-22 08:00:22 |
|
|
152
152
|
| oceanus | [流计算 Oceanus](https://cloud.tencent.com/document/product/849) | 2023-10-24 01:20:07 |
|
|
153
|
-
| ocr | [文字识别](https://cloud.tencent.com/document/product/866) | 2023-11-
|
|
153
|
+
| ocr | [文字识别](https://cloud.tencent.com/document/product/866) | 2023-11-10 01:21:12 |
|
|
154
154
|
| omics | [腾讯健康组学平台](https://cloud.tencent.com/document/product/1643) | 2023-10-27 16:07:10 |
|
|
155
155
|
| organization | [集团账号管理](https://cloud.tencent.com/document/product/850) | 2023-11-08 02:00:11 |
|
|
156
156
|
| partners | [渠道合作伙伴](https://cloud.tencent.com/document/product/563) | 2023-08-17 04:23:46 |
|
|
@@ -208,7 +208,7 @@
|
|
|
208
208
|
| tics | [威胁情报云查服务](https://cloud.tencent.com/document/product/1013) | 2023-08-17 05:26:12 |
|
|
209
209
|
| tiems | [腾讯云 TI 平台 TI-EMS ](https://cloud.tencent.com/document/product/1120) | 2022-07-19 06:19:39 |
|
|
210
210
|
| tiia | [图像分析](https://cloud.tencent.com/document/product/865) | 2023-09-01 01:23:47 |
|
|
211
|
-
| tione | [TI-ONE 训练平台](https://cloud.tencent.com/document/product/851) | 2023-11-
|
|
211
|
+
| tione | [TI-ONE 训练平台](https://cloud.tencent.com/document/product/851) | 2023-11-10 01:26:16 |
|
|
212
212
|
| tiw | [互动白板](https://cloud.tencent.com/document/product/1137) | 2023-11-01 01:23:35 |
|
|
213
213
|
| tke | [容器服务](https://cloud.tencent.com/document/product/457) | 2023-11-09 01:26:28 |
|
|
214
214
|
| tkgdq | [腾讯知识图谱数据查询](https://cloud.tencent.com/document/product) | 2020-03-10 00:51:44 |
|
|
@@ -225,15 +225,15 @@
|
|
|
225
225
|
| tsw | [微服务观测平台 TSW](https://cloud.tencent.com/document/product/1311) | 2023-05-18 02:04:00 |
|
|
226
226
|
| tts | [语音合成](https://cloud.tencent.com/document/product/1073) | 2023-09-19 01:29:02 |
|
|
227
227
|
| ump | [客流数字化平台](https://cloud.tencent.com/document/product/1320) | 2023-08-17 05:50:27 |
|
|
228
|
-
| vm | [视频内容安全](https://cloud.tencent.com/document/product/1265) | 2023-
|
|
228
|
+
| vm | [视频内容安全](https://cloud.tencent.com/document/product/1265) | 2023-11-10 01:28:11 |
|
|
229
229
|
| vms | [语音消息](https://cloud.tencent.com/document/product/1128) | 2023-08-17 05:50:56 |
|
|
230
230
|
| vod | [云点播](https://cloud.tencent.com/document/product/266) | 2023-11-07 02:30:32 |
|
|
231
231
|
| vpc | [私有网络](https://cloud.tencent.com/document/product/215) | 2023-11-09 01:29:06 |
|
|
232
232
|
| vrs | [声音复刻](https://cloud.tencent.com/document/product/1283) | 2023-11-03 01:27:03 |
|
|
233
233
|
| waf | [Web 应用防火墙](https://cloud.tencent.com/document/product/627) | 2023-11-08 10:49:05 |
|
|
234
234
|
| wav | [企业微信汽车行业版](https://cloud.tencent.com/document/product/1318) | 2023-07-18 01:59:28 |
|
|
235
|
-
| wedata | [数据开发治理平台 WeData](https://cloud.tencent.com/document/product/1267) | 2023-11-
|
|
236
|
-
| weilingwith | [微瓴同业开放平台](https://cloud.tencent.com/document/product/1693) | 2023-
|
|
235
|
+
| wedata | [数据开发治理平台 WeData](https://cloud.tencent.com/document/product/1267) | 2023-11-10 01:29:34 |
|
|
236
|
+
| weilingwith | [微瓴同业开放平台](https://cloud.tencent.com/document/product/1693) | 2023-11-10 01:30:47 |
|
|
237
237
|
| wss | [SSL证书管理服务](https://cloud.tencent.com/document/product) | 2020-04-01 08:53:44 |
|
|
238
238
|
| yinsuda | [音速达直播音乐版权引擎](https://cloud.tencent.com/document/product/1592) | 2023-08-10 01:50:27 |
|
|
239
239
|
| youmall | [](https://cloud.tencent.com/document/product) | 2019-01-11 11:24:15 |
|
|
@@ -38,6 +38,7 @@ import {
|
|
|
38
38
|
RecognitionResult,
|
|
39
39
|
CancelTaskResponse,
|
|
40
40
|
AudioResultDetailTextResult,
|
|
41
|
+
SegmentCosUrlList,
|
|
41
42
|
RcbAsr,
|
|
42
43
|
AudioResult,
|
|
43
44
|
AudioResultDetailMoanResult,
|
|
@@ -59,7 +60,7 @@ export class Client extends TencentCloudCommon.AbstractClient {
|
|
|
59
60
|
}
|
|
60
61
|
|
|
61
62
|
/**
|
|
62
|
-
*
|
|
63
|
+
* 通过查看任务详情 DescribeTaskDetail 接口,可主动轮询获取检测结果详情。
|
|
63
64
|
*/
|
|
64
65
|
async DescribeTaskDetail(
|
|
65
66
|
req: DescribeTaskDetailRequest,
|
|
@@ -69,14 +70,49 @@ export class Client extends TencentCloudCommon.AbstractClient {
|
|
|
69
70
|
}
|
|
70
71
|
|
|
71
72
|
/**
|
|
72
|
-
*
|
|
73
|
+
* 本接口(Video Moderation System,VM)用于提交视频文件或视频流进行智能审核任务。使用前请您使用腾讯云主账号登录控制台[开通视频内容安全服务](https://console.cloud.tencent.com/cms)并调整好对应的业务配置。<br>
|
|
74
|
+
### 功能使用说明:
|
|
75
|
+
|
|
76
|
+
- 前往“[内容安全控制台-视频内容安全](https://console.cloud.tencent.com/cms)”开启使用视频内容安全服务,首次开通服务的用户可免费领用试用套餐包,包含200分钟的处理量(换算1s每帧截图,赠送**12000张图**、**200分钟的音频**处理量),有效期为15天。
|
|
77
|
+
|
|
78
|
+
- 该接口为收费接口,计费方式敬请参见[腾讯云视频内容安全定价](https://cloud.tencent.com/product/vm/pricing)。
|
|
79
|
+
|
|
80
|
+
- 默认接口请求频率限制:**20次/秒**,对于异步审核任务(点播视频),超出频率限制的请求会自动排入待审核队列,对于同步审核任务(直播视频),超出频率限制将会报错。
|
|
81
|
+
- 默认并发审核路数限制:点播默认10路,异步审核任务(点播视频)数量超过并发审核路数时,将会进入排队;直播默认100路,同步审核任务(直播视频)超过并发审核路数,接口会返回错误。
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
### 接口功能说明:
|
|
85
|
+
|
|
86
|
+
- 支持对视频文件或视频流进行自动检测,从 OCR文本识别、物体检测(实体、广告台标、二维码等)、图像识别及音频审核四个维度,通过深度学习技术识别视频中的违规内容;
|
|
87
|
+
- 支持设置回调地址 Callback 获取检测结果,或通过接口(查看任务详情)主动轮询获取检测结果详情;对于正常审核中的视频任务,如含有违规内容,则截帧图片最长会在**3s**内回调,音频片段会在用户配置的**切片时长 + 2s**内回调;对于在队列中的待审核任务,回调时间为正常审核回调时间+等待时间;
|
|
88
|
+
- 支持通过接口(查看审核任务列表)查询任务队列,用户可根据多种业务信息(业务类型、审核结果、任务状态等)筛选审核任务列表;
|
|
89
|
+
- 支持识别多种违规场景,包括:低俗、谩骂、色情、广告等场景;
|
|
90
|
+
- 支持根据不同的业务场景配置自定义的审核策略;
|
|
91
|
+
- 支持用户自定义配置黑白词库及图片库,打击自定义违规内容(目前仅支持黑名单配置);
|
|
92
|
+
- 支持用户自定义配置审核任务优先级,当有多个任务排队时,可根据用户配置自动调整任务优先级;
|
|
93
|
+
- 支持批量提交检测任务,**最多可同时创建10个任务**;
|
|
94
|
+
|
|
95
|
+
### 视频文件调用说明:
|
|
96
|
+
|
|
97
|
+
- 视频文件大小支持:**4K视频文件 < 10GB**;**低于4K视频文件 < 5GB**
|
|
98
|
+
- 视频文件分辨率支持:**最佳分辨率为1920x1080 (1080p)**,如果视频文件小于300MB,则分辨率可以大于1080p,分辨率最大支持4K,更大视频可以调用[云转码服务](https://cloud.tencent.com/product/mps/details)转码后再送审;
|
|
99
|
+
- 视频文件支持格式:flv、mkv 、mp4 、rmvb 、avi 、wmv、3gp、ts、mov、rm、mpeg、wmf等。
|
|
100
|
+
- 视频文件支持的访问方式:链接地址(支持HTTP/HTTPS)、腾讯云COS存储;
|
|
101
|
+
- 若传入视频文件的访问链接,则需要注意视频**头文件的读取时间限制为3秒**,为保障被检测视频的稳定性和可靠性,建议您使用腾讯云COS存储或者CDN缓存等;
|
|
102
|
+
- 支持用户配置是否需要开启音频审核,若不开启则将仅对视频文件图像内容进行审核。
|
|
103
|
+
|
|
104
|
+
### 视频流调用说明:
|
|
105
|
+
|
|
106
|
+
- 视频流时长支持:**8小时以内**
|
|
107
|
+
- 视频流分辨率支持:支持**1920x1080 (1080p)**,更高分辨率视频可以调用[直播云转码服务](https://cloud.tencent.com/document/product/267/39889)转码后再送审;
|
|
108
|
+
- 视频流支持格式:rmtp,flv 等主流视频流编码格式。
|
|
109
|
+
- 视频文件支持的传输协议:HTTP/HTTPS/RTMP;
|
|
110
|
+
- 支持用户配置是否需要开启音频审核,若不开启则将仅对视频流图像内容进行审核。
|
|
73
111
|
|
|
74
112
|
### 直播断流处理说明:
|
|
75
113
|
- 请确认已对接[取消任务](https://cloud.tencent.com/document/product/1265/80018)。
|
|
76
114
|
- 如果直播任务取消/结束,则终止直播拉流并退出审核。
|
|
77
115
|
- 如果直播任务没有取消/结束,直播视频推流因故中断,产品将在将在10分钟内持续拉流重试。如果10分钟检测到图片截帧/音频切片数据,则恢复正常审核,反之,则终止拉流并退出审核。在拉流终止后,用户如有审核需求,需重新送审。
|
|
78
|
-
|
|
79
|
-
默认接口请求频率限制:20次/秒。
|
|
80
116
|
*/
|
|
81
117
|
async CreateVideoModerationTask(
|
|
82
118
|
req: CreateVideoModerationTaskRequest,
|
|
@@ -86,10 +122,8 @@ export class Client extends TencentCloudCommon.AbstractClient {
|
|
|
86
122
|
}
|
|
87
123
|
|
|
88
124
|
/**
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
默认接口请求频率限制:**20次/秒**。
|
|
92
|
-
*/
|
|
125
|
+
* 通过查看审核任务列表接口,可查询任务队列;您可根据多种业务信息(业务类型、审核结果、任务状态等)筛选审核任务列表。
|
|
126
|
+
*/
|
|
93
127
|
async DescribeTasks(
|
|
94
128
|
req: DescribeTasksRequest,
|
|
95
129
|
cb?: (error: string, rep: DescribeTasksResponse) => void
|
|
@@ -98,7 +132,7 @@ export class Client extends TencentCloudCommon.AbstractClient {
|
|
|
98
132
|
}
|
|
99
133
|
|
|
100
134
|
/**
|
|
101
|
-
*
|
|
135
|
+
* 可使用该接口取消审核任务,成功取消后,该接口返回已取消任务的TaskId。
|
|
102
136
|
*/
|
|
103
137
|
async CancelTask(
|
|
104
138
|
req: CancelTaskRequest,
|
|
@@ -46,14 +46,14 @@ Terror 暴恐
|
|
|
46
46
|
Ad 广告
|
|
47
47
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
48
48
|
*/
|
|
49
|
-
Scene
|
|
49
|
+
Scene?: string
|
|
50
50
|
/**
|
|
51
51
|
* 是否命中
|
|
52
52
|
0 未命中
|
|
53
53
|
1 命中
|
|
54
54
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
55
55
|
*/
|
|
56
|
-
HitFlag
|
|
56
|
+
HitFlag?: number
|
|
57
57
|
/**
|
|
58
58
|
* 审核建议,可选值:
|
|
59
59
|
Pass 通过,
|
|
@@ -61,37 +61,37 @@ Review 建议人审,
|
|
|
61
61
|
Block 确认违规
|
|
62
62
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
63
63
|
*/
|
|
64
|
-
Suggestion
|
|
64
|
+
Suggestion?: string
|
|
65
65
|
/**
|
|
66
66
|
* 标签
|
|
67
67
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
68
68
|
*/
|
|
69
|
-
Label
|
|
69
|
+
Label?: string
|
|
70
70
|
/**
|
|
71
71
|
* 子标签
|
|
72
72
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
73
73
|
*/
|
|
74
|
-
SubLabel
|
|
74
|
+
SubLabel?: string
|
|
75
75
|
/**
|
|
76
76
|
* 分数
|
|
77
77
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
78
78
|
*/
|
|
79
|
-
Score
|
|
79
|
+
Score?: number
|
|
80
80
|
/**
|
|
81
|
-
*
|
|
81
|
+
* 人物名称列表,如未识别,则为null
|
|
82
82
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
83
83
|
*/
|
|
84
|
-
Names
|
|
84
|
+
Names?: Array<string>
|
|
85
85
|
/**
|
|
86
86
|
* 图片OCR文本
|
|
87
87
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
88
88
|
*/
|
|
89
|
-
Text
|
|
89
|
+
Text?: string
|
|
90
90
|
/**
|
|
91
91
|
* 其他详情
|
|
92
92
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
93
93
|
*/
|
|
94
|
-
Details
|
|
94
|
+
Details?: Array<ImageResultsResultDetail>
|
|
95
95
|
}
|
|
96
96
|
|
|
97
97
|
/**
|
|
@@ -141,7 +141,7 @@ export interface CreateVideoModerationTaskResponse {
|
|
|
141
141
|
* 任务创建结果
|
|
142
142
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
143
143
|
*/
|
|
144
|
-
Results
|
|
144
|
+
Results?: Array<TaskResult>
|
|
145
145
|
/**
|
|
146
146
|
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
147
147
|
*/
|
|
@@ -192,105 +192,115 @@ export interface DescribeTaskDetailResponse {
|
|
|
192
192
|
* 该字段用于返回创建视频审核任务后返回的任务ID(在Results参数中),用于标识需要查询任务详情的审核任务。
|
|
193
193
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
194
194
|
*/
|
|
195
|
-
TaskId
|
|
195
|
+
TaskId?: string
|
|
196
196
|
/**
|
|
197
197
|
* 该字段用于返回调用视频审核接口时传入的数据ID参数,方便数据的辨别和管理。
|
|
198
198
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
199
199
|
*/
|
|
200
|
-
DataId
|
|
200
|
+
DataId?: string
|
|
201
201
|
/**
|
|
202
202
|
* 该字段用于返回调用视频审核接口时传入的BizType参数,方便数据的辨别和管理。
|
|
203
203
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
204
204
|
*/
|
|
205
|
-
BizType
|
|
205
|
+
BizType?: string
|
|
206
206
|
/**
|
|
207
207
|
* 该字段用于返回调用视频审核接口时传入的TaskInput参数中的任务名称,方便任务的识别与管理。
|
|
208
208
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
209
209
|
*/
|
|
210
|
-
Name
|
|
210
|
+
Name?: string
|
|
211
211
|
/**
|
|
212
212
|
* 该字段用于返回所查询内容的任务状态。
|
|
213
213
|
<br>取值:**FINISH**(任务已完成)、**PENDING** (任务等待中)、**RUNNING** (任务进行中)、**ERROR** (任务出错)、**CANCELLED** (任务已取消)。
|
|
214
214
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
215
215
|
*/
|
|
216
|
-
Status
|
|
216
|
+
Status?: string
|
|
217
217
|
/**
|
|
218
218
|
* 该字段用于返回调用视频审核接口时输入的视频审核类型,取值为:**VIDEO**(点播视频)和**LIVE_VIDEO**(直播视频),默认值为VIDEO。
|
|
219
219
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
220
220
|
*/
|
|
221
|
-
Type
|
|
221
|
+
Type?: string
|
|
222
222
|
/**
|
|
223
223
|
* 该字段用于返回基于恶意标签的后续操作建议。当您获取到判定结果后,返回值表示系统推荐的后续操作;建议您按照业务所需,对不同违规类型与建议值进行处理。<br>返回值:**Block**:建议屏蔽,**Review** :建议人工复审,**Pass**:建议通过
|
|
224
224
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
225
225
|
*/
|
|
226
|
-
Suggestion
|
|
226
|
+
Suggestion?: string
|
|
227
227
|
/**
|
|
228
228
|
* 该字段用于返回检测结果所对应的恶意标签。<br>返回值:**Porn**:色情,**Abuse**:谩骂,**Ad**:广告,**Custom**:自定义违规;以及其他令人反感、不安全或不适宜的内容类型。
|
|
229
229
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
230
230
|
*/
|
|
231
|
-
Labels
|
|
231
|
+
Labels?: Array<TaskLabel>
|
|
232
232
|
/**
|
|
233
233
|
* 该字段用于返回输入媒体文件的详细信息,包括编解码格式、分片时长等信息。详细内容敬请参考MediaInfo数据结构的描述。
|
|
234
234
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
235
235
|
*/
|
|
236
|
-
MediaInfo
|
|
236
|
+
MediaInfo?: MediaInfo
|
|
237
237
|
/**
|
|
238
238
|
* 该字段用于返回审核服务的媒体内容信息,主要包括传入文件类型和访问地址。
|
|
239
239
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
240
240
|
*/
|
|
241
|
-
InputInfo
|
|
241
|
+
InputInfo?: InputInfo
|
|
242
242
|
/**
|
|
243
243
|
* 该字段用于返回被查询任务创建的时间,格式采用 ISO 8601标准。
|
|
244
244
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
245
245
|
*/
|
|
246
|
-
CreatedAt
|
|
246
|
+
CreatedAt?: string
|
|
247
247
|
/**
|
|
248
248
|
* 该字段用于返回被查询任务最后更新时间,格式采用 ISO 8601标准。
|
|
249
249
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
250
250
|
*/
|
|
251
|
-
UpdatedAt
|
|
251
|
+
UpdatedAt?: string
|
|
252
252
|
/**
|
|
253
253
|
* 在秒后重试
|
|
254
254
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
255
255
|
*/
|
|
256
|
-
TryInSeconds
|
|
256
|
+
TryInSeconds?: number
|
|
257
257
|
/**
|
|
258
258
|
* 该字段用于返回视频中截帧审核的结果,详细返回内容敬请参考ImageSegments数据结构的描述。<br>备注:数据有效期为24小时,如需要延长存储时间,请在已配置的COS储存桶中设置。
|
|
259
259
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
260
260
|
*/
|
|
261
|
-
ImageSegments
|
|
261
|
+
ImageSegments?: Array<ImageSegments>
|
|
262
262
|
/**
|
|
263
263
|
* 该字段用于返回视频中音频审核的结果,详细返回内容敬请参考AudioSegments数据结构的描述。<br>备注:数据有效期为24小时,如需要延长存储时间,请在已配置的COS储存桶中设置。
|
|
264
264
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
265
265
|
*/
|
|
266
|
-
AudioSegments
|
|
266
|
+
AudioSegments?: Array<AudioSegments>
|
|
267
267
|
/**
|
|
268
|
-
* 当任务状态为Error
|
|
268
|
+
* 当任务状态为Error时,返回对应错误的类型,取值:
|
|
269
|
+
**DECODE_ERROR**: 解码失败。(输入资源中可能包含无法解码的视频)
|
|
269
270
|
**URL_ERROR**:下载地址验证失败。
|
|
270
|
-
**TIMEOUT_ERROR
|
|
271
|
+
**TIMEOUT_ERROR**:处理超时。
|
|
272
|
+
**CALLBACK_ERRORR**:回调错误。
|
|
273
|
+
**MODERATION_ERROR**:审核失败。
|
|
274
|
+
**URL_NOT_SUPPORTED**:源文件太大或没有图片音频帧
|
|
275
|
+
任务状态非Error时默认返回为空。
|
|
271
276
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
272
277
|
*/
|
|
273
|
-
ErrorType
|
|
278
|
+
ErrorType?: string
|
|
274
279
|
/**
|
|
275
280
|
* 当任务状态为Error时,该字段用于返回对应错误的详细描述,任务状态非Error时默认返回为空。
|
|
276
281
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
277
282
|
*/
|
|
278
|
-
ErrorDescription
|
|
283
|
+
ErrorDescription?: string
|
|
279
284
|
/**
|
|
280
285
|
* 该字段用于返回检测结果所对应的标签。如果未命中恶意,返回Normal,如果命中恶意,则返回Labels中优先级最高的标签
|
|
281
286
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
282
287
|
*/
|
|
283
|
-
Label
|
|
288
|
+
Label?: string
|
|
284
289
|
/**
|
|
285
290
|
* 该字段用于返回音频文件识别出的对应文本内容,最大支持**前1000个字符**。
|
|
286
291
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
287
292
|
*/
|
|
288
|
-
AudioText
|
|
293
|
+
AudioText?: string
|
|
289
294
|
/**
|
|
290
295
|
* 该字段用于返回音频文件识别出的对应文本内容。
|
|
291
296
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
292
297
|
*/
|
|
293
|
-
Asrs
|
|
298
|
+
Asrs?: Array<RcbAsr>
|
|
299
|
+
/**
|
|
300
|
+
* 该字段用于返回检测结果明细数据相关的cos url
|
|
301
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
302
|
+
*/
|
|
303
|
+
SegmentCosUrlList?: SegmentCosUrlList
|
|
294
304
|
/**
|
|
295
305
|
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
296
306
|
*/
|
|
@@ -384,6 +394,11 @@ Block 确认违规
|
|
|
384
394
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
385
395
|
*/
|
|
386
396
|
Score: number
|
|
397
|
+
/**
|
|
398
|
+
* 命中的二级标签
|
|
399
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
400
|
+
*/
|
|
401
|
+
SubLabel: string
|
|
387
402
|
}
|
|
388
403
|
|
|
389
404
|
/**
|
|
@@ -468,7 +483,8 @@ export interface InputInfo {
|
|
|
468
483
|
*/
|
|
469
484
|
export interface CreateVideoModerationTaskRequest {
|
|
470
485
|
/**
|
|
471
|
-
*
|
|
486
|
+
* 该字段表示策略的具体编号,用于接口调度,在[内容安全控制台](https://console.cloud.tencent.com/cms/clouds/manage)中可配置。若不传入Biztype参数(留空),则代表采用默认的识别策略;传入则会在审核时根据业务场景采取不同的审核策略。
|
|
487
|
+
备注:Biztype仅为数字、字母与下划线的组合,长度为3-32个字符;不同Biztype关联不同的业务场景与识别能力策略,调用前请确认正确的Biztype。
|
|
472
488
|
*/
|
|
473
489
|
BizType: string
|
|
474
490
|
/**
|
|
@@ -501,17 +517,17 @@ export interface DescribeTasksResponse {
|
|
|
501
517
|
* 该字段用于返回当前查询的任务总量,格式为int字符串。
|
|
502
518
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
503
519
|
*/
|
|
504
|
-
Total
|
|
520
|
+
Total?: string
|
|
505
521
|
/**
|
|
506
522
|
* 该字段用于返回当前页的任务详细数据,具体输出内容请参见TaskData数据结构的详细描述。
|
|
507
523
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
508
524
|
*/
|
|
509
|
-
Data
|
|
525
|
+
Data?: Array<TaskData>
|
|
510
526
|
/**
|
|
511
527
|
* 该字段用于返回翻页时使用的Token信息,由系统自动生成,并在翻页时向下一个生成的页面传递此参数,以方便快速翻页功能的实现。当到最后一页时,该字段为空。
|
|
512
528
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
513
529
|
*/
|
|
514
|
-
PageToken
|
|
530
|
+
PageToken?: string
|
|
515
531
|
/**
|
|
516
532
|
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
517
533
|
*/
|
|
@@ -644,6 +660,37 @@ export interface AudioResultDetailTextResult {
|
|
|
644
660
|
SubLabel: string
|
|
645
661
|
}
|
|
646
662
|
|
|
663
|
+
/**
|
|
664
|
+
* 明细数据相关的cos url
|
|
665
|
+
*/
|
|
666
|
+
export interface SegmentCosUrlList {
|
|
667
|
+
/**
|
|
668
|
+
* 全量图片片段的cos url
|
|
669
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
670
|
+
*/
|
|
671
|
+
ImageAllUrl?: string
|
|
672
|
+
/**
|
|
673
|
+
* 全量音频片段的cos url
|
|
674
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
675
|
+
*/
|
|
676
|
+
AudioAllUrl?: string
|
|
677
|
+
/**
|
|
678
|
+
* 违规图片片段的cos url
|
|
679
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
680
|
+
*/
|
|
681
|
+
ImageBlockUrl?: string
|
|
682
|
+
/**
|
|
683
|
+
* 违规音频片段的cos url
|
|
684
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
685
|
+
*/
|
|
686
|
+
AudioBlockUrl?: string
|
|
687
|
+
/**
|
|
688
|
+
* 全量音频识别文本的cos url
|
|
689
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
690
|
+
*/
|
|
691
|
+
AsrUrl?: string
|
|
692
|
+
}
|
|
693
|
+
|
|
647
694
|
/**
|
|
648
695
|
* 审核切片asr文本信息
|
|
649
696
|
*/
|
|
@@ -7,28 +7,61 @@ import { CreateVideoModerationTaskResponse, CancelTaskRequest, DescribeTaskDetai
|
|
|
7
7
|
export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
8
8
|
constructor(clientConfig: TencentCloudCommon.ClientConfig);
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* 通过查看任务详情 DescribeTaskDetail 接口,可主动轮询获取检测结果详情。
|
|
11
11
|
*/
|
|
12
12
|
DescribeTaskDetail(req: DescribeTaskDetailRequest, cb?: (error: string, rep: DescribeTaskDetailResponse) => void): Promise<DescribeTaskDetailResponse>;
|
|
13
13
|
/**
|
|
14
|
-
*
|
|
14
|
+
* 本接口(Video Moderation System,VM)用于提交视频文件或视频流进行智能审核任务。使用前请您使用腾讯云主账号登录控制台[开通视频内容安全服务](https://console.cloud.tencent.com/cms)并调整好对应的业务配置。<br>
|
|
15
|
+
### 功能使用说明:
|
|
16
|
+
|
|
17
|
+
- 前往“[内容安全控制台-视频内容安全](https://console.cloud.tencent.com/cms)”开启使用视频内容安全服务,首次开通服务的用户可免费领用试用套餐包,包含200分钟的处理量(换算1s每帧截图,赠送**12000张图**、**200分钟的音频**处理量),有效期为15天。
|
|
18
|
+
|
|
19
|
+
- 该接口为收费接口,计费方式敬请参见[腾讯云视频内容安全定价](https://cloud.tencent.com/product/vm/pricing)。
|
|
20
|
+
|
|
21
|
+
- 默认接口请求频率限制:**20次/秒**,对于异步审核任务(点播视频),超出频率限制的请求会自动排入待审核队列,对于同步审核任务(直播视频),超出频率限制将会报错。
|
|
22
|
+
- 默认并发审核路数限制:点播默认10路,异步审核任务(点播视频)数量超过并发审核路数时,将会进入排队;直播默认100路,同步审核任务(直播视频)超过并发审核路数,接口会返回错误。
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### 接口功能说明:
|
|
26
|
+
|
|
27
|
+
- 支持对视频文件或视频流进行自动检测,从 OCR文本识别、物体检测(实体、广告台标、二维码等)、图像识别及音频审核四个维度,通过深度学习技术识别视频中的违规内容;
|
|
28
|
+
- 支持设置回调地址 Callback 获取检测结果,或通过接口(查看任务详情)主动轮询获取检测结果详情;对于正常审核中的视频任务,如含有违规内容,则截帧图片最长会在**3s**内回调,音频片段会在用户配置的**切片时长 + 2s**内回调;对于在队列中的待审核任务,回调时间为正常审核回调时间+等待时间;
|
|
29
|
+
- 支持通过接口(查看审核任务列表)查询任务队列,用户可根据多种业务信息(业务类型、审核结果、任务状态等)筛选审核任务列表;
|
|
30
|
+
- 支持识别多种违规场景,包括:低俗、谩骂、色情、广告等场景;
|
|
31
|
+
- 支持根据不同的业务场景配置自定义的审核策略;
|
|
32
|
+
- 支持用户自定义配置黑白词库及图片库,打击自定义违规内容(目前仅支持黑名单配置);
|
|
33
|
+
- 支持用户自定义配置审核任务优先级,当有多个任务排队时,可根据用户配置自动调整任务优先级;
|
|
34
|
+
- 支持批量提交检测任务,**最多可同时创建10个任务**;
|
|
35
|
+
|
|
36
|
+
### 视频文件调用说明:
|
|
37
|
+
|
|
38
|
+
- 视频文件大小支持:**4K视频文件 < 10GB**;**低于4K视频文件 < 5GB**
|
|
39
|
+
- 视频文件分辨率支持:**最佳分辨率为1920x1080 (1080p)**,如果视频文件小于300MB,则分辨率可以大于1080p,分辨率最大支持4K,更大视频可以调用[云转码服务](https://cloud.tencent.com/product/mps/details)转码后再送审;
|
|
40
|
+
- 视频文件支持格式:flv、mkv 、mp4 、rmvb 、avi 、wmv、3gp、ts、mov、rm、mpeg、wmf等。
|
|
41
|
+
- 视频文件支持的访问方式:链接地址(支持HTTP/HTTPS)、腾讯云COS存储;
|
|
42
|
+
- 若传入视频文件的访问链接,则需要注意视频**头文件的读取时间限制为3秒**,为保障被检测视频的稳定性和可靠性,建议您使用腾讯云COS存储或者CDN缓存等;
|
|
43
|
+
- 支持用户配置是否需要开启音频审核,若不开启则将仅对视频文件图像内容进行审核。
|
|
44
|
+
|
|
45
|
+
### 视频流调用说明:
|
|
46
|
+
|
|
47
|
+
- 视频流时长支持:**8小时以内**
|
|
48
|
+
- 视频流分辨率支持:支持**1920x1080 (1080p)**,更高分辨率视频可以调用[直播云转码服务](https://cloud.tencent.com/document/product/267/39889)转码后再送审;
|
|
49
|
+
- 视频流支持格式:rmtp,flv 等主流视频流编码格式。
|
|
50
|
+
- 视频文件支持的传输协议:HTTP/HTTPS/RTMP;
|
|
51
|
+
- 支持用户配置是否需要开启音频审核,若不开启则将仅对视频流图像内容进行审核。
|
|
15
52
|
|
|
16
53
|
### 直播断流处理说明:
|
|
17
54
|
- 请确认已对接[取消任务](https://cloud.tencent.com/document/product/1265/80018)。
|
|
18
55
|
- 如果直播任务取消/结束,则终止直播拉流并退出审核。
|
|
19
56
|
- 如果直播任务没有取消/结束,直播视频推流因故中断,产品将在将在10分钟内持续拉流重试。如果10分钟检测到图片截帧/音频切片数据,则恢复正常审核,反之,则终止拉流并退出审核。在拉流终止后,用户如有审核需求,需重新送审。
|
|
20
|
-
|
|
21
|
-
默认接口请求频率限制:20次/秒。
|
|
22
57
|
*/
|
|
23
58
|
CreateVideoModerationTask(req: CreateVideoModerationTaskRequest, cb?: (error: string, rep: CreateVideoModerationTaskResponse) => void): Promise<CreateVideoModerationTaskResponse>;
|
|
24
59
|
/**
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
默认接口请求频率限制:**20次/秒**。
|
|
28
|
-
*/
|
|
60
|
+
* 通过查看审核任务列表接口,可查询任务队列;您可根据多种业务信息(业务类型、审核结果、任务状态等)筛选审核任务列表。
|
|
61
|
+
*/
|
|
29
62
|
DescribeTasks(req: DescribeTasksRequest, cb?: (error: string, rep: DescribeTasksResponse) => void): Promise<DescribeTasksResponse>;
|
|
30
63
|
/**
|
|
31
|
-
*
|
|
64
|
+
* 可使用该接口取消审核任务,成功取消后,该接口返回已取消任务的TaskId。
|
|
32
65
|
*/
|
|
33
66
|
CancelTask(req: CancelTaskRequest, cb?: (error: string, rep: CancelTaskResponse) => void): Promise<CancelTaskResponse>;
|
|
34
67
|
}
|