首次推送

This commit is contained in:
lym
2026-03-09 00:13:46 +08:00
commit b19613bb31
13974 changed files with 2767735 additions and 0 deletions

View File

@@ -0,0 +1,50 @@
/*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
namespace TencentCloud.Ticm.V20181127.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class Candidate : AbstractModel
{
/// <summary>
/// 识别出人脸对应的候选人数组。当前返回相似度最高的候选人。
/// </summary>
[JsonProperty("Name")]
public string Name{ get; set; }
/// <summary>
/// 相似度0-100之间。
/// </summary>
[JsonProperty("Confidence")]
public long? Confidence{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "Name", this.Name);
this.SetParamSimple(map, prefix + "Confidence", this.Confidence);
}
}
}

View File

@@ -0,0 +1,43 @@
/*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
namespace TencentCloud.Ticm.V20181127.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribeVideoTaskRequest : AbstractModel
{
/// <summary>
/// 需要查询的视频审核的任务ID
/// </summary>
[JsonProperty("VodTaskId")]
public string VodTaskId{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "VodTaskId", this.VodTaskId);
}
}
}

View File

@@ -0,0 +1,123 @@
/*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
namespace TencentCloud.Ticm.V20181127.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribeVideoTaskResponse : AbstractModel
{
/// <summary>
/// 任务状态,取值:
/// WAITING等待中
/// PROCESSING处理中
/// FINISH已完成。
/// </summary>
[JsonProperty("Status")]
public string Status{ get; set; }
/// <summary>
/// 任务开始执行的时间,采用 ISO 日期格式。
/// </summary>
[JsonProperty("BeginProcessTime")]
public string BeginProcessTime{ get; set; }
/// <summary>
/// 任务执行完毕的时间,采用 ISO 日期格式。
/// </summary>
[JsonProperty("FinishTime")]
public string FinishTime{ get; set; }
/// <summary>
/// 视频内容审核智能画面鉴黄任务的查询结果。
/// </summary>
[JsonProperty("PornResult")]
public VodPornReviewResult PornResult{ get; set; }
/// <summary>
/// 视频内容审核智能画面鉴恐任务的查询结果。
/// </summary>
[JsonProperty("TerrorismResult")]
public VodTerrorismReviewResult TerrorismResult{ get; set; }
/// <summary>
/// 视频内容审核智能画面鉴政任务的查询结果。
/// </summary>
[JsonProperty("PoliticalResult")]
public VodPoliticalReviewResult PoliticalResult{ get; set; }
/// <summary>
/// 视频内容审核 Ocr 文字鉴政任务的查询结果。
/// </summary>
[JsonProperty("PoliticalOcrResult")]
public VodPoliticalOcrReviewResult PoliticalOcrResult{ get; set; }
/// <summary>
/// 视频内容审核 Asr 文字鉴黄任务的查询结果。
/// </summary>
[JsonProperty("PornAsrResult")]
public VodPornAsrReviewResult PornAsrResult{ get; set; }
/// <summary>
/// 视频内容审核 Asr 文字鉴政任务的查询结果。
/// </summary>
[JsonProperty("PoliticalAsrResult")]
public VodPoliticalAsrReviewResult PoliticalAsrResult{ get; set; }
/// <summary>
/// 视频内容审核 Ocr 文字鉴黄任务的查询结果。
/// </summary>
[JsonProperty("PornOcrResult")]
public VodPornOcrResult PornOcrResult{ get; set; }
/// <summary>
/// 原始视频的元信息。
/// </summary>
[JsonProperty("MetaData")]
public VodMetaData MetaData{ get; set; }
/// <summary>
/// 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
/// </summary>
[JsonProperty("RequestId")]
public string RequestId{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "Status", this.Status);
this.SetParamSimple(map, prefix + "BeginProcessTime", this.BeginProcessTime);
this.SetParamSimple(map, prefix + "FinishTime", this.FinishTime);
this.SetParamObj(map, prefix + "PornResult.", this.PornResult);
this.SetParamObj(map, prefix + "TerrorismResult.", this.TerrorismResult);
this.SetParamObj(map, prefix + "PoliticalResult.", this.PoliticalResult);
this.SetParamObj(map, prefix + "PoliticalOcrResult.", this.PoliticalOcrResult);
this.SetParamObj(map, prefix + "PornAsrResult.", this.PornAsrResult);
this.SetParamObj(map, prefix + "PoliticalAsrResult.", this.PoliticalAsrResult);
this.SetParamObj(map, prefix + "PornOcrResult.", this.PornOcrResult);
this.SetParamObj(map, prefix + "MetaData.", this.MetaData);
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
}
}
}

View File

@@ -0,0 +1,70 @@
/*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
namespace TencentCloud.Ticm.V20181127.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DisgustResult : AbstractModel
{
/// <summary>
/// 该识别场景的错误码:
/// 0表示成功
/// -1表示系统错误
/// -2表示引擎错误。
/// </summary>
[JsonProperty("Code")]
public long? Code{ get; set; }
/// <summary>
/// 错误码描述信息。
/// </summary>
[JsonProperty("Msg")]
public string Msg{ get; set; }
/// <summary>
/// 识别场景的审核结论:
/// PASS正常
/// REVIEW疑似
/// BLOCK违规
/// </summary>
[JsonProperty("Suggestion")]
public string Suggestion{ get; set; }
/// <summary>
/// 图像恶心的分数0-100之间分数越高恶心几率越大。
/// </summary>
[JsonProperty("Confidence")]
public long? Confidence{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "Code", this.Code);
this.SetParamSimple(map, prefix + "Msg", this.Msg);
this.SetParamSimple(map, prefix + "Suggestion", this.Suggestion);
this.SetParamSimple(map, prefix + "Confidence", this.Confidence);
}
}
}

View File

@@ -0,0 +1,64 @@
/*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
namespace TencentCloud.Ticm.V20181127.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class FaceRect : AbstractModel
{
/// <summary>
/// 人脸区域左上角横坐标。
/// </summary>
[JsonProperty("X")]
public long? X{ get; set; }
/// <summary>
/// 人脸区域左上角纵坐标。
/// </summary>
[JsonProperty("Y")]
public long? Y{ get; set; }
/// <summary>
/// 人脸区域宽度。
/// </summary>
[JsonProperty("Width")]
public long? Width{ get; set; }
/// <summary>
/// 人脸区域高度。
/// </summary>
[JsonProperty("Height")]
public long? Height{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "X", this.X);
this.SetParamSimple(map, prefix + "Y", this.Y);
this.SetParamSimple(map, prefix + "Width", this.Width);
this.SetParamSimple(map, prefix + "Height", this.Height);
}
}
}

View File

@@ -0,0 +1,50 @@
/*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
namespace TencentCloud.Ticm.V20181127.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class FaceResult : AbstractModel
{
/// <summary>
/// 检测出的人脸框位置。
/// </summary>
[JsonProperty("FaceRect")]
public FaceRect FaceRect{ get; set; }
/// <summary>
/// 候选人列表。当前返回相似度最高的候选人。
/// </summary>
[JsonProperty("Candidates")]
public Candidate[] Candidates{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamObj(map, prefix + "FaceRect.", this.FaceRect);
this.SetParamArrayObj(map, prefix + "Candidates.", this.Candidates);
}
}
}

View File

@@ -0,0 +1,82 @@
/*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
namespace TencentCloud.Ticm.V20181127.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class ImageModerationRequest : AbstractModel
{
/// <summary>
/// 本次调用支持的识别场景,可选值如下:
/// 1. PORN即色情识别
/// 2. TERRORISM即暴恐识别
/// 3. POLITICS即政治敏感识别
///
/// 支持多场景Scenes一起检测。例如使用 Scenes=["PORN", "TERRORISM"],即对一张图片同时进行色情识别和暴恐识别。
/// </summary>
[JsonProperty("Scenes")]
public string[] Scenes{ get; set; }
/// <summary>
/// 图片URL地址。
/// 图片限制:
/// • 图片格式PNG、JPG、JPEG。
/// • 图片大小所下载图片经Base64编码后不超过4M。图片下载时间不超过3秒。
/// • 图片像素大于50*50像素否则影响识别效果
/// • 长宽比:长边:短边<5
/// 接口响应时间会受到图片下载时间的影响建议使用更可靠的存储服务推荐将图片存储在腾讯云COS。
/// </summary>
[JsonProperty("ImageUrl")]
public string ImageUrl{ get; set; }
/// <summary>
/// 预留字段,后期用于展示更多识别信息。
/// </summary>
[JsonProperty("Config")]
public string Config{ get; set; }
/// <summary>
/// 透传字段,透传简单信息。
/// </summary>
[JsonProperty("Extra")]
public string Extra{ get; set; }
/// <summary>
/// 图片经过base64编码的内容。最大不超过4M。与ImageUrl同时存在时优先使用ImageUrl字段。
/// </summary>
[JsonProperty("ImageBase64")]
public string ImageBase64{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamArraySimple(map, prefix + "Scenes.", this.Scenes);
this.SetParamSimple(map, prefix + "ImageUrl", this.ImageUrl);
this.SetParamSimple(map, prefix + "Config", this.Config);
this.SetParamSimple(map, prefix + "Extra", this.Extra);
this.SetParamSimple(map, prefix + "ImageBase64", this.ImageBase64);
}
}
}

View File

@@ -0,0 +1,92 @@
/*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
namespace TencentCloud.Ticm.V20181127.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class ImageModerationResponse : AbstractModel
{
/// <summary>
/// 识别场景的审核结论:
/// PASS正常
/// REVIEW疑似
/// BLOCK违规
/// </summary>
[JsonProperty("Suggestion")]
public string Suggestion{ get; set; }
/// <summary>
/// 色情识别结果。
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("PornResult")]
public PornResult PornResult{ get; set; }
/// <summary>
/// 暴恐识别结果。
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("TerrorismResult")]
public TerrorismResult TerrorismResult{ get; set; }
/// <summary>
/// 政治敏感识别结果。
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("PoliticsResult")]
public PoliticsResult PoliticsResult{ get; set; }
/// <summary>
/// 透传字段,透传简单信息。
/// </summary>
[JsonProperty("Extra")]
public string Extra{ get; set; }
/// <summary>
/// 恶心内容识别结果。
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("DisgustResult")]
public DisgustResult DisgustResult{ get; set; }
/// <summary>
/// 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
/// </summary>
[JsonProperty("RequestId")]
public string RequestId{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "Suggestion", this.Suggestion);
this.SetParamObj(map, prefix + "PornResult.", this.PornResult);
this.SetParamObj(map, prefix + "TerrorismResult.", this.TerrorismResult);
this.SetParamObj(map, prefix + "PoliticsResult.", this.PoliticsResult);
this.SetParamSimple(map, prefix + "Extra", this.Extra);
this.SetParamObj(map, prefix + "DisgustResult.", this.DisgustResult);
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
}
}
}

View File

@@ -0,0 +1,101 @@
/*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
namespace TencentCloud.Ticm.V20181127.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class PoliticsResult : AbstractModel
{
/// <summary>
/// 该识别场景的错误码:
/// 0表示成功
/// -1表示系统错误
/// -2表示引擎错误
/// -1400表示图片解码失败
/// -1401表示图片不符合规范。
/// </summary>
[JsonProperty("Code")]
public long? Code{ get; set; }
/// <summary>
/// 错误码描述信息。
/// </summary>
[JsonProperty("Msg")]
public string Msg{ get; set; }
/// <summary>
/// 识别场景的审核结论:
/// PASS正常
/// REVIEW疑似
/// BLOCK违规
/// </summary>
[JsonProperty("Suggestion")]
public string Suggestion{ get; set; }
/// <summary>
/// 图像涉政的分数0-100之间分数越高涉政几率越大。
/// Type为DNA时
/// 0到75Suggestion建议为PASS
/// 75到90Suggestion建议为REVIEW
/// 90到100Suggestion建议为BLOCK
/// Type为FACE时
/// 0到55Suggestion建议为PASS
/// 55到60Suggestion建议为REVIEW
/// 60到100Suggestion建议为BLOCK
/// </summary>
[JsonProperty("Confidence")]
public long? Confidence{ get; set; }
/// <summary>
/// Type取值为FACE人脸识别的结果列表。基于图片中实际检测到的人脸数返回数组最大值不超过5个。
/// </summary>
[JsonProperty("FaceResults")]
public FaceResult[] FaceResults{ get; set; }
/// <summary>
/// 取值'DNA' 或FACE。DNA表示结论和置信度来自图像指纹FACE表示结论和置信度来自人脸识别。
/// </summary>
[JsonProperty("Type")]
public string Type{ get; set; }
/// <summary>
/// 鉴政识别返回的详细标签后期开放。
/// </summary>
[JsonProperty("AdvancedInfo")]
public string AdvancedInfo{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "Code", this.Code);
this.SetParamSimple(map, prefix + "Msg", this.Msg);
this.SetParamSimple(map, prefix + "Suggestion", this.Suggestion);
this.SetParamSimple(map, prefix + "Confidence", this.Confidence);
this.SetParamArrayObj(map, prefix + "FaceResults.", this.FaceResults);
this.SetParamSimple(map, prefix + "Type", this.Type);
this.SetParamSimple(map, prefix + "AdvancedInfo", this.AdvancedInfo);
}
}
}

View File

@@ -0,0 +1,85 @@
/*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
namespace TencentCloud.Ticm.V20181127.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class PornResult : AbstractModel
{
/// <summary>
/// 该识别场景的错误码:
/// 0表示成功
/// -1表示系统错误
/// -2表示引擎错误
/// -1400表示图片解码失败。
/// </summary>
[JsonProperty("Code")]
public long? Code{ get; set; }
/// <summary>
/// 错误码描述信息。
/// </summary>
[JsonProperty("Msg")]
public string Msg{ get; set; }
/// <summary>
/// 识别场景的审核结论:
/// PASS正常
/// REVIEW疑似
/// BLOCK违规
/// </summary>
[JsonProperty("Suggestion")]
public string Suggestion{ get; set; }
/// <summary>
/// 算法对于Suggestion的置信度0-100之间值越高表示对于Suggestion越确定。
/// </summary>
[JsonProperty("Confidence")]
public long? Confidence{ get; set; }
/// <summary>
/// 预留字段,后期用于展示更多识别信息。
/// </summary>
[JsonProperty("AdvancedInfo")]
public string AdvancedInfo{ get; set; }
/// <summary>
/// 取值'LABELLABEL表示结论和置信度来自标签分类。
/// </summary>
[JsonProperty("Type")]
public string Type{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "Code", this.Code);
this.SetParamSimple(map, prefix + "Msg", this.Msg);
this.SetParamSimple(map, prefix + "Suggestion", this.Suggestion);
this.SetParamSimple(map, prefix + "Confidence", this.Confidence);
this.SetParamSimple(map, prefix + "AdvancedInfo", this.AdvancedInfo);
this.SetParamSimple(map, prefix + "Type", this.Type);
}
}
}

View File

@@ -0,0 +1,100 @@
/*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
namespace TencentCloud.Ticm.V20181127.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class TerrorismResult : AbstractModel
{
/// <summary>
/// 该识别场景的错误码:
/// 0表示成功
/// -1表示系统错误
/// -2表示引擎错误
/// -1400表示图片解码失败。
/// </summary>
[JsonProperty("Code")]
public long? Code{ get; set; }
/// <summary>
/// 错误码描述信息。
/// </summary>
[JsonProperty("Msg")]
public string Msg{ get; set; }
/// <summary>
/// 识别场景的审核结论:
/// PASS正常
/// REVIEW疑似
/// BLOCK违规
/// </summary>
[JsonProperty("Suggestion")]
public string Suggestion{ get; set; }
/// <summary>
/// 图像涉恐的分数0-100之间分数越高涉恐几率越大。
/// Type为LABEL时
/// 0到86Suggestion建议为PASS
/// 86到91Suggestion建议为REVIEW
/// 91到100Suggestion建议为BLOCK
/// Type为FACE时
/// 0到55Suggestion建议为PASS
/// 55到60Suggestion建议为REVIEW
/// 60到100Suggestion建议为BLOCK
/// </summary>
[JsonProperty("Confidence")]
public long? Confidence{ get; set; }
/// <summary>
/// Type取值为FACE人脸识别的结果列表。基于图片中实际检测到的人脸数返回数组最大值不超过5个。
/// </summary>
[JsonProperty("FaceResults")]
public FaceResult[] FaceResults{ get; set; }
/// <summary>
/// 暴恐识别返回的详细标签后期开放。
/// </summary>
[JsonProperty("AdvancedInfo")]
public string AdvancedInfo{ get; set; }
/// <summary>
/// 取值'LABEL' 或FACELABEL表示结论和置信度来自标签分类FACE表示结论和置信度来自人脸识别。
/// </summary>
[JsonProperty("Type")]
public string Type{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "Code", this.Code);
this.SetParamSimple(map, prefix + "Msg", this.Msg);
this.SetParamSimple(map, prefix + "Suggestion", this.Suggestion);
this.SetParamSimple(map, prefix + "Confidence", this.Confidence);
this.SetParamArrayObj(map, prefix + "FaceResults.", this.FaceResults);
this.SetParamSimple(map, prefix + "AdvancedInfo", this.AdvancedInfo);
this.SetParamSimple(map, prefix + "Type", this.Type);
}
}
}

View File

@@ -0,0 +1,64 @@
/*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
namespace TencentCloud.Ticm.V20181127.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class VideoModerationRequest : AbstractModel
{
/// <summary>
/// 需要审核的视频的URL地址
/// </summary>
[JsonProperty("VideoUrl")]
public string VideoUrl{ get; set; }
/// <summary>
/// 开发者标识
/// </summary>
[JsonProperty("DeveloperId")]
public string DeveloperId{ get; set; }
/// <summary>
/// 审核完成后回调地址
/// </summary>
[JsonProperty("CBUrl")]
public string CBUrl{ get; set; }
/// <summary>
/// 透传字段,透传简单信息。
/// </summary>
[JsonProperty("Extra")]
public string Extra{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "VideoUrl", this.VideoUrl);
this.SetParamSimple(map, prefix + "DeveloperId", this.DeveloperId);
this.SetParamSimple(map, prefix + "CBUrl", this.CBUrl);
this.SetParamSimple(map, prefix + "Extra", this.Extra);
}
}
}

View File

@@ -0,0 +1,50 @@
/*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
namespace TencentCloud.Ticm.V20181127.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class VideoModerationResponse : AbstractModel
{
/// <summary>
/// 视频审核任务ID
/// </summary>
[JsonProperty("VodTaskId")]
public string VodTaskId{ get; set; }
/// <summary>
/// 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
/// </summary>
[JsonProperty("RequestId")]
public string RequestId{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "VodTaskId", this.VodTaskId);
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
}
}
}

View File

@@ -0,0 +1,80 @@
/*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
namespace TencentCloud.Ticm.V20181127.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class VodAsrTextSegmentItem : AbstractModel
{
/// <summary>
/// 嫌疑片段起始的偏移时间,单位:秒。
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("StartTimeOffset")]
public float? StartTimeOffset{ get; set; }
/// <summary>
/// 嫌疑片段结束的偏移时间,单位:秒。
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("EndTimeOffset")]
public float? EndTimeOffset{ get; set; }
/// <summary>
/// 嫌疑片段置信度。
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Confidence")]
public float? Confidence{ get; set; }
/// <summary>
/// 嫌疑片段审核结果建议,取值范围:
/// pass。
/// review。
/// block。
///
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Suggestion")]
public string Suggestion{ get; set; }
/// <summary>
/// 嫌疑关键词列表。
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("KeywordSet")]
public string[] KeywordSet{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "StartTimeOffset", this.StartTimeOffset);
this.SetParamSimple(map, prefix + "EndTimeOffset", this.EndTimeOffset);
this.SetParamSimple(map, prefix + "Confidence", this.Confidence);
this.SetParamSimple(map, prefix + "Suggestion", this.Suggestion);
this.SetParamArraySimple(map, prefix + "KeywordSet.", this.KeywordSet);
}
}
}

View File

@@ -0,0 +1,60 @@
/*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
namespace TencentCloud.Ticm.V20181127.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class VodAudioStreamItem : AbstractModel
{
/// <summary>
/// 音频流的码率单位bps。
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Bitrate")]
public long? Bitrate{ get; set; }
/// <summary>
/// 音频流的采样率单位hz。
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("SamplingRate")]
public long? SamplingRate{ get; set; }
/// <summary>
/// 音频流的编码格式,例如 aac。
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Codec")]
public string Codec{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "Bitrate", this.Bitrate);
this.SetParamSimple(map, prefix + "SamplingRate", this.SamplingRate);
this.SetParamSimple(map, prefix + "Codec", this.Codec);
}
}
}

View File

@@ -0,0 +1,124 @@
/*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
namespace TencentCloud.Ticm.V20181127.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class VodMetaData : AbstractModel
{
/// <summary>
/// 上传的媒体文件大小(视频为 HLS 时,大小是 m3u8 和 ts 文件大小的总和),单位:字节。
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Size")]
public long? Size{ get; set; }
/// <summary>
/// 容器类型,例如 m4amp4 等。
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Container")]
public string Container{ get; set; }
/// <summary>
/// 视频流码率平均值与音频流码率平均值之和单位bps。
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Bitrate")]
public long? Bitrate{ get; set; }
/// <summary>
/// 视频流高度的最大值单位px。
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Height")]
public long? Height{ get; set; }
/// <summary>
/// 视频流宽度的最大值单位px。
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Width")]
public long? Width{ get; set; }
/// <summary>
/// 视频时长,单位:秒。
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Duration")]
public float? Duration{ get; set; }
/// <summary>
/// 视频拍摄时的选择角度,单位:度。
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Rotate")]
public long? Rotate{ get; set; }
/// <summary>
/// 视频流信息。
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("VideoStreamSet")]
public VodVideoStreamItem[] VideoStreamSet{ get; set; }
/// <summary>
/// 音频流信息。
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("AudioStreamSet")]
public VodAudioStreamItem[] AudioStreamSet{ get; set; }
/// <summary>
/// 视频时长,单位:秒。
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("VideoDuration")]
public float? VideoDuration{ get; set; }
/// <summary>
/// 音频时长,单位:秒。
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("AudioDuration")]
public float? AudioDuration{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "Size", this.Size);
this.SetParamSimple(map, prefix + "Container", this.Container);
this.SetParamSimple(map, prefix + "Bitrate", this.Bitrate);
this.SetParamSimple(map, prefix + "Height", this.Height);
this.SetParamSimple(map, prefix + "Width", this.Width);
this.SetParamSimple(map, prefix + "Duration", this.Duration);
this.SetParamSimple(map, prefix + "Rotate", this.Rotate);
this.SetParamArrayObj(map, prefix + "VideoStreamSet.", this.VideoStreamSet);
this.SetParamArrayObj(map, prefix + "AudioStreamSet.", this.AudioStreamSet);
this.SetParamSimple(map, prefix + "VideoDuration", this.VideoDuration);
this.SetParamSimple(map, prefix + "AudioDuration", this.AudioDuration);
}
}
}

View File

@@ -0,0 +1,88 @@
/*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
namespace TencentCloud.Ticm.V20181127.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class VodOcrTextSegmentItem : AbstractModel
{
/// <summary>
/// 嫌疑片段起始的偏移时间,单位:秒。
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("StartTimeOffset")]
public float? StartTimeOffset{ get; set; }
/// <summary>
/// 嫌疑片段结束的偏移时间,单位:秒。
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("EndTimeOffset")]
public float? EndTimeOffset{ get; set; }
/// <summary>
/// 嫌疑片段置信度。
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Confidence")]
public float? Confidence{ get; set; }
/// <summary>
/// 嫌疑片段审核结果建议,取值范围:
/// pass。
/// review。
/// block。
///
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Suggestion")]
public string Suggestion{ get; set; }
/// <summary>
/// 嫌疑关键词列表。
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("KeywordSet")]
public string[] KeywordSet{ get; set; }
/// <summary>
/// 嫌疑文字出现的区域坐标 (像素级)[x1, y1, x2, y2],即左上角坐标、右下角坐标。
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("AreaCoordSet")]
public long?[] AreaCoordSet{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "StartTimeOffset", this.StartTimeOffset);
this.SetParamSimple(map, prefix + "EndTimeOffset", this.EndTimeOffset);
this.SetParamSimple(map, prefix + "Confidence", this.Confidence);
this.SetParamSimple(map, prefix + "Suggestion", this.Suggestion);
this.SetParamArraySimple(map, prefix + "KeywordSet.", this.KeywordSet);
this.SetParamArraySimple(map, prefix + "AreaCoordSet.", this.AreaCoordSet);
}
}
}

View File

@@ -0,0 +1,92 @@
/*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
namespace TencentCloud.Ticm.V20181127.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class VodPoliticalAsrReviewResult : AbstractModel
{
/// <summary>
/// 任务状态,有 PROCESSINGSUCCESS 和 FAIL 三种。
/// </summary>
[JsonProperty("Status")]
public string Status{ get; set; }
/// <summary>
/// 错误码0成功其他值失败。
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Code")]
public long? Code{ get; set; }
/// <summary>
/// 错误信息。
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Msg")]
public string Msg{ get; set; }
/// <summary>
/// 嫌疑片段审核结果建议,取值范围:
/// pass。
/// review。
/// block。
///
/// Asr 文字涉政、敏感评分分值为0到100。
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Confidence")]
public float? Confidence{ get; set; }
/// <summary>
/// Asr 文字涉政、敏感结果建议,取值范围:
/// pass。
/// review。
/// block。
///
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Suggestion")]
public string Suggestion{ get; set; }
/// <summary>
/// Asr 文字有涉政、敏感嫌疑的视频片段列表。
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("SegmentSet")]
public VodAsrTextSegmentItem[] SegmentSet{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "Status", this.Status);
this.SetParamSimple(map, prefix + "Code", this.Code);
this.SetParamSimple(map, prefix + "Msg", this.Msg);
this.SetParamSimple(map, prefix + "Confidence", this.Confidence);
this.SetParamSimple(map, prefix + "Suggestion", this.Suggestion);
this.SetParamArrayObj(map, prefix + "SegmentSet.", this.SegmentSet);
}
}
}

View File

@@ -0,0 +1,84 @@
/*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
namespace TencentCloud.Ticm.V20181127.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class VodPoliticalOcrReviewResult : AbstractModel
{
/// <summary>
/// 任务状态,有 PROCESSINGSUCCESS 和 FAIL 三种。
/// </summary>
[JsonProperty("Status")]
public string Status{ get; set; }
/// <summary>
/// 错误码0成功其他值失败。
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Code")]
public long? Code{ get; set; }
/// <summary>
/// 错误信息。
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Msg")]
public string Msg{ get; set; }
/// <summary>
/// Ocr 文字涉政、敏感评分分值为0到100。
/// </summary>
[JsonProperty("Confidence")]
public float? Confidence{ get; set; }
/// <summary>
/// Ocr 文字涉政、敏感结果建议,取值范围:
/// pass。
/// review。
/// block。
/// </summary>
[JsonProperty("Suggestion")]
public string Suggestion{ get; set; }
/// <summary>
/// Ocr 文字有涉政、敏感嫌疑的视频片段列表。
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("SegmentSet")]
public VodOcrTextSegmentItem[] SegmentSet{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "Status", this.Status);
this.SetParamSimple(map, prefix + "Code", this.Code);
this.SetParamSimple(map, prefix + "Msg", this.Msg);
this.SetParamSimple(map, prefix + "Confidence", this.Confidence);
this.SetParamSimple(map, prefix + "Suggestion", this.Suggestion);
this.SetParamArrayObj(map, prefix + "SegmentSet.", this.SegmentSet);
}
}
}

View File

@@ -0,0 +1,98 @@
/*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
namespace TencentCloud.Ticm.V20181127.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class VodPoliticalReviewResult : AbstractModel
{
/// <summary>
/// 任务状态,有 PROCESSINGSUCCESS 和 FAIL 三种。
/// </summary>
[JsonProperty("Status")]
public string Status{ get; set; }
/// <summary>
/// 错误码0成功其他值失败。
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Code")]
public long? Code{ get; set; }
/// <summary>
/// 错误信息。
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Msg")]
public string Msg{ get; set; }
/// <summary>
/// 视频涉政评分分值为0到100。
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Confidence")]
public float? Confidence{ get; set; }
/// <summary>
/// 涉政结果建议,取值范围:
/// pass。
/// review。
/// block。
///
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Suggestion")]
public string Suggestion{ get; set; }
/// <summary>
/// 视频鉴政结果标签,取值范围:
/// politician政治人物。
/// violation_photo违规图标。
///
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Label")]
public string Label{ get; set; }
/// <summary>
/// 有涉政嫌疑的视频片段列表。
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("SegmentSet")]
public VodPoliticalReviewSegmentItem[] SegmentSet{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "Status", this.Status);
this.SetParamSimple(map, prefix + "Code", this.Code);
this.SetParamSimple(map, prefix + "Msg", this.Msg);
this.SetParamSimple(map, prefix + "Confidence", this.Confidence);
this.SetParamSimple(map, prefix + "Suggestion", this.Suggestion);
this.SetParamSimple(map, prefix + "Label", this.Label);
this.SetParamArrayObj(map, prefix + "SegmentSet.", this.SegmentSet);
}
}
}

View File

@@ -0,0 +1,113 @@
/*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
namespace TencentCloud.Ticm.V20181127.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class VodPoliticalReviewSegmentItem : AbstractModel
{
/// <summary>
/// 嫌疑片段起始的偏移时间,单位:秒。
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("StartTimeOffset")]
public float? StartTimeOffset{ get; set; }
/// <summary>
/// 嫌疑片段结束的偏移时间,单位:秒。
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("EndTimeOffset")]
public float? EndTimeOffset{ get; set; }
/// <summary>
/// 嫌疑片段涉政分数。
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Confidence")]
public float? Confidence{ get; set; }
/// <summary>
/// 嫌疑片段鉴政结果建议,取值范围:
/// pass。
/// review。
/// block。
///
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Suggestion")]
public string Suggestion{ get; set; }
/// <summary>
/// 涉政人物、违规图标名字。
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Name")]
public string Name{ get; set; }
/// <summary>
/// 嫌疑片段鉴政结果标签。
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Label")]
public string Label{ get; set; }
/// <summary>
/// 嫌疑图片 URL (图片不会永久存储,到达
/// PicUrlExpireTime 时间点后图片将被删除)。
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Url")]
public string Url{ get; set; }
/// <summary>
/// 嫌疑图片 URL 失效时间,使用 ISO 日期格式。
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("PicUrlExpireTimeStamp")]
public long? PicUrlExpireTimeStamp{ get; set; }
/// <summary>
/// 涉政人物、违规图标出现的区域坐标 (像素级)[x1, y1, x2, y2],即左上角坐标、右下角坐标。
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("AreaCoordSet")]
public long?[] AreaCoordSet{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "StartTimeOffset", this.StartTimeOffset);
this.SetParamSimple(map, prefix + "EndTimeOffset", this.EndTimeOffset);
this.SetParamSimple(map, prefix + "Confidence", this.Confidence);
this.SetParamSimple(map, prefix + "Suggestion", this.Suggestion);
this.SetParamSimple(map, prefix + "Name", this.Name);
this.SetParamSimple(map, prefix + "Label", this.Label);
this.SetParamSimple(map, prefix + "Url", this.Url);
this.SetParamSimple(map, prefix + "PicUrlExpireTimeStamp", this.PicUrlExpireTimeStamp);
this.SetParamArraySimple(map, prefix + "AreaCoordSet.", this.AreaCoordSet);
}
}
}

View File

@@ -0,0 +1,87 @@
/*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
namespace TencentCloud.Ticm.V20181127.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class VodPornAsrReviewResult : AbstractModel
{
/// <summary>
/// 任务状态,有 PROCESSINGSUCCESS 和 FAIL 三种。
/// </summary>
[JsonProperty("Status")]
public string Status{ get; set; }
/// <summary>
/// 错误码0成功其他值失败。
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Code")]
public long? Code{ get; set; }
/// <summary>
/// 错误信息。
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Msg")]
public string Msg{ get; set; }
/// <summary>
/// Asr 文字涉黄评分分值为0到100。
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Confidence")]
public float? Confidence{ get; set; }
/// <summary>
/// Asr 文字涉黄结果建议,取值范围:
/// pass。
/// review。
/// block。
///
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Suggestion")]
public string Suggestion{ get; set; }
/// <summary>
/// Asr 文字有涉黄嫌疑的视频片段列表。
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("SegmentSet")]
public VodAsrTextSegmentItem[] SegmentSet{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "Status", this.Status);
this.SetParamSimple(map, prefix + "Code", this.Code);
this.SetParamSimple(map, prefix + "Msg", this.Msg);
this.SetParamSimple(map, prefix + "Confidence", this.Confidence);
this.SetParamSimple(map, prefix + "Suggestion", this.Suggestion);
this.SetParamArrayObj(map, prefix + "SegmentSet.", this.SegmentSet);
}
}
}

View File

@@ -0,0 +1,87 @@
/*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
namespace TencentCloud.Ticm.V20181127.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class VodPornOcrResult : AbstractModel
{
/// <summary>
/// 任务状态,有 PROCESSINGSUCCESS 和 FAIL 三种。
/// </summary>
[JsonProperty("Status")]
public string Status{ get; set; }
/// <summary>
/// 错误码0成功其他值失败。
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Code")]
public long? Code{ get; set; }
/// <summary>
/// 错误信息。
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Msg")]
public string Msg{ get; set; }
/// <summary>
/// Ocr 文字涉黄评分分值为0到100。
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Confidence")]
public float? Confidence{ get; set; }
/// <summary>
/// Ocr 文字涉黄结果建议,取值范围:
/// pass。
/// review。
/// block。
///
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Suggestion")]
public string Suggestion{ get; set; }
/// <summary>
/// Ocr 文字有涉黄嫌疑的视频片段列表。
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("SegmentSet")]
public VodOcrTextSegmentItem[] SegmentSet{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "Status", this.Status);
this.SetParamSimple(map, prefix + "Code", this.Code);
this.SetParamSimple(map, prefix + "Msg", this.Msg);
this.SetParamSimple(map, prefix + "Confidence", this.Confidence);
this.SetParamSimple(map, prefix + "Suggestion", this.Suggestion);
this.SetParamArrayObj(map, prefix + "SegmentSet.", this.SegmentSet);
}
}
}

View File

@@ -0,0 +1,100 @@
/*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
namespace TencentCloud.Ticm.V20181127.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class VodPornReviewResult : AbstractModel
{
/// <summary>
/// 任务状态,有 PROCESSINGSUCCESS 和 FAIL 三种。
/// </summary>
[JsonProperty("Status")]
public string Status{ get; set; }
/// <summary>
/// 错误码0成功其他值失败。
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Code")]
public long? Code{ get; set; }
/// <summary>
/// 错误信息。
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Msg")]
public string Msg{ get; set; }
/// <summary>
/// 视频鉴黄评分分值为0到100。
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Confidence")]
public float? Confidence{ get; set; }
/// <summary>
/// 鉴黄结果建议,取值范围:
/// pass。
/// review。
/// block。
///
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Suggestion")]
public string Suggestion{ get; set; }
/// <summary>
/// 视频鉴黄结果标签,取值范围:
/// porn色情。
/// sexy性感。
/// vulgar低俗。
/// intimacy亲密行为。
///
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Label")]
public string Label{ get; set; }
/// <summary>
/// 有涉黄嫌疑的视频片段列表。
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("SegmentSet")]
public VodPornReviewSegmentItem[] SegmentSet{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "Status", this.Status);
this.SetParamSimple(map, prefix + "Code", this.Code);
this.SetParamSimple(map, prefix + "Msg", this.Msg);
this.SetParamSimple(map, prefix + "Confidence", this.Confidence);
this.SetParamSimple(map, prefix + "Suggestion", this.Suggestion);
this.SetParamSimple(map, prefix + "Label", this.Label);
this.SetParamArrayObj(map, prefix + "SegmentSet.", this.SegmentSet);
}
}
}

View File

@@ -0,0 +1,97 @@
/*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
namespace TencentCloud.Ticm.V20181127.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class VodPornReviewSegmentItem : AbstractModel
{
/// <summary>
/// 嫌疑片段起始的偏移时间,单位:秒。
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("StartTimeOffset")]
public float? StartTimeOffset{ get; set; }
/// <summary>
/// 嫌疑片段结束的偏移时间,单位:秒。
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("EndTimeOffset")]
public float? EndTimeOffset{ get; set; }
/// <summary>
/// 嫌疑片段涉黄分数。
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Confidence")]
public float? Confidence{ get; set; }
/// <summary>
/// 嫌疑片段鉴黄结果标签。
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Label")]
public string Label{ get; set; }
/// <summary>
/// 嫌疑片段鉴黄结果建议,取值范围:
/// pass。
/// review。
/// block。
///
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Suggestion")]
public string Suggestion{ get; set; }
/// <summary>
/// 嫌疑图片 URL (图片不会永久存储,到达
/// PicUrlExpireTime 时间点后图片将被删除)。
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Url")]
public string Url{ get; set; }
/// <summary>
/// 嫌疑图片 URL 失效时间,使用 ISO 日期格式。
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("PicUrlExpireTimeStamp")]
public long? PicUrlExpireTimeStamp{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "StartTimeOffset", this.StartTimeOffset);
this.SetParamSimple(map, prefix + "EndTimeOffset", this.EndTimeOffset);
this.SetParamSimple(map, prefix + "Confidence", this.Confidence);
this.SetParamSimple(map, prefix + "Label", this.Label);
this.SetParamSimple(map, prefix + "Suggestion", this.Suggestion);
this.SetParamSimple(map, prefix + "Url", this.Url);
this.SetParamSimple(map, prefix + "PicUrlExpireTimeStamp", this.PicUrlExpireTimeStamp);
}
}
}

View File

@@ -0,0 +1,104 @@
/*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
namespace TencentCloud.Ticm.V20181127.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class VodTerrorismReviewResult : AbstractModel
{
/// <summary>
/// 视频暴恐评分分值为0到100。
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Confidence")]
public float? Confidence{ get; set; }
/// <summary>
/// 暴恐结果建议,取值范围:
/// pass。
/// review。
/// block。
///
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Suggestion")]
public string Suggestion{ get; set; }
/// <summary>
/// 视频暴恐结果标签,取值范围:
/// guns武器枪支。
/// crowd人群聚集。
/// police警察部队。
/// bloody血腥画面。
/// banners暴恐旗帜。
/// militant武装分子。
/// explosion爆炸火灾。
/// terrorists暴恐人物。
///
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Label")]
public string Label{ get; set; }
/// <summary>
/// 任务状态,有 PROCESSINGSUCCESS 和 FAIL 三种。
/// </summary>
[JsonProperty("Status")]
public string Status{ get; set; }
/// <summary>
/// 错误码0成功其他值失败。
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Code")]
public long? Code{ get; set; }
/// <summary>
/// 错误信息。
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Msg")]
public string Msg{ get; set; }
/// <summary>
/// 有暴恐嫌疑的视频片段列表。
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("SegmentSet")]
public VodPornReviewSegmentItem[] SegmentSet{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "Confidence", this.Confidence);
this.SetParamSimple(map, prefix + "Suggestion", this.Suggestion);
this.SetParamSimple(map, prefix + "Label", this.Label);
this.SetParamSimple(map, prefix + "Status", this.Status);
this.SetParamSimple(map, prefix + "Code", this.Code);
this.SetParamSimple(map, prefix + "Msg", this.Msg);
this.SetParamArrayObj(map, prefix + "SegmentSet.", this.SegmentSet);
}
}
}

View File

@@ -0,0 +1,76 @@
/*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
namespace TencentCloud.Ticm.V20181127.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class VodVideoStreamItem : AbstractModel
{
/// <summary>
/// 视频流的码率单位bps。
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Bitrate")]
public long? Bitrate{ get; set; }
/// <summary>
/// 视频流的高度单位px。
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Height")]
public long? Height{ get; set; }
/// <summary>
/// 视频流的宽度单位px。
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Width")]
public long? Width{ get; set; }
/// <summary>
/// 视频流的编码格式,例如 h264。
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Codec")]
public string Codec{ get; set; }
/// <summary>
/// 帧率单位hz。
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Fps")]
public long? Fps{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "Bitrate", this.Bitrate);
this.SetParamSimple(map, prefix + "Height", this.Height);
this.SetParamSimple(map, prefix + "Width", this.Width);
this.SetParamSimple(map, prefix + "Codec", this.Codec);
this.SetParamSimple(map, prefix + "Fps", this.Fps);
}
}
}

View File

@@ -0,0 +1,176 @@
/*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
namespace TencentCloud.Ticm.V20181127
{
using Newtonsoft.Json;
using System.Threading.Tasks;
using TencentCloud.Common;
using TencentCloud.Common.Profile;
using TencentCloud.Ticm.V20181127.Models;
public class TicmClient : AbstractClient{
private const string endpoint = "ticm.tencentcloudapi.com";
private const string version = "2018-11-27";
/// <summary>
/// Client constructor.
/// </summary>
/// <param name="credential">Credentials.</param>
/// <param name="region">Region name, such as "ap-guangzhou".</param>
public TicmClient(Credential credential, string region)
: this(credential, region, new ClientProfile())
{
}
/// <summary>
/// Client Constructor.
/// </summary>
/// <param name="credential">Credentials.</param>
/// <param name="region">Region name, such as "ap-guangzhou".</param>
/// <param name="profile">Client profiles.</param>
public TicmClient(Credential credential, string region, ClientProfile profile)
: base(endpoint, version, credential, region, profile)
{
}
/// <summary>
/// 提交完视频审核任务后,可以通过本接口来获取当前处理的进度和结果
/// </summary>
/// <param name="req"><see cref="DescribeVideoTaskRequest"/></param>
/// <returns><see cref="DescribeVideoTaskResponse"/></returns>
public async Task<DescribeVideoTaskResponse> DescribeVideoTask(DescribeVideoTaskRequest req)
{
JsonResponseModel<DescribeVideoTaskResponse> rsp = null;
try
{
var strResp = await this.InternalRequest(req, "DescribeVideoTask");
rsp = JsonConvert.DeserializeObject<JsonResponseModel<DescribeVideoTaskResponse>>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
/// <summary>
/// 提交完视频审核任务后,可以通过本接口来获取当前处理的进度和结果
/// </summary>
/// <param name="req"><see cref="DescribeVideoTaskRequest"/></param>
/// <returns><see cref="DescribeVideoTaskResponse"/></returns>
public DescribeVideoTaskResponse DescribeVideoTaskSync(DescribeVideoTaskRequest req)
{
JsonResponseModel<DescribeVideoTaskResponse> rsp = null;
try
{
var strResp = this.InternalRequestSync(req, "DescribeVideoTask");
rsp = JsonConvert.DeserializeObject<JsonResponseModel<DescribeVideoTaskResponse>>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
/// <summary>
/// 本接口提供多种维度的图像审核能力,支持色情和性感内容识别,政治人物和涉政敏感场景识别,以及暴恐人物、场景、旗帜标识等违禁内容的识别。
/// </summary>
/// <param name="req"><see cref="ImageModerationRequest"/></param>
/// <returns><see cref="ImageModerationResponse"/></returns>
public async Task<ImageModerationResponse> ImageModeration(ImageModerationRequest req)
{
JsonResponseModel<ImageModerationResponse> rsp = null;
try
{
var strResp = await this.InternalRequest(req, "ImageModeration");
rsp = JsonConvert.DeserializeObject<JsonResponseModel<ImageModerationResponse>>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
/// <summary>
/// 本接口提供多种维度的图像审核能力,支持色情和性感内容识别,政治人物和涉政敏感场景识别,以及暴恐人物、场景、旗帜标识等违禁内容的识别。
/// </summary>
/// <param name="req"><see cref="ImageModerationRequest"/></param>
/// <returns><see cref="ImageModerationResponse"/></returns>
public ImageModerationResponse ImageModerationSync(ImageModerationRequest req)
{
JsonResponseModel<ImageModerationResponse> rsp = null;
try
{
var strResp = this.InternalRequestSync(req, "ImageModeration");
rsp = JsonConvert.DeserializeObject<JsonResponseModel<ImageModerationResponse>>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
/// <summary>
/// 本接口提供多种维度的视频审核能力,支持色情和性感内容识别,政治人物和涉政敏感场景识别,以及暴恐人物、场景、旗帜标识等违禁内容的识别。
/// </summary>
/// <param name="req"><see cref="VideoModerationRequest"/></param>
/// <returns><see cref="VideoModerationResponse"/></returns>
public async Task<VideoModerationResponse> VideoModeration(VideoModerationRequest req)
{
JsonResponseModel<VideoModerationResponse> rsp = null;
try
{
var strResp = await this.InternalRequest(req, "VideoModeration");
rsp = JsonConvert.DeserializeObject<JsonResponseModel<VideoModerationResponse>>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
/// <summary>
/// 本接口提供多种维度的视频审核能力,支持色情和性感内容识别,政治人物和涉政敏感场景识别,以及暴恐人物、场景、旗帜标识等违禁内容的识别。
/// </summary>
/// <param name="req"><see cref="VideoModerationRequest"/></param>
/// <returns><see cref="VideoModerationResponse"/></returns>
public VideoModerationResponse VideoModerationSync(VideoModerationRequest req)
{
JsonResponseModel<VideoModerationResponse> rsp = null;
try
{
var strResp = this.InternalRequestSync(req, "VideoModeration");
rsp = JsonConvert.DeserializeObject<JsonResponseModel<VideoModerationResponse>>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
}
}