1// Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved. 2// 3// Licensed under the Apache License, Version 2.0 (the "License"); 4// you may not use this file except in compliance with the License. 5// You may obtain a copy of the License at 6// 7// http://www.apache.org/licenses/LICENSE-2.0 8// 9// Unless required by applicable law or agreed to in writing, software 10// distributed under the License is distributed on an "AS IS" BASIS, 11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12// See the License for the specific language governing permissions and 13// limitations under the License. 14 15package v20200709 16 17import ( 18 "encoding/json" 19 tcerr "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/errors" 20 tchttp "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/http" 21) 22 23type AudioResult struct { 24 25 // 是否命中 26 // 0 未命中 27 // 1 命中 28 // 注意:此字段可能返回 null,表示取不到有效值。 29 HitFlag *int64 `json:"HitFlag,omitempty" name:"HitFlag"` 30 31 // 命中的标签 32 // Porn 色情 33 // Polity 政治 34 // Illegal 违法 35 // Abuse 谩骂 36 // Terror 暴恐 37 // Ad 广告 38 // Moan 呻吟 39 // 注意:此字段可能返回 null,表示取不到有效值。 40 Label *string `json:"Label,omitempty" name:"Label"` 41 42 // 审核建议,可选值: 43 // Pass 通过, 44 // Review 建议人审, 45 // Block 确认违规 46 // 注意:此字段可能返回 null,表示取不到有效值。 47 Suggestion *string `json:"Suggestion,omitempty" name:"Suggestion"` 48 49 // 得分,0-100 50 // 注意:此字段可能返回 null,表示取不到有效值。 51 Score *int64 `json:"Score,omitempty" name:"Score"` 52 53 // 音频ASR文本 54 // 注意:此字段可能返回 null,表示取不到有效值。 55 Text *string `json:"Text,omitempty" name:"Text"` 56 57 // 音频片段存储URL,有效期为1天 58 // 注意:此字段可能返回 null,表示取不到有效值。 59 Url *string `json:"Url,omitempty" name:"Url"` 60 61 // 音频时长 62 // 注意:此字段可能返回 null,表示取不到有效值。 63 Duration *string `json:"Duration,omitempty" name:"Duration"` 64 65 // 拓展字段 66 // 注意:此字段可能返回 null,表示取不到有效值。 67 Extra *string `json:"Extra,omitempty" name:"Extra"` 68 69 // 文本审核结果 70 // 注意:此字段可能返回 null,表示取不到有效值。 71 TextResults []*AudioResultDetailTextResult `json:"TextResults,omitempty" name:"TextResults"` 72 73 // 音频呻吟审核结果 74 // 注意:此字段可能返回 null,表示取不到有效值。 75 MoanResults []*AudioResultDetailMoanResult `json:"MoanResults,omitempty" name:"MoanResults"` 76 77 // 音频语种检测结果 78 // 注意:此字段可能返回 null,表示取不到有效值。 79 LanguageResults []*AudioResultDetailLanguageResult `json:"LanguageResults,omitempty" name:"LanguageResults"` 80} 81 82type AudioResultDetailLanguageResult struct { 83 84 // 语种 85 // 注意:此字段可能返回 null,表示取不到有效值。 86 Label *string `json:"Label,omitempty" name:"Label"` 87 88 // 得分 89 // 注意:此字段可能返回 null,表示取不到有效值。 90 Score *int64 `json:"Score,omitempty" name:"Score"` 91 92 // 开始时间 93 // 注意:此字段可能返回 null,表示取不到有效值。 94 StartTime *float64 `json:"StartTime,omitempty" name:"StartTime"` 95 96 // 结束时间 97 // 注意:此字段可能返回 null,表示取不到有效值。 98 EndTime *float64 `json:"EndTime,omitempty" name:"EndTime"` 99 100 // 子标签码 101 // 注意:此字段可能返回 null,表示取不到有效值。 102 SubLabelCode *string `json:"SubLabelCode,omitempty" name:"SubLabelCode"` 103} 104 105type AudioResultDetailMoanResult struct { 106 107 // 固定为Moan 108 // 注意:此字段可能返回 null,表示取不到有效值。 109 Label *string `json:"Label,omitempty" name:"Label"` 110 111 // 分数 112 Score *int64 `json:"Score,omitempty" name:"Score"` 113 114 // 开始时间 115 StartTime *float64 `json:"StartTime,omitempty" name:"StartTime"` 116 117 // 结束时间 118 EndTime *float64 `json:"EndTime,omitempty" name:"EndTime"` 119 120 // 子标签码 121 SubLabelCode *string `json:"SubLabelCode,omitempty" name:"SubLabelCode"` 122} 123 124type AudioResultDetailTextResult struct { 125 126 // 标签 127 // 注意:此字段可能返回 null,表示取不到有效值。 128 Label *string `json:"Label,omitempty" name:"Label"` 129 130 // 命中的关键词 131 // 注意:此字段可能返回 null,表示取不到有效值。 132 Keywords []*string `json:"Keywords,omitempty" name:"Keywords"` 133 134 // 命中的LibId 135 // 注意:此字段可能返回 null,表示取不到有效值。 136 LibId *string `json:"LibId,omitempty" name:"LibId"` 137 138 // 命中的LibName 139 // 注意:此字段可能返回 null,表示取不到有效值。 140 LibName *string `json:"LibName,omitempty" name:"LibName"` 141 142 // 得分 143 // 注意:此字段可能返回 null,表示取不到有效值。 144 Score *int64 `json:"Score,omitempty" name:"Score"` 145 146 // 词库类型 1 黑白库 2 自定义库 147 // 注意:此字段可能返回 null,表示取不到有效值。 148 LibType *int64 `json:"LibType,omitempty" name:"LibType"` 149 150 // 审核建议 151 // 注意:此字段可能返回 null,表示取不到有效值。 152 Suggestion *string `json:"Suggestion,omitempty" name:"Suggestion"` 153} 154 155type AudioSegments struct { 156 157 // 截帧时间。 158 // 点播文件:该值为相对于视频偏移时间,单位为秒,例如:0,5,10 159 // 直播流:该值为时间戳,例如:1594650717 160 // 注意:此字段可能返回 null,表示取不到有效值。 161 OffsetTime *string `json:"OffsetTime,omitempty" name:"OffsetTime"` 162 163 // 结果集 164 // 注意:此字段可能返回 null,表示取不到有效值。 165 Result *AudioResult `json:"Result,omitempty" name:"Result"` 166} 167 168type BucketInfo struct { 169 170 // 腾讯云对象存储,存储桶名称 171 Bucket *string `json:"Bucket,omitempty" name:"Bucket"` 172 173 // 地域 174 Region *string `json:"Region,omitempty" name:"Region"` 175 176 // 对象Key 177 Object *string `json:"Object,omitempty" name:"Object"` 178} 179 180type CancelTaskRequest struct { 181 *tchttp.BaseRequest 182 183 // 任务ID 184 TaskId *string `json:"TaskId,omitempty" name:"TaskId"` 185} 186 187func (r *CancelTaskRequest) ToJsonString() string { 188 b, _ := json.Marshal(r) 189 return string(b) 190} 191 192// FromJsonString It is highly **NOT** recommended to use this function 193// because it has no param check, nor strict type check 194func (r *CancelTaskRequest) FromJsonString(s string) error { 195 f := make(map[string]interface{}) 196 if err := json.Unmarshal([]byte(s), &f); err != nil { 197 return err 198 } 199 delete(f, "TaskId") 200 if len(f) > 0 { 201 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CancelTaskRequest has unknown keys!", "") 202 } 203 return json.Unmarshal([]byte(s), &r) 204} 205 206type CancelTaskResponse struct { 207 *tchttp.BaseResponse 208 Response *struct { 209 210 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 211 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 212 } `json:"Response"` 213} 214 215func (r *CancelTaskResponse) ToJsonString() string { 216 b, _ := json.Marshal(r) 217 return string(b) 218} 219 220// FromJsonString It is highly **NOT** recommended to use this function 221// because it has no param check, nor strict type check 222func (r *CancelTaskResponse) FromJsonString(s string) error { 223 return json.Unmarshal([]byte(s), &r) 224} 225 226type CreateBizConfigRequest struct { 227 *tchttp.BaseRequest 228 229 // 业务ID,仅限英文字母、数字和下划线(_)组成,长度不超过8位 230 BizType *string `json:"BizType,omitempty" name:"BizType"` 231 232 // 审核分类信息 233 MediaModeration *MediaModerationConfig `json:"MediaModeration,omitempty" name:"MediaModeration"` 234 235 // 业务名称,用于标识业务场景,长度不超过32位 236 BizName *string `json:"BizName,omitempty" name:"BizName"` 237 238 // 审核内容,可选:Polity (政治); Porn (色情); Illegal(违法);Abuse (谩骂); Terror (暴恐); Ad (广告); Custom (自定义); 239 ModerationCategories []*string `json:"ModerationCategories,omitempty" name:"ModerationCategories"` 240} 241 242func (r *CreateBizConfigRequest) ToJsonString() string { 243 b, _ := json.Marshal(r) 244 return string(b) 245} 246 247// FromJsonString It is highly **NOT** recommended to use this function 248// because it has no param check, nor strict type check 249func (r *CreateBizConfigRequest) FromJsonString(s string) error { 250 f := make(map[string]interface{}) 251 if err := json.Unmarshal([]byte(s), &f); err != nil { 252 return err 253 } 254 delete(f, "BizType") 255 delete(f, "MediaModeration") 256 delete(f, "BizName") 257 delete(f, "ModerationCategories") 258 if len(f) > 0 { 259 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateBizConfigRequest has unknown keys!", "") 260 } 261 return json.Unmarshal([]byte(s), &r) 262} 263 264type CreateBizConfigResponse struct { 265 *tchttp.BaseResponse 266 Response *struct { 267 268 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 269 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 270 } `json:"Response"` 271} 272 273func (r *CreateBizConfigResponse) ToJsonString() string { 274 b, _ := json.Marshal(r) 275 return string(b) 276} 277 278// FromJsonString It is highly **NOT** recommended to use this function 279// because it has no param check, nor strict type check 280func (r *CreateBizConfigResponse) FromJsonString(s string) error { 281 return json.Unmarshal([]byte(s), &r) 282} 283 284type CreateVideoModerationTaskRequest struct { 285 *tchttp.BaseRequest 286 287 // 业务类型, 定义 模版策略,输出存储配置。如果没有BizType,可以先参考 【创建业务配置】接口进行创建 288 BizType *string `json:"BizType,omitempty" name:"BizType"` 289 290 // 任务类型:可选VIDEO(点播视频),LIVE_VIDEO(直播视频) 291 Type *string `json:"Type,omitempty" name:"Type"` 292 293 // 输入的任务信息,最多可以同时创建10个任务 294 Tasks []*TaskInput `json:"Tasks,omitempty" name:"Tasks"` 295 296 // 回调签名key,具体可以查看签名文档。 297 Seed *string `json:"Seed,omitempty" name:"Seed"` 298 299 // 接收审核信息回调地址,如果设置,则审核过程中产生的违规音频片段和画面截帧发送此接口 300 CallbackUrl *string `json:"CallbackUrl,omitempty" name:"CallbackUrl"` 301 302 // 审核排队优先级。当您有多个视频审核任务排队时,可以根据这个参数控制排队优先级。用于处理插队等逻辑。默认该参数为0 303 Priority *int64 `json:"Priority,omitempty" name:"Priority"` 304} 305 306func (r *CreateVideoModerationTaskRequest) ToJsonString() string { 307 b, _ := json.Marshal(r) 308 return string(b) 309} 310 311// FromJsonString It is highly **NOT** recommended to use this function 312// because it has no param check, nor strict type check 313func (r *CreateVideoModerationTaskRequest) FromJsonString(s string) error { 314 f := make(map[string]interface{}) 315 if err := json.Unmarshal([]byte(s), &f); err != nil { 316 return err 317 } 318 delete(f, "BizType") 319 delete(f, "Type") 320 delete(f, "Tasks") 321 delete(f, "Seed") 322 delete(f, "CallbackUrl") 323 delete(f, "Priority") 324 if len(f) > 0 { 325 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateVideoModerationTaskRequest has unknown keys!", "") 326 } 327 return json.Unmarshal([]byte(s), &r) 328} 329 330type CreateVideoModerationTaskResponse struct { 331 *tchttp.BaseResponse 332 Response *struct { 333 334 // 任务创建结果 335 // 注意:此字段可能返回 null,表示取不到有效值。 336 Results []*TaskResult `json:"Results,omitempty" name:"Results"` 337 338 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 339 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 340 } `json:"Response"` 341} 342 343func (r *CreateVideoModerationTaskResponse) ToJsonString() string { 344 b, _ := json.Marshal(r) 345 return string(b) 346} 347 348// FromJsonString It is highly **NOT** recommended to use this function 349// because it has no param check, nor strict type check 350func (r *CreateVideoModerationTaskResponse) FromJsonString(s string) error { 351 return json.Unmarshal([]byte(s), &r) 352} 353 354type DescribeTaskDetailRequest struct { 355 *tchttp.BaseRequest 356 357 // 任务ID,创建任务后返回的TaskId字段 358 TaskId *string `json:"TaskId,omitempty" name:"TaskId"` 359 360 // 是否展示所有分片,默认只展示命中规则的分片 361 ShowAllSegments *bool `json:"ShowAllSegments,omitempty" name:"ShowAllSegments"` 362} 363 364func (r *DescribeTaskDetailRequest) ToJsonString() string { 365 b, _ := json.Marshal(r) 366 return string(b) 367} 368 369// FromJsonString It is highly **NOT** recommended to use this function 370// because it has no param check, nor strict type check 371func (r *DescribeTaskDetailRequest) FromJsonString(s string) error { 372 f := make(map[string]interface{}) 373 if err := json.Unmarshal([]byte(s), &f); err != nil { 374 return err 375 } 376 delete(f, "TaskId") 377 delete(f, "ShowAllSegments") 378 if len(f) > 0 { 379 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeTaskDetailRequest has unknown keys!", "") 380 } 381 return json.Unmarshal([]byte(s), &r) 382} 383 384type DescribeTaskDetailResponse struct { 385 *tchttp.BaseResponse 386 Response *struct { 387 388 // 任务Id 389 // 注意:此字段可能返回 null,表示取不到有效值。 390 TaskId *string `json:"TaskId,omitempty" name:"TaskId"` 391 392 // 审核时传入的数据Id 393 // 注意:此字段可能返回 null,表示取不到有效值。 394 DataId *string `json:"DataId,omitempty" name:"DataId"` 395 396 // 业务类型 397 // 注意:此字段可能返回 null,表示取不到有效值。 398 BizType *string `json:"BizType,omitempty" name:"BizType"` 399 400 // 任务名称 401 // 注意:此字段可能返回 null,表示取不到有效值。 402 Name *string `json:"Name,omitempty" name:"Name"` 403 404 // 状态,可选值: 405 // FINISH 已完成 406 // PENDING 等待中 407 // RUNNING 进行中 408 // ERROR 出错 409 // CANCELLED 已取消 410 // 注意:此字段可能返回 null,表示取不到有效值。 411 Status *string `json:"Status,omitempty" name:"Status"` 412 413 // 类型 414 // 注意:此字段可能返回 null,表示取不到有效值。 415 Type *string `json:"Type,omitempty" name:"Type"` 416 417 // 审核建议 418 // 可选: 419 // Pass 通过 420 // Reveiw 建议复审 421 // Block 确认违规 422 // 注意:此字段可能返回 null,表示取不到有效值。 423 Suggestion *string `json:"Suggestion,omitempty" name:"Suggestion"` 424 425 // 审核结果 426 // 注意:此字段可能返回 null,表示取不到有效值。 427 Labels []*TaskLabel `json:"Labels,omitempty" name:"Labels"` 428 429 // 媒体解码信息 430 // 注意:此字段可能返回 null,表示取不到有效值。 431 MediaInfo *MediaInfo `json:"MediaInfo,omitempty" name:"MediaInfo"` 432 433 // 任务信息 434 // 注意:此字段可能返回 null,表示取不到有效值。 435 InputInfo *InputInfo `json:"InputInfo,omitempty" name:"InputInfo"` 436 437 // 创建时间 438 // 注意:此字段可能返回 null,表示取不到有效值。 439 CreatedAt *string `json:"CreatedAt,omitempty" name:"CreatedAt"` 440 441 // 更新时间 442 // 注意:此字段可能返回 null,表示取不到有效值。 443 UpdatedAt *string `json:"UpdatedAt,omitempty" name:"UpdatedAt"` 444 445 // 在秒后重试 446 // 注意:此字段可能返回 null,表示取不到有效值。 447 TryInSeconds *int64 `json:"TryInSeconds,omitempty" name:"TryInSeconds"` 448 449 // 图片结果 450 // 注意:此字段可能返回 null,表示取不到有效值。 451 ImageSegments []*ImageSegments `json:"ImageSegments,omitempty" name:"ImageSegments"` 452 453 // 音频结果 454 // 注意:此字段可能返回 null,表示取不到有效值。 455 AudioSegments []*AudioSegments `json:"AudioSegments,omitempty" name:"AudioSegments"` 456 457 // 如果返回的状态为ERROR,该字段会标记错误类型。 458 // 可选值:: 459 // DECODE_ERROR: 解码失败。(输入资源中可能包含无法解码的视频) 460 // URL_ERROR:下载地址验证失败。 461 // TIMEOUT_ERROR:处理超时。 462 // 注意:此字段可能返回 null,表示取不到有效值。 463 ErrorType *string `json:"ErrorType,omitempty" name:"ErrorType"` 464 465 // 审核任务错误日志。当Error不为空时,会展示该字段 466 // 注意:此字段可能返回 null,表示取不到有效值。 467 ErrorDescription *string `json:"ErrorDescription,omitempty" name:"ErrorDescription"` 468 469 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 470 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 471 } `json:"Response"` 472} 473 474func (r *DescribeTaskDetailResponse) ToJsonString() string { 475 b, _ := json.Marshal(r) 476 return string(b) 477} 478 479// FromJsonString It is highly **NOT** recommended to use this function 480// because it has no param check, nor strict type check 481func (r *DescribeTaskDetailResponse) FromJsonString(s string) error { 482 return json.Unmarshal([]byte(s), &r) 483} 484 485type DescribeVideoStatRequest struct { 486 *tchttp.BaseRequest 487 488 // 审核类型 1: 机器审核; 2: 人工审核 489 AuditType *int64 `json:"AuditType,omitempty" name:"AuditType"` 490 491 // 查询条件 492 Filters []*Filters `json:"Filters,omitempty" name:"Filters"` 493} 494 495func (r *DescribeVideoStatRequest) ToJsonString() string { 496 b, _ := json.Marshal(r) 497 return string(b) 498} 499 500// FromJsonString It is highly **NOT** recommended to use this function 501// because it has no param check, nor strict type check 502func (r *DescribeVideoStatRequest) FromJsonString(s string) error { 503 f := make(map[string]interface{}) 504 if err := json.Unmarshal([]byte(s), &f); err != nil { 505 return err 506 } 507 delete(f, "AuditType") 508 delete(f, "Filters") 509 if len(f) > 0 { 510 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeVideoStatRequest has unknown keys!", "") 511 } 512 return json.Unmarshal([]byte(s), &r) 513} 514 515type DescribeVideoStatResponse struct { 516 *tchttp.BaseResponse 517 Response *struct { 518 519 // 识别结果统计 520 Overview *Overview `json:"Overview,omitempty" name:"Overview"` 521 522 // 识别量统计 523 TrendCount []*TrendCount `json:"TrendCount,omitempty" name:"TrendCount"` 524 525 // 违规数据分布 526 EvilCount []*EvilCount `json:"EvilCount,omitempty" name:"EvilCount"` 527 528 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 529 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 530 } `json:"Response"` 531} 532 533func (r *DescribeVideoStatResponse) ToJsonString() string { 534 b, _ := json.Marshal(r) 535 return string(b) 536} 537 538// FromJsonString It is highly **NOT** recommended to use this function 539// because it has no param check, nor strict type check 540func (r *DescribeVideoStatResponse) FromJsonString(s string) error { 541 return json.Unmarshal([]byte(s), &r) 542} 543 544type EvilCount struct { 545 546 // 违规类型: 547 // Terror 24001 548 // Porn 20002 549 // Polity 20001 550 // Ad 20105 551 // Abuse 20007 552 // Illegal 20006 553 // Spam 25001 554 // Moan 26001 555 EvilType *string `json:"EvilType,omitempty" name:"EvilType"` 556 557 // 分布类型总量 558 Count *int64 `json:"Count,omitempty" name:"Count"` 559} 560 561type FileOutput struct { 562 563 // 存储的Bucket 564 Bucket *string `json:"Bucket,omitempty" name:"Bucket"` 565 566 // Cos Region 567 Region *string `json:"Region,omitempty" name:"Region"` 568 569 // 对象前缀 570 ObjectPrefix *string `json:"ObjectPrefix,omitempty" name:"ObjectPrefix"` 571} 572 573type Filters struct { 574 575 // 查询字段: 576 // 策略BizType 577 // 子账号SubUin 578 // 日期区间DateRange 579 Name *string `json:"Name,omitempty" name:"Name"` 580 581 // 查询值 582 Values []*string `json:"Values,omitempty" name:"Values"` 583} 584 585type ImageResult struct { 586 587 // 违规标志 588 // 0 未命中 589 // 1 命中 590 // 注意:此字段可能返回 null,表示取不到有效值。 591 HitFlag *int64 `json:"HitFlag,omitempty" name:"HitFlag"` 592 593 // 命中的标签 594 // Porn 色情 595 // Sexy 性感 596 // Polity 政治 597 // Illegal 违法 598 // Abuse 谩骂 599 // Terror 暴恐 600 // Ad 广告 601 // 注意:此字段可能返回 null,表示取不到有效值。 602 Label *string `json:"Label,omitempty" name:"Label"` 603 604 // 审核建议,可选值: 605 // Pass 通过, 606 // Review 建议人审, 607 // Block 确认违规 608 // 注意:此字段可能返回 null,表示取不到有效值。 609 Suggestion *string `json:"Suggestion,omitempty" name:"Suggestion"` 610 611 // 得分 612 // 注意:此字段可能返回 null,表示取不到有效值。 613 Score *int64 `json:"Score,omitempty" name:"Score"` 614 615 // 画面截帧图片结果集 616 // 注意:此字段可能返回 null,表示取不到有效值。 617 Results []*ImageResultResult `json:"Results,omitempty" name:"Results"` 618 619 // 图片URL地址 620 // 注意:此字段可能返回 null,表示取不到有效值。 621 Url *string `json:"Url,omitempty" name:"Url"` 622 623 // 附加字段 624 // 注意:此字段可能返回 null,表示取不到有效值。 625 Extra *string `json:"Extra,omitempty" name:"Extra"` 626} 627 628type ImageResultResult struct { 629 630 // 场景 631 // Porn 色情 632 // Sexy 性感 633 // Polity 政治 634 // Illegal 违法 635 // Abuse 谩骂 636 // Terror 暴恐 637 // Ad 广告 638 // 注意:此字段可能返回 null,表示取不到有效值。 639 Scene *string `json:"Scene,omitempty" name:"Scene"` 640 641 // 是否命中 642 // 0 未命中 643 // 1 命中 644 // 注意:此字段可能返回 null,表示取不到有效值。 645 HitFlag *int64 `json:"HitFlag,omitempty" name:"HitFlag"` 646 647 // 审核建议,可选值: 648 // Pass 通过, 649 // Review 建议人审, 650 // Block 确认违规 651 // 注意:此字段可能返回 null,表示取不到有效值。 652 Suggestion *string `json:"Suggestion,omitempty" name:"Suggestion"` 653 654 // 标签 655 // 注意:此字段可能返回 null,表示取不到有效值。 656 Label *string `json:"Label,omitempty" name:"Label"` 657 658 // 子标签 659 // 注意:此字段可能返回 null,表示取不到有效值。 660 SubLabel *string `json:"SubLabel,omitempty" name:"SubLabel"` 661 662 // 分数 663 // 注意:此字段可能返回 null,表示取不到有效值。 664 Score *int64 `json:"Score,omitempty" name:"Score"` 665 666 // 如果命中场景为涉政,则该数据为人物姓名列表,否则null 667 // 注意:此字段可能返回 null,表示取不到有效值。 668 Names []*string `json:"Names,omitempty" name:"Names"` 669 670 // 图片OCR文本 671 // 注意:此字段可能返回 null,表示取不到有效值。 672 Text *string `json:"Text,omitempty" name:"Text"` 673 674 // 其他详情 675 // 注意:此字段可能返回 null,表示取不到有效值。 676 Details []*ImageResultsResultDetail `json:"Details,omitempty" name:"Details"` 677} 678 679type ImageResultsResultDetail struct { 680 681 // 任务名称 682 // 注意:此字段可能返回 null,表示取不到有效值。 683 Name *string `json:"Name,omitempty" name:"Name"` 684 685 // OCR识别文本 686 // 注意:此字段可能返回 null,表示取不到有效值。 687 Text *string `json:"Text,omitempty" name:"Text"` 688 689 // 位置信息 690 // 注意:此字段可能返回 null,表示取不到有效值。 691 Location *ImageResultsResultDetailLocation `json:"Location,omitempty" name:"Location"` 692 693 // 标签 694 // 注意:此字段可能返回 null,表示取不到有效值。 695 Label *string `json:"Label,omitempty" name:"Label"` 696 697 // 库ID 698 // 注意:此字段可能返回 null,表示取不到有效值。 699 LibId *string `json:"LibId,omitempty" name:"LibId"` 700 701 // 库名称 702 // 注意:此字段可能返回 null,表示取不到有效值。 703 LibName *string `json:"LibName,omitempty" name:"LibName"` 704 705 // 命中的关键词 706 // 注意:此字段可能返回 null,表示取不到有效值。 707 Keywords []*string `json:"Keywords,omitempty" name:"Keywords"` 708 709 // 建议 710 // 注意:此字段可能返回 null,表示取不到有效值。 711 Suggestion *string `json:"Suggestion,omitempty" name:"Suggestion"` 712 713 // 得分 714 // 注意:此字段可能返回 null,表示取不到有效值。 715 Score *int64 `json:"Score,omitempty" name:"Score"` 716 717 // 子标签码 718 // 注意:此字段可能返回 null,表示取不到有效值。 719 SubLabelCode *string `json:"SubLabelCode,omitempty" name:"SubLabelCode"` 720} 721 722type ImageResultsResultDetailLocation struct { 723 724 // x坐标 725 // 注意:此字段可能返回 null,表示取不到有效值。 726 X *float64 `json:"X,omitempty" name:"X"` 727 728 // y坐标 729 // 注意:此字段可能返回 null,表示取不到有效值。 730 Y *float64 `json:"Y,omitempty" name:"Y"` 731 732 // 宽度 733 // 注意:此字段可能返回 null,表示取不到有效值。 734 Width *int64 `json:"Width,omitempty" name:"Width"` 735 736 // 高度 737 // 注意:此字段可能返回 null,表示取不到有效值。 738 Height *int64 `json:"Height,omitempty" name:"Height"` 739 740 // 旋转角度 741 // 注意:此字段可能返回 null,表示取不到有效值。 742 Rotate *float64 `json:"Rotate,omitempty" name:"Rotate"` 743} 744 745type ImageSegments struct { 746 747 // 截帧时间。 748 // 点播文件:该值为相对于视频偏移时间,单位为秒,例如:0,5,10 749 // 直播流:该值为时间戳,例如:1594650717 750 OffsetTime *string `json:"OffsetTime,omitempty" name:"OffsetTime"` 751 752 // 画面截帧结果详情 753 Result *ImageResult `json:"Result,omitempty" name:"Result"` 754} 755 756type InputInfo struct { 757 758 // 传入的类型可选:URL,COS 759 // 注意:此字段可能返回 null,表示取不到有效值。 760 Type *string `json:"Type,omitempty" name:"Type"` 761 762 // Url地址 763 // 注意:此字段可能返回 null,表示取不到有效值。 764 Url *string `json:"Url,omitempty" name:"Url"` 765 766 // 桶信息。当输入当时COS时,该字段不为空 767 // 注意:此字段可能返回 null,表示取不到有效值。 768 BucketInfo *string `json:"BucketInfo,omitempty" name:"BucketInfo"` 769} 770 771type MediaInfo struct { 772 773 // 编码格式 774 Codecs *string `json:"Codecs,omitempty" name:"Codecs"` 775 776 // 流检测时分片时长 777 // 注意:此字段可能返回 0,表示取不到有效值。 778 Duration *int64 `json:"Duration,omitempty" name:"Duration"` 779 780 // 宽,单位为像素 781 Width *int64 `json:"Width,omitempty" name:"Width"` 782 783 // 高,单位为像素 784 Height *int64 `json:"Height,omitempty" name:"Height"` 785} 786 787type MediaModerationConfig struct { 788 789 // 是否使用OCR,默认为true 790 UseOCR *bool `json:"UseOCR,omitempty" name:"UseOCR"` 791 792 // 是否使用音频,默认为true。视频场景下,默认为 false 793 UseAudio *bool `json:"UseAudio,omitempty" name:"UseAudio"` 794 795 // 图片取帧频率, 单位(秒/帧),默认 5, 可选 1 ~ 300 796 ImageFrequency *int64 `json:"ImageFrequency,omitempty" name:"ImageFrequency"` 797 798 // 音频片段长度。单位为:秒 799 AudioFrequency *int64 `json:"AudioFrequency,omitempty" name:"AudioFrequency"` 800 801 // 临时文件存储位置 802 SegmentOutput *FileOutput `json:"SegmentOutput,omitempty" name:"SegmentOutput"` 803 804 // 回调地址 805 CallbackUrl *string `json:"CallbackUrl,omitempty" name:"CallbackUrl"` 806} 807 808type Overview struct { 809 810 // 总调用量 811 TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` 812 813 // 总调用时长 814 TotalHour *int64 `json:"TotalHour,omitempty" name:"TotalHour"` 815 816 // 通过量 817 PassCount *int64 `json:"PassCount,omitempty" name:"PassCount"` 818 819 // 通过时长 820 PassHour *int64 `json:"PassHour,omitempty" name:"PassHour"` 821 822 // 违规量 823 EvilCount *int64 `json:"EvilCount,omitempty" name:"EvilCount"` 824 825 // 违规时长 826 EvilHour *int64 `json:"EvilHour,omitempty" name:"EvilHour"` 827 828 // 疑似违规量 829 SuspectCount *int64 `json:"SuspectCount,omitempty" name:"SuspectCount"` 830 831 // 疑似违规时长 832 SuspectHour *int64 `json:"SuspectHour,omitempty" name:"SuspectHour"` 833} 834 835type StorageInfo struct { 836 837 // 类型 可选: 838 // URL 资源链接类型 839 // COS 腾讯云对象存储类型 840 Type *string `json:"Type,omitempty" name:"Type"` 841 842 // 资源链接 843 Url *string `json:"Url,omitempty" name:"Url"` 844 845 // 腾讯云存储桶信息 846 BucketInfo *BucketInfo `json:"BucketInfo,omitempty" name:"BucketInfo"` 847} 848 849type TaskInput struct { 850 851 // 数据ID 852 DataId *string `json:"DataId,omitempty" name:"DataId"` 853 854 // 任务名 855 Name *string `json:"Name,omitempty" name:"Name"` 856 857 // 任务输入 858 Input *StorageInfo `json:"Input,omitempty" name:"Input"` 859} 860 861type TaskLabel struct { 862 863 // 命中的标签 864 // Porn 色情 865 // Sexy 性感 866 // Polity 政治 867 // Illegal 违法 868 // Abuse 谩骂 869 // Terror 暴恐 870 // Ad 广告 871 // 注意:此字段可能返回 null,表示取不到有效值。 872 Label *string `json:"Label,omitempty" name:"Label"` 873 874 // 审核建议,可选值: 875 // Pass 通过, 876 // Review 建议人审, 877 // Block 确认违规 878 // 注意:此字段可能返回 null,表示取不到有效值。 879 Suggestion *string `json:"Suggestion,omitempty" name:"Suggestion"` 880 881 // 得分,分数是 0 ~ 100 882 // 注意:此字段可能返回 null,表示取不到有效值。 883 Score *int64 `json:"Score,omitempty" name:"Score"` 884} 885 886type TaskResult struct { 887 888 // 请求时传入的DataId 889 // 注意:此字段可能返回 null,表示取不到有效值。 890 DataId *string `json:"DataId,omitempty" name:"DataId"` 891 892 // TaskId,任务ID 893 // 注意:此字段可能返回 null,表示取不到有效值。 894 TaskId *string `json:"TaskId,omitempty" name:"TaskId"` 895 896 // 错误码。如果code为OK,则表示创建成功,其他则参考公共错误码 897 // 注意:此字段可能返回 null,表示取不到有效值。 898 Code *string `json:"Code,omitempty" name:"Code"` 899 900 // 如果错误,该字段表示错误详情 901 // 注意:此字段可能返回 null,表示取不到有效值。 902 Message *string `json:"Message,omitempty" name:"Message"` 903} 904 905type TrendCount struct { 906 907 // 总调用量 908 TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` 909 910 // 总调用时长 911 TotalHour *int64 `json:"TotalHour,omitempty" name:"TotalHour"` 912 913 // 通过量 914 PassCount *int64 `json:"PassCount,omitempty" name:"PassCount"` 915 916 // 通过时长 917 PassHour *int64 `json:"PassHour,omitempty" name:"PassHour"` 918 919 // 违规量 920 EvilCount *int64 `json:"EvilCount,omitempty" name:"EvilCount"` 921 922 // 违规时长 923 EvilHour *int64 `json:"EvilHour,omitempty" name:"EvilHour"` 924 925 // 疑似违规量 926 SuspectCount *int64 `json:"SuspectCount,omitempty" name:"SuspectCount"` 927 928 // 疑似违规时长 929 SuspectHour *int64 `json:"SuspectHour,omitempty" name:"SuspectHour"` 930 931 // 日期 932 Date *string `json:"Date,omitempty" name:"Date"` 933} 934