首次推送
This commit is contained in:
590
TencentCloud/Bda/V20200324/BdaClient.cs
Normal file
590
TencentCloud/Bda/V20200324/BdaClient.cs
Normal file
@@ -0,0 +1,590 @@
|
||||
/*
|
||||
* 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.Bda.V20200324
|
||||
{
|
||||
|
||||
using Newtonsoft.Json;
|
||||
using System.Threading.Tasks;
|
||||
using TencentCloud.Common;
|
||||
using TencentCloud.Common.Profile;
|
||||
using TencentCloud.Bda.V20200324.Models;
|
||||
|
||||
public class BdaClient : AbstractClient{
|
||||
|
||||
private const string endpoint = "bda.tencentcloudapi.com";
|
||||
private const string version = "2020-03-24";
|
||||
|
||||
/// <summary>
|
||||
/// Client constructor.
|
||||
/// </summary>
|
||||
/// <param name="credential">Credentials.</param>
|
||||
/// <param name="region">Region name, such as "ap-guangzhou".</param>
|
||||
public BdaClient(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 BdaClient(Credential credential, string region, ClientProfile profile)
|
||||
: base(endpoint, version, credential, region, profile)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 用于创建一个空的人体库,如果人体库已存在返回错误。
|
||||
///
|
||||
/// 1个APPID下最多有2000W个人体轨迹(Trace),最多1W个人体库(Group)。
|
||||
///
|
||||
/// 单个人体库(Group)最多10W个人体轨迹(Trace)。
|
||||
///
|
||||
/// 单个人员(Person)最多添加 5 个人体轨迹(Trace)。
|
||||
/// </summary>
|
||||
/// <param name="req"><see cref="CreateGroupRequest"/></param>
|
||||
/// <returns><see cref="CreateGroupResponse"/></returns>
|
||||
public async Task<CreateGroupResponse> CreateGroup(CreateGroupRequest req)
|
||||
{
|
||||
JsonResponseModel<CreateGroupResponse> rsp = null;
|
||||
try
|
||||
{
|
||||
var strResp = await this.InternalRequest(req, "CreateGroup");
|
||||
rsp = JsonConvert.DeserializeObject<JsonResponseModel<CreateGroupResponse>>(strResp);
|
||||
}
|
||||
catch (JsonSerializationException e)
|
||||
{
|
||||
throw new TencentCloudSDKException(e.Message);
|
||||
}
|
||||
return rsp.Response;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 用于创建一个空的人体库,如果人体库已存在返回错误。
|
||||
///
|
||||
/// 1个APPID下最多有2000W个人体轨迹(Trace),最多1W个人体库(Group)。
|
||||
///
|
||||
/// 单个人体库(Group)最多10W个人体轨迹(Trace)。
|
||||
///
|
||||
/// 单个人员(Person)最多添加 5 个人体轨迹(Trace)。
|
||||
/// </summary>
|
||||
/// <param name="req"><see cref="CreateGroupRequest"/></param>
|
||||
/// <returns><see cref="CreateGroupResponse"/></returns>
|
||||
public CreateGroupResponse CreateGroupSync(CreateGroupRequest req)
|
||||
{
|
||||
JsonResponseModel<CreateGroupResponse> rsp = null;
|
||||
try
|
||||
{
|
||||
var strResp = this.InternalRequestSync(req, "CreateGroup");
|
||||
rsp = JsonConvert.DeserializeObject<JsonResponseModel<CreateGroupResponse>>(strResp);
|
||||
}
|
||||
catch (JsonSerializationException e)
|
||||
{
|
||||
throw new TencentCloudSDKException(e.Message);
|
||||
}
|
||||
return rsp.Response;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 创建人员,添加对应人员的人体轨迹信息。
|
||||
///
|
||||
/// 请注意:
|
||||
/// - 我们希望您的输入为 严格符合轨迹图片 要求的图片。如果您输入的图片不符合轨迹图片要求,会对最终效果产生较大负面影响。请您尽量保证一个Trace中的图片人体清晰、无遮挡、连贯;
|
||||
/// - 一个人体轨迹(Trace)可以包含1-5张人体图片。提供越多质量高的人体图片有助于提升最终识别结果;
|
||||
/// - 无论您在单个Trace中提供了多少张人体图片,我们都将生成一个对应的轨迹(Trace)信息。即,Trace仅和本次输入的图片序列相关,和图片的个数无关;
|
||||
/// - 输入的图片组中,若有部分图片输入不合法(如图片大小过大、分辨率过大、无法解码等),我们将舍弃这部分图片,确保合法图片被正确搜索。即,我们将尽可能保证请求成功,去除不合法的输入;
|
||||
/// - 构成人体轨迹单张图片大小不得超过2M,分辨率不得超过1920*1080。
|
||||
/// </summary>
|
||||
/// <param name="req"><see cref="CreatePersonRequest"/></param>
|
||||
/// <returns><see cref="CreatePersonResponse"/></returns>
|
||||
public async Task<CreatePersonResponse> CreatePerson(CreatePersonRequest req)
|
||||
{
|
||||
JsonResponseModel<CreatePersonResponse> rsp = null;
|
||||
try
|
||||
{
|
||||
var strResp = await this.InternalRequest(req, "CreatePerson");
|
||||
rsp = JsonConvert.DeserializeObject<JsonResponseModel<CreatePersonResponse>>(strResp);
|
||||
}
|
||||
catch (JsonSerializationException e)
|
||||
{
|
||||
throw new TencentCloudSDKException(e.Message);
|
||||
}
|
||||
return rsp.Response;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 创建人员,添加对应人员的人体轨迹信息。
|
||||
///
|
||||
/// 请注意:
|
||||
/// - 我们希望您的输入为 严格符合轨迹图片 要求的图片。如果您输入的图片不符合轨迹图片要求,会对最终效果产生较大负面影响。请您尽量保证一个Trace中的图片人体清晰、无遮挡、连贯;
|
||||
/// - 一个人体轨迹(Trace)可以包含1-5张人体图片。提供越多质量高的人体图片有助于提升最终识别结果;
|
||||
/// - 无论您在单个Trace中提供了多少张人体图片,我们都将生成一个对应的轨迹(Trace)信息。即,Trace仅和本次输入的图片序列相关,和图片的个数无关;
|
||||
/// - 输入的图片组中,若有部分图片输入不合法(如图片大小过大、分辨率过大、无法解码等),我们将舍弃这部分图片,确保合法图片被正确搜索。即,我们将尽可能保证请求成功,去除不合法的输入;
|
||||
/// - 构成人体轨迹单张图片大小不得超过2M,分辨率不得超过1920*1080。
|
||||
/// </summary>
|
||||
/// <param name="req"><see cref="CreatePersonRequest"/></param>
|
||||
/// <returns><see cref="CreatePersonResponse"/></returns>
|
||||
public CreatePersonResponse CreatePersonSync(CreatePersonRequest req)
|
||||
{
|
||||
JsonResponseModel<CreatePersonResponse> rsp = null;
|
||||
try
|
||||
{
|
||||
var strResp = this.InternalRequestSync(req, "CreatePerson");
|
||||
rsp = JsonConvert.DeserializeObject<JsonResponseModel<CreatePersonResponse>>(strResp);
|
||||
}
|
||||
catch (JsonSerializationException e)
|
||||
{
|
||||
throw new TencentCloudSDKException(e.Message);
|
||||
}
|
||||
return rsp.Response;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 将一个人体轨迹添加到一个人员中。一个人员最多允许包含 5 个人体轨迹。同一人的人体轨迹越多,搜索识别效果越好。
|
||||
///
|
||||
/// >请注意:
|
||||
/// - 我们希望您的输入为 严格符合轨迹图片 要求的图片。如果您输入的图片不符合轨迹图片要求,会对最终效果产生较大负面影响。请您尽量保证一个Trace中的图片人体清晰、无遮挡、连贯。
|
||||
/// - 一个人体轨迹(Trace)可以包含1-5张人体图片。提供越多质量高的人体图片有助于提升最终识别结果。
|
||||
/// - 无论您在单个Trace中提供了多少张人体图片,我们都将生成一个对应的轨迹(Trace)信息。即,Trace仅和本次输入的图片序列相关,和图片的个数无关。
|
||||
/// - 输入的图片组中,若有部分图片输入不合法(如图片大小过大、分辨率过大、无法解码等),我们将舍弃这部分图片,确保合法图片被正确搜索。即,我们将尽可能保证请求成功,去除不合法的输入;
|
||||
/// - 构成人体轨迹单张图片大小限制为2M,分辨率限制为1920*1080。
|
||||
/// </summary>
|
||||
/// <param name="req"><see cref="CreateTraceRequest"/></param>
|
||||
/// <returns><see cref="CreateTraceResponse"/></returns>
|
||||
public async Task<CreateTraceResponse> CreateTrace(CreateTraceRequest req)
|
||||
{
|
||||
JsonResponseModel<CreateTraceResponse> rsp = null;
|
||||
try
|
||||
{
|
||||
var strResp = await this.InternalRequest(req, "CreateTrace");
|
||||
rsp = JsonConvert.DeserializeObject<JsonResponseModel<CreateTraceResponse>>(strResp);
|
||||
}
|
||||
catch (JsonSerializationException e)
|
||||
{
|
||||
throw new TencentCloudSDKException(e.Message);
|
||||
}
|
||||
return rsp.Response;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 将一个人体轨迹添加到一个人员中。一个人员最多允许包含 5 个人体轨迹。同一人的人体轨迹越多,搜索识别效果越好。
|
||||
///
|
||||
/// >请注意:
|
||||
/// - 我们希望您的输入为 严格符合轨迹图片 要求的图片。如果您输入的图片不符合轨迹图片要求,会对最终效果产生较大负面影响。请您尽量保证一个Trace中的图片人体清晰、无遮挡、连贯。
|
||||
/// - 一个人体轨迹(Trace)可以包含1-5张人体图片。提供越多质量高的人体图片有助于提升最终识别结果。
|
||||
/// - 无论您在单个Trace中提供了多少张人体图片,我们都将生成一个对应的轨迹(Trace)信息。即,Trace仅和本次输入的图片序列相关,和图片的个数无关。
|
||||
/// - 输入的图片组中,若有部分图片输入不合法(如图片大小过大、分辨率过大、无法解码等),我们将舍弃这部分图片,确保合法图片被正确搜索。即,我们将尽可能保证请求成功,去除不合法的输入;
|
||||
/// - 构成人体轨迹单张图片大小限制为2M,分辨率限制为1920*1080。
|
||||
/// </summary>
|
||||
/// <param name="req"><see cref="CreateTraceRequest"/></param>
|
||||
/// <returns><see cref="CreateTraceResponse"/></returns>
|
||||
public CreateTraceResponse CreateTraceSync(CreateTraceRequest req)
|
||||
{
|
||||
JsonResponseModel<CreateTraceResponse> rsp = null;
|
||||
try
|
||||
{
|
||||
var strResp = this.InternalRequestSync(req, "CreateTrace");
|
||||
rsp = JsonConvert.DeserializeObject<JsonResponseModel<CreateTraceResponse>>(strResp);
|
||||
}
|
||||
catch (JsonSerializationException e)
|
||||
{
|
||||
throw new TencentCloudSDKException(e.Message);
|
||||
}
|
||||
return rsp.Response;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 删除该人体库及包含的所有的人员。
|
||||
/// </summary>
|
||||
/// <param name="req"><see cref="DeleteGroupRequest"/></param>
|
||||
/// <returns><see cref="DeleteGroupResponse"/></returns>
|
||||
public async Task<DeleteGroupResponse> DeleteGroup(DeleteGroupRequest req)
|
||||
{
|
||||
JsonResponseModel<DeleteGroupResponse> rsp = null;
|
||||
try
|
||||
{
|
||||
var strResp = await this.InternalRequest(req, "DeleteGroup");
|
||||
rsp = JsonConvert.DeserializeObject<JsonResponseModel<DeleteGroupResponse>>(strResp);
|
||||
}
|
||||
catch (JsonSerializationException e)
|
||||
{
|
||||
throw new TencentCloudSDKException(e.Message);
|
||||
}
|
||||
return rsp.Response;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 删除该人体库及包含的所有的人员。
|
||||
/// </summary>
|
||||
/// <param name="req"><see cref="DeleteGroupRequest"/></param>
|
||||
/// <returns><see cref="DeleteGroupResponse"/></returns>
|
||||
public DeleteGroupResponse DeleteGroupSync(DeleteGroupRequest req)
|
||||
{
|
||||
JsonResponseModel<DeleteGroupResponse> rsp = null;
|
||||
try
|
||||
{
|
||||
var strResp = this.InternalRequestSync(req, "DeleteGroup");
|
||||
rsp = JsonConvert.DeserializeObject<JsonResponseModel<DeleteGroupResponse>>(strResp);
|
||||
}
|
||||
catch (JsonSerializationException e)
|
||||
{
|
||||
throw new TencentCloudSDKException(e.Message);
|
||||
}
|
||||
return rsp.Response;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 删除人员。
|
||||
/// </summary>
|
||||
/// <param name="req"><see cref="DeletePersonRequest"/></param>
|
||||
/// <returns><see cref="DeletePersonResponse"/></returns>
|
||||
public async Task<DeletePersonResponse> DeletePerson(DeletePersonRequest req)
|
||||
{
|
||||
JsonResponseModel<DeletePersonResponse> rsp = null;
|
||||
try
|
||||
{
|
||||
var strResp = await this.InternalRequest(req, "DeletePerson");
|
||||
rsp = JsonConvert.DeserializeObject<JsonResponseModel<DeletePersonResponse>>(strResp);
|
||||
}
|
||||
catch (JsonSerializationException e)
|
||||
{
|
||||
throw new TencentCloudSDKException(e.Message);
|
||||
}
|
||||
return rsp.Response;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 删除人员。
|
||||
/// </summary>
|
||||
/// <param name="req"><see cref="DeletePersonRequest"/></param>
|
||||
/// <returns><see cref="DeletePersonResponse"/></returns>
|
||||
public DeletePersonResponse DeletePersonSync(DeletePersonRequest req)
|
||||
{
|
||||
JsonResponseModel<DeletePersonResponse> rsp = null;
|
||||
try
|
||||
{
|
||||
var strResp = this.InternalRequestSync(req, "DeletePerson");
|
||||
rsp = JsonConvert.DeserializeObject<JsonResponseModel<DeletePersonResponse>>(strResp);
|
||||
}
|
||||
catch (JsonSerializationException e)
|
||||
{
|
||||
throw new TencentCloudSDKException(e.Message);
|
||||
}
|
||||
return rsp.Response;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 检测给定图片中的人体(Body)的位置信息(属性信息将在后续开放)。
|
||||
/// </summary>
|
||||
/// <param name="req"><see cref="DetectBodyRequest"/></param>
|
||||
/// <returns><see cref="DetectBodyResponse"/></returns>
|
||||
public async Task<DetectBodyResponse> DetectBody(DetectBodyRequest req)
|
||||
{
|
||||
JsonResponseModel<DetectBodyResponse> rsp = null;
|
||||
try
|
||||
{
|
||||
var strResp = await this.InternalRequest(req, "DetectBody");
|
||||
rsp = JsonConvert.DeserializeObject<JsonResponseModel<DetectBodyResponse>>(strResp);
|
||||
}
|
||||
catch (JsonSerializationException e)
|
||||
{
|
||||
throw new TencentCloudSDKException(e.Message);
|
||||
}
|
||||
return rsp.Response;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 检测给定图片中的人体(Body)的位置信息(属性信息将在后续开放)。
|
||||
/// </summary>
|
||||
/// <param name="req"><see cref="DetectBodyRequest"/></param>
|
||||
/// <returns><see cref="DetectBodyResponse"/></returns>
|
||||
public DetectBodyResponse DetectBodySync(DetectBodyRequest req)
|
||||
{
|
||||
JsonResponseModel<DetectBodyResponse> rsp = null;
|
||||
try
|
||||
{
|
||||
var strResp = this.InternalRequestSync(req, "DetectBody");
|
||||
rsp = JsonConvert.DeserializeObject<JsonResponseModel<DetectBodyResponse>>(strResp);
|
||||
}
|
||||
catch (JsonSerializationException e)
|
||||
{
|
||||
throw new TencentCloudSDKException(e.Message);
|
||||
}
|
||||
return rsp.Response;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取人体库列表。
|
||||
/// </summary>
|
||||
/// <param name="req"><see cref="GetGroupListRequest"/></param>
|
||||
/// <returns><see cref="GetGroupListResponse"/></returns>
|
||||
public async Task<GetGroupListResponse> GetGroupList(GetGroupListRequest req)
|
||||
{
|
||||
JsonResponseModel<GetGroupListResponse> rsp = null;
|
||||
try
|
||||
{
|
||||
var strResp = await this.InternalRequest(req, "GetGroupList");
|
||||
rsp = JsonConvert.DeserializeObject<JsonResponseModel<GetGroupListResponse>>(strResp);
|
||||
}
|
||||
catch (JsonSerializationException e)
|
||||
{
|
||||
throw new TencentCloudSDKException(e.Message);
|
||||
}
|
||||
return rsp.Response;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取人体库列表。
|
||||
/// </summary>
|
||||
/// <param name="req"><see cref="GetGroupListRequest"/></param>
|
||||
/// <returns><see cref="GetGroupListResponse"/></returns>
|
||||
public GetGroupListResponse GetGroupListSync(GetGroupListRequest req)
|
||||
{
|
||||
JsonResponseModel<GetGroupListResponse> rsp = null;
|
||||
try
|
||||
{
|
||||
var strResp = this.InternalRequestSync(req, "GetGroupList");
|
||||
rsp = JsonConvert.DeserializeObject<JsonResponseModel<GetGroupListResponse>>(strResp);
|
||||
}
|
||||
catch (JsonSerializationException e)
|
||||
{
|
||||
throw new TencentCloudSDKException(e.Message);
|
||||
}
|
||||
return rsp.Response;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取指定人体库中的人员列表。
|
||||
/// </summary>
|
||||
/// <param name="req"><see cref="GetPersonListRequest"/></param>
|
||||
/// <returns><see cref="GetPersonListResponse"/></returns>
|
||||
public async Task<GetPersonListResponse> GetPersonList(GetPersonListRequest req)
|
||||
{
|
||||
JsonResponseModel<GetPersonListResponse> rsp = null;
|
||||
try
|
||||
{
|
||||
var strResp = await this.InternalRequest(req, "GetPersonList");
|
||||
rsp = JsonConvert.DeserializeObject<JsonResponseModel<GetPersonListResponse>>(strResp);
|
||||
}
|
||||
catch (JsonSerializationException e)
|
||||
{
|
||||
throw new TencentCloudSDKException(e.Message);
|
||||
}
|
||||
return rsp.Response;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取指定人体库中的人员列表。
|
||||
/// </summary>
|
||||
/// <param name="req"><see cref="GetPersonListRequest"/></param>
|
||||
/// <returns><see cref="GetPersonListResponse"/></returns>
|
||||
public GetPersonListResponse GetPersonListSync(GetPersonListRequest req)
|
||||
{
|
||||
JsonResponseModel<GetPersonListResponse> rsp = null;
|
||||
try
|
||||
{
|
||||
var strResp = this.InternalRequestSync(req, "GetPersonList");
|
||||
rsp = JsonConvert.DeserializeObject<JsonResponseModel<GetPersonListResponse>>(strResp);
|
||||
}
|
||||
catch (JsonSerializationException e)
|
||||
{
|
||||
throw new TencentCloudSDKException(e.Message);
|
||||
}
|
||||
return rsp.Response;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 修改人体库名称、备注。
|
||||
/// </summary>
|
||||
/// <param name="req"><see cref="ModifyGroupRequest"/></param>
|
||||
/// <returns><see cref="ModifyGroupResponse"/></returns>
|
||||
public async Task<ModifyGroupResponse> ModifyGroup(ModifyGroupRequest req)
|
||||
{
|
||||
JsonResponseModel<ModifyGroupResponse> rsp = null;
|
||||
try
|
||||
{
|
||||
var strResp = await this.InternalRequest(req, "ModifyGroup");
|
||||
rsp = JsonConvert.DeserializeObject<JsonResponseModel<ModifyGroupResponse>>(strResp);
|
||||
}
|
||||
catch (JsonSerializationException e)
|
||||
{
|
||||
throw new TencentCloudSDKException(e.Message);
|
||||
}
|
||||
return rsp.Response;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 修改人体库名称、备注。
|
||||
/// </summary>
|
||||
/// <param name="req"><see cref="ModifyGroupRequest"/></param>
|
||||
/// <returns><see cref="ModifyGroupResponse"/></returns>
|
||||
public ModifyGroupResponse ModifyGroupSync(ModifyGroupRequest req)
|
||||
{
|
||||
JsonResponseModel<ModifyGroupResponse> rsp = null;
|
||||
try
|
||||
{
|
||||
var strResp = this.InternalRequestSync(req, "ModifyGroup");
|
||||
rsp = JsonConvert.DeserializeObject<JsonResponseModel<ModifyGroupResponse>>(strResp);
|
||||
}
|
||||
catch (JsonSerializationException e)
|
||||
{
|
||||
throw new TencentCloudSDKException(e.Message);
|
||||
}
|
||||
return rsp.Response;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 修改人员信息。
|
||||
/// </summary>
|
||||
/// <param name="req"><see cref="ModifyPersonInfoRequest"/></param>
|
||||
/// <returns><see cref="ModifyPersonInfoResponse"/></returns>
|
||||
public async Task<ModifyPersonInfoResponse> ModifyPersonInfo(ModifyPersonInfoRequest req)
|
||||
{
|
||||
JsonResponseModel<ModifyPersonInfoResponse> rsp = null;
|
||||
try
|
||||
{
|
||||
var strResp = await this.InternalRequest(req, "ModifyPersonInfo");
|
||||
rsp = JsonConvert.DeserializeObject<JsonResponseModel<ModifyPersonInfoResponse>>(strResp);
|
||||
}
|
||||
catch (JsonSerializationException e)
|
||||
{
|
||||
throw new TencentCloudSDKException(e.Message);
|
||||
}
|
||||
return rsp.Response;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 修改人员信息。
|
||||
/// </summary>
|
||||
/// <param name="req"><see cref="ModifyPersonInfoRequest"/></param>
|
||||
/// <returns><see cref="ModifyPersonInfoResponse"/></returns>
|
||||
public ModifyPersonInfoResponse ModifyPersonInfoSync(ModifyPersonInfoRequest req)
|
||||
{
|
||||
JsonResponseModel<ModifyPersonInfoResponse> rsp = null;
|
||||
try
|
||||
{
|
||||
var strResp = this.InternalRequestSync(req, "ModifyPersonInfo");
|
||||
rsp = JsonConvert.DeserializeObject<JsonResponseModel<ModifyPersonInfoResponse>>(strResp);
|
||||
}
|
||||
catch (JsonSerializationException e)
|
||||
{
|
||||
throw new TencentCloudSDKException(e.Message);
|
||||
}
|
||||
return rsp.Response;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 本接口用于对一组待识别的人体轨迹(Trace)图片,在人体库中识别出最相似的 TopK 人体,按照相似度从大到小排列。
|
||||
///
|
||||
/// 人体轨迹(Trace)图片要求:图片中当且仅包含一个人体。人体完整、无遮挡。
|
||||
///
|
||||
/// > 请注意:
|
||||
/// - 我们希望您的输入为严格符合轨迹图片要求的图片。如果您输入的图片不符合轨迹图片要求,会对最终效果产生较大负面影响;
|
||||
/// - 人体轨迹,是一个包含1-5张图片的图片序列。您可以输入1张图片作为轨迹,也可以输入多张。单个轨迹中包含越多符合质量的图片,搜索效果越好。
|
||||
/// - 构成人体轨迹单张图片大小不得超过2M,分辨率不得超过1920*1080。
|
||||
/// </summary>
|
||||
/// <param name="req"><see cref="SearchTraceRequest"/></param>
|
||||
/// <returns><see cref="SearchTraceResponse"/></returns>
|
||||
public async Task<SearchTraceResponse> SearchTrace(SearchTraceRequest req)
|
||||
{
|
||||
JsonResponseModel<SearchTraceResponse> rsp = null;
|
||||
try
|
||||
{
|
||||
var strResp = await this.InternalRequest(req, "SearchTrace");
|
||||
rsp = JsonConvert.DeserializeObject<JsonResponseModel<SearchTraceResponse>>(strResp);
|
||||
}
|
||||
catch (JsonSerializationException e)
|
||||
{
|
||||
throw new TencentCloudSDKException(e.Message);
|
||||
}
|
||||
return rsp.Response;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 本接口用于对一组待识别的人体轨迹(Trace)图片,在人体库中识别出最相似的 TopK 人体,按照相似度从大到小排列。
|
||||
///
|
||||
/// 人体轨迹(Trace)图片要求:图片中当且仅包含一个人体。人体完整、无遮挡。
|
||||
///
|
||||
/// > 请注意:
|
||||
/// - 我们希望您的输入为严格符合轨迹图片要求的图片。如果您输入的图片不符合轨迹图片要求,会对最终效果产生较大负面影响;
|
||||
/// - 人体轨迹,是一个包含1-5张图片的图片序列。您可以输入1张图片作为轨迹,也可以输入多张。单个轨迹中包含越多符合质量的图片,搜索效果越好。
|
||||
/// - 构成人体轨迹单张图片大小不得超过2M,分辨率不得超过1920*1080。
|
||||
/// </summary>
|
||||
/// <param name="req"><see cref="SearchTraceRequest"/></param>
|
||||
/// <returns><see cref="SearchTraceResponse"/></returns>
|
||||
public SearchTraceResponse SearchTraceSync(SearchTraceRequest req)
|
||||
{
|
||||
JsonResponseModel<SearchTraceResponse> rsp = null;
|
||||
try
|
||||
{
|
||||
var strResp = this.InternalRequestSync(req, "SearchTrace");
|
||||
rsp = JsonConvert.DeserializeObject<JsonResponseModel<SearchTraceResponse>>(strResp);
|
||||
}
|
||||
catch (JsonSerializationException e)
|
||||
{
|
||||
throw new TencentCloudSDKException(e.Message);
|
||||
}
|
||||
return rsp.Response;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 识别传入图片中人体的完整轮廓,进行抠像。
|
||||
/// </summary>
|
||||
/// <param name="req"><see cref="SegmentPortraitPicRequest"/></param>
|
||||
/// <returns><see cref="SegmentPortraitPicResponse"/></returns>
|
||||
public async Task<SegmentPortraitPicResponse> SegmentPortraitPic(SegmentPortraitPicRequest req)
|
||||
{
|
||||
JsonResponseModel<SegmentPortraitPicResponse> rsp = null;
|
||||
try
|
||||
{
|
||||
var strResp = await this.InternalRequest(req, "SegmentPortraitPic");
|
||||
rsp = JsonConvert.DeserializeObject<JsonResponseModel<SegmentPortraitPicResponse>>(strResp);
|
||||
}
|
||||
catch (JsonSerializationException e)
|
||||
{
|
||||
throw new TencentCloudSDKException(e.Message);
|
||||
}
|
||||
return rsp.Response;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 识别传入图片中人体的完整轮廓,进行抠像。
|
||||
/// </summary>
|
||||
/// <param name="req"><see cref="SegmentPortraitPicRequest"/></param>
|
||||
/// <returns><see cref="SegmentPortraitPicResponse"/></returns>
|
||||
public SegmentPortraitPicResponse SegmentPortraitPicSync(SegmentPortraitPicRequest req)
|
||||
{
|
||||
JsonResponseModel<SegmentPortraitPicResponse> rsp = null;
|
||||
try
|
||||
{
|
||||
var strResp = this.InternalRequestSync(req, "SegmentPortraitPic");
|
||||
rsp = JsonConvert.DeserializeObject<JsonResponseModel<SegmentPortraitPicResponse>>(strResp);
|
||||
}
|
||||
catch (JsonSerializationException e)
|
||||
{
|
||||
throw new TencentCloudSDKException(e.Message);
|
||||
}
|
||||
return rsp.Response;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
52
TencentCloud/Bda/V20200324/Models/BodyDetectResult.cs
Normal file
52
TencentCloud/Bda/V20200324/Models/BodyDetectResult.cs
Normal file
@@ -0,0 +1,52 @@
|
||||
/*
|
||||
* 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.Bda.V20200324.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class BodyDetectResult : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 检测出的人体置信度。
|
||||
/// 误识率百分之十对应的阈值是0.14;误识率百分之五对应的阈值是0.32;误识率百分之二对应的阈值是0.62;误识率百分之一对应的阈值是0.81。
|
||||
/// 通常情况建议使用阈值0.32,可适用大多数情况。
|
||||
/// </summary>
|
||||
[JsonProperty("Confidence")]
|
||||
public float? Confidence{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 图中检测出来的人体框
|
||||
/// </summary>
|
||||
[JsonProperty("BodyRect")]
|
||||
public BodyRect BodyRect{ 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.SetParamObj(map, prefix + "BodyRect.", this.BodyRect);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
64
TencentCloud/Bda/V20200324/Models/BodyRect.cs
Normal file
64
TencentCloud/Bda/V20200324/Models/BodyRect.cs
Normal 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.Bda.V20200324.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class BodyRect : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 人体框左上角横坐标。
|
||||
/// </summary>
|
||||
[JsonProperty("X")]
|
||||
public ulong? X{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 人体框左上角纵坐标。
|
||||
/// </summary>
|
||||
[JsonProperty("Y")]
|
||||
public ulong? Y{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 人体宽度。
|
||||
/// </summary>
|
||||
[JsonProperty("Width")]
|
||||
public ulong? Width{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 人体高度。
|
||||
/// </summary>
|
||||
[JsonProperty("Height")]
|
||||
public ulong? 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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
62
TencentCloud/Bda/V20200324/Models/Candidate.cs
Normal file
62
TencentCloud/Bda/V20200324/Models/Candidate.cs
Normal file
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* 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.Bda.V20200324.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class Candidate : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 人员ID。
|
||||
/// </summary>
|
||||
[JsonProperty("PersonId")]
|
||||
public string PersonId{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 人体轨迹ID。
|
||||
/// </summary>
|
||||
[JsonProperty("TraceId")]
|
||||
public string TraceId{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 候选者的匹配得分。
|
||||
/// 十万人体库下,误识率百分之五对应的分数为70分;误识率百分之二对应的分数为80分;误识率百分之一对应的分数为90分。
|
||||
///
|
||||
/// 二十万人体库下,误识率百分之五对应的分数为80分;误识率百分之二对应的分数为90分;误识率百分之一对应的分数为95分。
|
||||
///
|
||||
/// 通常情况建议使用分数80分(保召回)。若希望获得较高精度,建议使用分数90分(保准确)。
|
||||
/// </summary>
|
||||
[JsonProperty("Score")]
|
||||
public float? Score{ 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 + "PersonId", this.PersonId);
|
||||
this.SetParamSimple(map, prefix + "TraceId", this.TraceId);
|
||||
this.SetParamSimple(map, prefix + "Score", this.Score);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
66
TencentCloud/Bda/V20200324/Models/CreateGroupRequest.cs
Normal file
66
TencentCloud/Bda/V20200324/Models/CreateGroupRequest.cs
Normal file
@@ -0,0 +1,66 @@
|
||||
/*
|
||||
* 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.Bda.V20200324.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class CreateGroupRequest : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 人体库名称,[1,60]个字符,可修改,不可重复。
|
||||
/// </summary>
|
||||
[JsonProperty("GroupName")]
|
||||
public string GroupName{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 人体库 ID,不可修改,不可重复。支持英文、数字、-%@#&_,长度限制64B。
|
||||
/// </summary>
|
||||
[JsonProperty("GroupId")]
|
||||
public string GroupId{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 人体库信息备注,[0,40]个字符。
|
||||
/// </summary>
|
||||
[JsonProperty("Tag")]
|
||||
public string Tag{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 人体识别所用的算法模型版本。
|
||||
/// 目前入参仅支持 “1.0”1个输入。 默认为"1.0"。
|
||||
/// 不同算法模型版本对应的人体识别算法不同,新版本的整体效果会优于旧版本,后续我们将推出更新版本。
|
||||
/// </summary>
|
||||
[JsonProperty("BodyModelVersion")]
|
||||
public string BodyModelVersion{ 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 + "GroupName", this.GroupName);
|
||||
this.SetParamSimple(map, prefix + "GroupId", this.GroupId);
|
||||
this.SetParamSimple(map, prefix + "Tag", this.Tag);
|
||||
this.SetParamSimple(map, prefix + "BodyModelVersion", this.BodyModelVersion);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
43
TencentCloud/Bda/V20200324/Models/CreateGroupResponse.cs
Normal file
43
TencentCloud/Bda/V20200324/Models/CreateGroupResponse.cs
Normal 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.Bda.V20200324.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class CreateGroupResponse : AbstractModel
|
||||
{
|
||||
|
||||
/// <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 + "RequestId", this.RequestId);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
65
TencentCloud/Bda/V20200324/Models/CreatePersonRequest.cs
Normal file
65
TencentCloud/Bda/V20200324/Models/CreatePersonRequest.cs
Normal file
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* 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.Bda.V20200324.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class CreatePersonRequest : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 待加入的人员库ID。
|
||||
/// </summary>
|
||||
[JsonProperty("GroupId")]
|
||||
public string GroupId{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 人员名称。[1,60]个字符,可修改,可重复。
|
||||
/// </summary>
|
||||
[JsonProperty("PersonName")]
|
||||
public string PersonName{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 人员ID,单个腾讯云账号下不可修改,不可重复。
|
||||
/// 支持英文、数字、-%@#&_,,长度限制64B。
|
||||
/// </summary>
|
||||
[JsonProperty("PersonId")]
|
||||
public string PersonId{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 人体轨迹信息。
|
||||
/// </summary>
|
||||
[JsonProperty("Trace")]
|
||||
public Trace Trace{ 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 + "GroupId", this.GroupId);
|
||||
this.SetParamSimple(map, prefix + "PersonName", this.PersonName);
|
||||
this.SetParamSimple(map, prefix + "PersonId", this.PersonId);
|
||||
this.SetParamObj(map, prefix + "Trace.", this.Trace);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
75
TencentCloud/Bda/V20200324/Models/CreatePersonResponse.cs
Normal file
75
TencentCloud/Bda/V20200324/Models/CreatePersonResponse.cs
Normal file
@@ -0,0 +1,75 @@
|
||||
/*
|
||||
* 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.Bda.V20200324.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class CreatePersonResponse : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 人员轨迹唯一标识。
|
||||
/// </summary>
|
||||
[JsonProperty("TraceId")]
|
||||
public string TraceId{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 人体识别所用的算法模型版本。
|
||||
/// </summary>
|
||||
[JsonProperty("BodyModelVersion")]
|
||||
public string BodyModelVersion{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 输入的人体轨迹图片中的合法性校验结果。
|
||||
/// 只有为0时结果才有意义。
|
||||
/// -1001: 输入图片不合法。-1002: 输入图片不能构成轨迹。
|
||||
/// </summary>
|
||||
[JsonProperty("InputRetCode")]
|
||||
public long? InputRetCode{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 输入的人体轨迹图片中的合法性校验结果详情。
|
||||
/// -1101:图片无效,-1102:url不合法。-1103:图片过大。-1104:图片下载失败。-1105:图片解码失败。-1109:图片分辨率过高。-2023:轨迹中有非同人图片。-2024: 轨迹提取失败。-2025: 人体检测失败。
|
||||
/// RetCode 的顺序和入参中Images 或 Urls 的顺序一致。
|
||||
/// </summary>
|
||||
[JsonProperty("InputRetCodeDetails")]
|
||||
public long?[] InputRetCodeDetails{ 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 + "TraceId", this.TraceId);
|
||||
this.SetParamSimple(map, prefix + "BodyModelVersion", this.BodyModelVersion);
|
||||
this.SetParamSimple(map, prefix + "InputRetCode", this.InputRetCode);
|
||||
this.SetParamArraySimple(map, prefix + "InputRetCodeDetails.", this.InputRetCodeDetails);
|
||||
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
50
TencentCloud/Bda/V20200324/Models/CreateTraceRequest.cs
Normal file
50
TencentCloud/Bda/V20200324/Models/CreateTraceRequest.cs
Normal 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.Bda.V20200324.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class CreateTraceRequest : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 人员ID。
|
||||
/// </summary>
|
||||
[JsonProperty("PersonId")]
|
||||
public string PersonId{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 人体轨迹信息。
|
||||
/// </summary>
|
||||
[JsonProperty("Trace")]
|
||||
public Trace Trace{ 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 + "PersonId", this.PersonId);
|
||||
this.SetParamObj(map, prefix + "Trace.", this.Trace);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
74
TencentCloud/Bda/V20200324/Models/CreateTraceResponse.cs
Normal file
74
TencentCloud/Bda/V20200324/Models/CreateTraceResponse.cs
Normal file
@@ -0,0 +1,74 @@
|
||||
/*
|
||||
* 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.Bda.V20200324.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class CreateTraceResponse : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 人员轨迹唯一标识。
|
||||
/// </summary>
|
||||
[JsonProperty("TraceId")]
|
||||
public string TraceId{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 人体识别所用的算法模型版本。
|
||||
/// </summary>
|
||||
[JsonProperty("BodyModelVersion")]
|
||||
public string BodyModelVersion{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 输入的人体轨迹图片中的合法性校验结果。
|
||||
/// 只有为0时结果才有意义。
|
||||
/// -1001: 输入图片不合法。-1002: 输入图片不能构成轨迹。
|
||||
/// </summary>
|
||||
[JsonProperty("InputRetCode")]
|
||||
public long? InputRetCode{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 输入的人体轨迹图片中的合法性校验结果详情。
|
||||
/// -1101:图片无效,-1102:url不合法。-1103:图片过大。-1104:图片下载失败。-1105:图片解码失败。-1109:图片分辨率过高。-2023:轨迹中有非同人图片。-2024: 轨迹提取失败。-2025: 人体检测失败。
|
||||
/// </summary>
|
||||
[JsonProperty("InputRetCodeDetails")]
|
||||
public long?[] InputRetCodeDetails{ 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 + "TraceId", this.TraceId);
|
||||
this.SetParamSimple(map, prefix + "BodyModelVersion", this.BodyModelVersion);
|
||||
this.SetParamSimple(map, prefix + "InputRetCode", this.InputRetCode);
|
||||
this.SetParamArraySimple(map, prefix + "InputRetCodeDetails.", this.InputRetCodeDetails);
|
||||
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
43
TencentCloud/Bda/V20200324/Models/DeleteGroupRequest.cs
Normal file
43
TencentCloud/Bda/V20200324/Models/DeleteGroupRequest.cs
Normal 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.Bda.V20200324.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class DeleteGroupRequest : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 人体库ID。
|
||||
/// </summary>
|
||||
[JsonProperty("GroupId")]
|
||||
public string GroupId{ 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 + "GroupId", this.GroupId);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
43
TencentCloud/Bda/V20200324/Models/DeleteGroupResponse.cs
Normal file
43
TencentCloud/Bda/V20200324/Models/DeleteGroupResponse.cs
Normal 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.Bda.V20200324.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class DeleteGroupResponse : AbstractModel
|
||||
{
|
||||
|
||||
/// <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 + "RequestId", this.RequestId);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
43
TencentCloud/Bda/V20200324/Models/DeletePersonRequest.cs
Normal file
43
TencentCloud/Bda/V20200324/Models/DeletePersonRequest.cs
Normal 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.Bda.V20200324.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class DeletePersonRequest : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 人员ID。
|
||||
/// </summary>
|
||||
[JsonProperty("PersonId")]
|
||||
public string PersonId{ 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 + "PersonId", this.PersonId);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
43
TencentCloud/Bda/V20200324/Models/DeletePersonResponse.cs
Normal file
43
TencentCloud/Bda/V20200324/Models/DeletePersonResponse.cs
Normal 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.Bda.V20200324.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class DeletePersonResponse : AbstractModel
|
||||
{
|
||||
|
||||
/// <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 + "RequestId", this.RequestId);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
66
TencentCloud/Bda/V20200324/Models/DetectBodyRequest.cs
Normal file
66
TencentCloud/Bda/V20200324/Models/DetectBodyRequest.cs
Normal file
@@ -0,0 +1,66 @@
|
||||
/*
|
||||
* 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.Bda.V20200324.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class DetectBodyRequest : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 人体图片 Base64 数据。
|
||||
/// 图片 base64 编码后大小不可超过5M。
|
||||
/// 图片分辨率不得超过 2048*2048。
|
||||
/// 支持PNG、JPG、JPEG、BMP,不支持 GIF 图片。
|
||||
/// </summary>
|
||||
[JsonProperty("Image")]
|
||||
public string Image{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 人体图片 Url 。
|
||||
/// Url、Image必须提供一个,如果都提供,只使用 Url。
|
||||
/// 图片 base64 编码后大小不可超过5M。
|
||||
/// 图片分辨率不得超过 2048*2048。
|
||||
/// 图片存储于腾讯云的Url可保障更高下载速度和稳定性,建议图片存储于腾讯云。
|
||||
/// 非腾讯云存储的Url速度和稳定性可能受一定影响。
|
||||
/// 支持PNG、JPG、JPEG、BMP,不支持 GIF 图片。
|
||||
/// </summary>
|
||||
[JsonProperty("Url")]
|
||||
public string Url{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 最多检测的人体数目,默认值为1(仅检测图片中面积最大的那个人体); 最大值10 ,检测图片中面积最大的10个人体。
|
||||
/// </summary>
|
||||
[JsonProperty("MaxBodyNum")]
|
||||
public ulong? MaxBodyNum{ 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 + "Image", this.Image);
|
||||
this.SetParamSimple(map, prefix + "Url", this.Url);
|
||||
this.SetParamSimple(map, prefix + "MaxBodyNum", this.MaxBodyNum);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
57
TencentCloud/Bda/V20200324/Models/DetectBodyResponse.cs
Normal file
57
TencentCloud/Bda/V20200324/Models/DetectBodyResponse.cs
Normal file
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* 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.Bda.V20200324.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class DetectBodyResponse : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 图中检测出来的人体框。
|
||||
/// </summary>
|
||||
[JsonProperty("BodyDetectResults")]
|
||||
public BodyDetectResult[] BodyDetectResults{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 人体识别所用的算法模型版本。
|
||||
/// </summary>
|
||||
[JsonProperty("BodyModelVersion")]
|
||||
public string BodyModelVersion{ 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.SetParamArrayObj(map, prefix + "BodyDetectResults.", this.BodyDetectResults);
|
||||
this.SetParamSimple(map, prefix + "BodyModelVersion", this.BodyModelVersion);
|
||||
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
50
TencentCloud/Bda/V20200324/Models/GetGroupListRequest.cs
Normal file
50
TencentCloud/Bda/V20200324/Models/GetGroupListRequest.cs
Normal 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.Bda.V20200324.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class GetGroupListRequest : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 起始序号,默认值为0。
|
||||
/// </summary>
|
||||
[JsonProperty("Offset")]
|
||||
public ulong? Offset{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 返回数量,默认值为10,最大值为1000。
|
||||
/// </summary>
|
||||
[JsonProperty("Limit")]
|
||||
public ulong? Limit{ 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 + "Offset", this.Offset);
|
||||
this.SetParamSimple(map, prefix + "Limit", this.Limit);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
57
TencentCloud/Bda/V20200324/Models/GetGroupListResponse.cs
Normal file
57
TencentCloud/Bda/V20200324/Models/GetGroupListResponse.cs
Normal file
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* 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.Bda.V20200324.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class GetGroupListResponse : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 返回的人体库信息。
|
||||
/// </summary>
|
||||
[JsonProperty("GroupInfos")]
|
||||
public GroupInfo[] GroupInfos{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 人体库总数量。
|
||||
/// </summary>
|
||||
[JsonProperty("GroupNum")]
|
||||
public ulong? GroupNum{ 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.SetParamArrayObj(map, prefix + "GroupInfos.", this.GroupInfos);
|
||||
this.SetParamSimple(map, prefix + "GroupNum", this.GroupNum);
|
||||
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
57
TencentCloud/Bda/V20200324/Models/GetPersonListRequest.cs
Normal file
57
TencentCloud/Bda/V20200324/Models/GetPersonListRequest.cs
Normal file
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* 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.Bda.V20200324.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class GetPersonListRequest : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 人体库ID。
|
||||
/// </summary>
|
||||
[JsonProperty("GroupId")]
|
||||
public string GroupId{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 起始序号,默认值为0。
|
||||
/// </summary>
|
||||
[JsonProperty("Offset")]
|
||||
public ulong? Offset{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 返回数量,默认值为10,最大值为1000。
|
||||
/// </summary>
|
||||
[JsonProperty("Limit")]
|
||||
public ulong? Limit{ 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 + "GroupId", this.GroupId);
|
||||
this.SetParamSimple(map, prefix + "Offset", this.Offset);
|
||||
this.SetParamSimple(map, prefix + "Limit", this.Limit);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
64
TencentCloud/Bda/V20200324/Models/GetPersonListResponse.cs
Normal file
64
TencentCloud/Bda/V20200324/Models/GetPersonListResponse.cs
Normal 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.Bda.V20200324.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class GetPersonListResponse : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 返回的人员信息。
|
||||
/// </summary>
|
||||
[JsonProperty("PersonInfos")]
|
||||
public PersonInfo[] PersonInfos{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 该人体库的人员数量。
|
||||
/// </summary>
|
||||
[JsonProperty("PersonNum")]
|
||||
public ulong? PersonNum{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 人体识别所用的算法模型版本。
|
||||
/// </summary>
|
||||
[JsonProperty("BodyModelVersion")]
|
||||
public string BodyModelVersion{ 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.SetParamArrayObj(map, prefix + "PersonInfos.", this.PersonInfos);
|
||||
this.SetParamSimple(map, prefix + "PersonNum", this.PersonNum);
|
||||
this.SetParamSimple(map, prefix + "BodyModelVersion", this.BodyModelVersion);
|
||||
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
72
TencentCloud/Bda/V20200324/Models/GroupInfo.cs
Normal file
72
TencentCloud/Bda/V20200324/Models/GroupInfo.cs
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* 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.Bda.V20200324.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class GroupInfo : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 人体库名称。
|
||||
/// </summary>
|
||||
[JsonProperty("GroupName")]
|
||||
public string GroupName{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 人体库ID。
|
||||
/// </summary>
|
||||
[JsonProperty("GroupId")]
|
||||
public string GroupId{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 人体库信息备注。
|
||||
/// </summary>
|
||||
[JsonProperty("Tag")]
|
||||
public string Tag{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 人体识别所用的算法模型版本。
|
||||
/// </summary>
|
||||
[JsonProperty("BodyModelVersion")]
|
||||
public string BodyModelVersion{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Group的创建时间和日期 CreationTimestamp。CreationTimestamp 的值是自 Unix 纪元时间到Group创建时间的毫秒数。
|
||||
/// Unix 纪元时间是 1970 年 1 月 1 日星期四,协调世界时 (UTC) 。
|
||||
/// </summary>
|
||||
[JsonProperty("CreationTimestamp")]
|
||||
public ulong? CreationTimestamp{ 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 + "GroupName", this.GroupName);
|
||||
this.SetParamSimple(map, prefix + "GroupId", this.GroupId);
|
||||
this.SetParamSimple(map, prefix + "Tag", this.Tag);
|
||||
this.SetParamSimple(map, prefix + "BodyModelVersion", this.BodyModelVersion);
|
||||
this.SetParamSimple(map, prefix + "CreationTimestamp", this.CreationTimestamp);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
57
TencentCloud/Bda/V20200324/Models/ModifyGroupRequest.cs
Normal file
57
TencentCloud/Bda/V20200324/Models/ModifyGroupRequest.cs
Normal file
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* 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.Bda.V20200324.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class ModifyGroupRequest : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 人体库ID。
|
||||
/// </summary>
|
||||
[JsonProperty("GroupId")]
|
||||
public string GroupId{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 人体库名称。
|
||||
/// </summary>
|
||||
[JsonProperty("GroupName")]
|
||||
public string GroupName{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 人体库信息备注。
|
||||
/// </summary>
|
||||
[JsonProperty("Tag")]
|
||||
public string Tag{ 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 + "GroupId", this.GroupId);
|
||||
this.SetParamSimple(map, prefix + "GroupName", this.GroupName);
|
||||
this.SetParamSimple(map, prefix + "Tag", this.Tag);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
43
TencentCloud/Bda/V20200324/Models/ModifyGroupResponse.cs
Normal file
43
TencentCloud/Bda/V20200324/Models/ModifyGroupResponse.cs
Normal 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.Bda.V20200324.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class ModifyGroupResponse : AbstractModel
|
||||
{
|
||||
|
||||
/// <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 + "RequestId", this.RequestId);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
50
TencentCloud/Bda/V20200324/Models/ModifyPersonInfoRequest.cs
Normal file
50
TencentCloud/Bda/V20200324/Models/ModifyPersonInfoRequest.cs
Normal 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.Bda.V20200324.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class ModifyPersonInfoRequest : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 人员ID。
|
||||
/// </summary>
|
||||
[JsonProperty("PersonId")]
|
||||
public string PersonId{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 人员名称。
|
||||
/// </summary>
|
||||
[JsonProperty("PersonName")]
|
||||
public string PersonName{ 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 + "PersonId", this.PersonId);
|
||||
this.SetParamSimple(map, prefix + "PersonName", this.PersonName);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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.Bda.V20200324.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class ModifyPersonInfoResponse : AbstractModel
|
||||
{
|
||||
|
||||
/// <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 + "RequestId", this.RequestId);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
57
TencentCloud/Bda/V20200324/Models/PersonInfo.cs
Normal file
57
TencentCloud/Bda/V20200324/Models/PersonInfo.cs
Normal file
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* 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.Bda.V20200324.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class PersonInfo : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 人员名称。
|
||||
/// </summary>
|
||||
[JsonProperty("PersonName")]
|
||||
public string PersonName{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 人员ID。
|
||||
/// </summary>
|
||||
[JsonProperty("PersonId")]
|
||||
public string PersonId{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 包含的人体轨迹图片信息列表。
|
||||
/// </summary>
|
||||
[JsonProperty("TraceInfos")]
|
||||
public TraceInfo[] TraceInfos{ 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 + "PersonName", this.PersonName);
|
||||
this.SetParamSimple(map, prefix + "PersonId", this.PersonId);
|
||||
this.SetParamArrayObj(map, prefix + "TraceInfos.", this.TraceInfos);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
67
TencentCloud/Bda/V20200324/Models/SearchTraceRequest.cs
Normal file
67
TencentCloud/Bda/V20200324/Models/SearchTraceRequest.cs
Normal file
@@ -0,0 +1,67 @@
|
||||
/*
|
||||
* 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.Bda.V20200324.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class SearchTraceRequest : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 希望搜索的人体库ID。
|
||||
/// </summary>
|
||||
[JsonProperty("GroupId")]
|
||||
public string GroupId{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 人体轨迹信息。
|
||||
/// </summary>
|
||||
[JsonProperty("Trace")]
|
||||
public Trace Trace{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 单张被识别的人体轨迹返回的最相似人员数量。
|
||||
/// 默认值为5,最大值为100。
|
||||
/// 例,设MaxPersonNum为8,则返回Top8相似的人员信息。 值越大,需要处理的时间越长。建议不要超过10。
|
||||
/// </summary>
|
||||
[JsonProperty("MaxPersonNum")]
|
||||
public ulong? MaxPersonNum{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 出参Score中,只有超过TraceMatchThreshold值的结果才会返回。
|
||||
/// 默认为0。范围[0, 100.0]。
|
||||
/// </summary>
|
||||
[JsonProperty("TraceMatchThreshold")]
|
||||
public float? TraceMatchThreshold{ 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 + "GroupId", this.GroupId);
|
||||
this.SetParamObj(map, prefix + "Trace.", this.Trace);
|
||||
this.SetParamSimple(map, prefix + "MaxPersonNum", this.MaxPersonNum);
|
||||
this.SetParamSimple(map, prefix + "TraceMatchThreshold", this.TraceMatchThreshold);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
74
TencentCloud/Bda/V20200324/Models/SearchTraceResponse.cs
Normal file
74
TencentCloud/Bda/V20200324/Models/SearchTraceResponse.cs
Normal file
@@ -0,0 +1,74 @@
|
||||
/*
|
||||
* 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.Bda.V20200324.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class SearchTraceResponse : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 识别出的最相似候选人。
|
||||
/// </summary>
|
||||
[JsonProperty("Candidates")]
|
||||
public Candidate[] Candidates{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 输入的人体轨迹图片中的合法性校验结果。
|
||||
/// 只有为0时结果才有意义。
|
||||
/// -1001: 输入图片不合法。-1002: 输入图片不能构成轨迹。
|
||||
/// </summary>
|
||||
[JsonProperty("InputRetCode")]
|
||||
public long? InputRetCode{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 输入的人体轨迹图片中的合法性校验结果详情。
|
||||
/// -1101:图片无效,-1102:url不合法。-1103:图片过大。-1104:图片下载失败。-1105:图片解码失败。-1109:图片分辨率过高。-2023:轨迹中有非同人图片。-2024: 轨迹提取失败。-2025: 人体检测失败。
|
||||
/// </summary>
|
||||
[JsonProperty("InputRetCodeDetails")]
|
||||
public long?[] InputRetCodeDetails{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 人体识别所用的算法模型版本。
|
||||
/// </summary>
|
||||
[JsonProperty("BodyModelVersion")]
|
||||
public string BodyModelVersion{ 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.SetParamArrayObj(map, prefix + "Candidates.", this.Candidates);
|
||||
this.SetParamSimple(map, prefix + "InputRetCode", this.InputRetCode);
|
||||
this.SetParamArraySimple(map, prefix + "InputRetCodeDetails.", this.InputRetCodeDetails);
|
||||
this.SetParamSimple(map, prefix + "BodyModelVersion", this.BodyModelVersion);
|
||||
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* 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.Bda.V20200324.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class SegmentPortraitPicRequest : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 图片 base64 数据,base64 编码后大小不可超过5M。
|
||||
/// 图片分辨率须小于2000*2000。
|
||||
/// 支持PNG、JPG、JPEG、BMP,不支持 GIF 图片。
|
||||
/// </summary>
|
||||
[JsonProperty("Image")]
|
||||
public string Image{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 图片的 Url 。
|
||||
/// Url、Image必须提供一个,如果都提供,只使用 Url。
|
||||
/// 图片分辨率须小于2000*2000 ,图片 base64 编码后大小不可超过5M。
|
||||
/// 图片存储于腾讯云的Url可保障更高下载速度和稳定性,建议图片存储于腾讯云。
|
||||
/// 非腾讯云存储的Url速度和稳定性可能受一定影响。
|
||||
/// 支持PNG、JPG、JPEG、BMP,不支持 GIF 图片。
|
||||
/// </summary>
|
||||
[JsonProperty("Url")]
|
||||
public string Url{ 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 + "Image", this.Image);
|
||||
this.SetParamSimple(map, prefix + "Url", this.Url);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* 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.Bda.V20200324.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class SegmentPortraitPicResponse : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 处理后的图片 base64 数据,透明背景图
|
||||
/// </summary>
|
||||
[JsonProperty("ResultImage")]
|
||||
public string ResultImage{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 一个通过 Base64 编码的文件,解码后文件由 Float 型浮点数组成。这些浮点数代表原图从左上角开始的每一行的每一个像素点,每一个浮点数的值是原图相应像素点位于人体轮廓内的置信度(0-1)转化的灰度值(0-255)
|
||||
/// </summary>
|
||||
[JsonProperty("ResultMask")]
|
||||
public string ResultMask{ 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 + "ResultImage", this.ResultImage);
|
||||
this.SetParamSimple(map, prefix + "ResultMask", this.ResultMask);
|
||||
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
69
TencentCloud/Bda/V20200324/Models/Trace.cs
Normal file
69
TencentCloud/Bda/V20200324/Models/Trace.cs
Normal file
@@ -0,0 +1,69 @@
|
||||
/*
|
||||
* 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.Bda.V20200324.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class Trace : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 人体轨迹图片 Base64 数组。
|
||||
/// 数组长度最小为1最大为5。
|
||||
/// 单个图片 base64 编码后大小不可超过2M。
|
||||
/// 支持PNG、JPG、JPEG、BMP,不支持 GIF 图片。
|
||||
/// </summary>
|
||||
[JsonProperty("Images")]
|
||||
public string[] Images{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 人体轨迹图片 Url 数组。
|
||||
/// 数组长度最小为1最大为5。
|
||||
/// 单个图片 base64 编码后大小不可超过2M。
|
||||
/// Urls、Images必须提供一个,如果都提供,只使用 Urls。
|
||||
/// 图片存储于腾讯云的Url可保障更高下载速度和稳定性,建议图片存储于腾讯云。
|
||||
/// 非腾讯云存储的Url速度和稳定性可能受一定影响。
|
||||
/// 支持PNG、JPG、JPEG、BMP,不支持 GIF 图片。
|
||||
/// </summary>
|
||||
[JsonProperty("Urls")]
|
||||
public string[] Urls{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 若输入的Images 和 Urls 是已经裁剪后的人体小图,则可以忽略本参数。
|
||||
/// 若否,或图片中包含多个人体,则需要通过本参数来指定图片中的人体框。
|
||||
/// 顺序对应 Images 或 Urls 中的顺序。
|
||||
/// 当不输入本参数时,我们将认为输入图片已是经过裁剪后的人体小图,不会进行人体检测而直接进行特征提取处理。
|
||||
/// </summary>
|
||||
[JsonProperty("BodyRects")]
|
||||
public BodyRect[] BodyRects{ 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 + "Images.", this.Images);
|
||||
this.SetParamArraySimple(map, prefix + "Urls.", this.Urls);
|
||||
this.SetParamArrayObj(map, prefix + "BodyRects.", this.BodyRects);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
50
TencentCloud/Bda/V20200324/Models/TraceInfo.cs
Normal file
50
TencentCloud/Bda/V20200324/Models/TraceInfo.cs
Normal 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.Bda.V20200324.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class TraceInfo : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 人体轨迹ID。
|
||||
/// </summary>
|
||||
[JsonProperty("TraceId")]
|
||||
public string TraceId{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 包含的人体轨迹图片Id列表。
|
||||
/// </summary>
|
||||
[JsonProperty("BodyIds")]
|
||||
public string[] BodyIds{ 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 + "TraceId", this.TraceId);
|
||||
this.SetParamArraySimple(map, prefix + "BodyIds.", this.BodyIds);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user