Documentation
¶
Index ¶
- Constants
- type Age
- type AttributesOptions
- type Bag
- type BodyAttributeInfo
- type BodyDetectResult
- type BodyRect
- type Candidate
- type Client
- func (c *Client) CreateGroup(request *CreateGroupRequest) (response *CreateGroupResponse, err error)
- func (c *Client) CreatePerson(request *CreatePersonRequest) (response *CreatePersonResponse, err error)
- func (c *Client) CreateTrace(request *CreateTraceRequest) (response *CreateTraceResponse, err error)
- func (c *Client) DeleteGroup(request *DeleteGroupRequest) (response *DeleteGroupResponse, err error)
- func (c *Client) DeletePerson(request *DeletePersonRequest) (response *DeletePersonResponse, err error)
- func (c *Client) DetectBody(request *DetectBodyRequest) (response *DetectBodyResponse, err error)
- func (c *Client) GetGroupList(request *GetGroupListRequest) (response *GetGroupListResponse, err error)
- func (c *Client) GetPersonList(request *GetPersonListRequest) (response *GetPersonListResponse, err error)
- func (c *Client) ModifyGroup(request *ModifyGroupRequest) (response *ModifyGroupResponse, err error)
- func (c *Client) ModifyPersonInfo(request *ModifyPersonInfoRequest) (response *ModifyPersonInfoResponse, err error)
- func (c *Client) SearchTrace(request *SearchTraceRequest) (response *SearchTraceResponse, err error)
- func (c *Client) SegmentPortraitPic(request *SegmentPortraitPicRequest) (response *SegmentPortraitPicResponse, err error)
- type CreateGroupRequest
- type CreateGroupResponse
- type CreatePersonRequest
- type CreatePersonResponse
- type CreateTraceRequest
- type CreateTraceResponse
- type DeleteGroupRequest
- type DeleteGroupResponse
- type DeletePersonRequest
- type DeletePersonResponse
- type DetectBodyRequest
- type DetectBodyResponse
- type Gender
- type GetGroupListRequest
- type GetGroupListResponse
- type GetPersonListRequest
- type GetPersonListResponse
- type GroupInfo
- type LowerBodyCloth
- type LowerBodyClothColor
- type LowerBodyClothLength
- type LowerBodyClothType
- type ModifyGroupRequest
- type ModifyGroupResponse
- type ModifyPersonInfoRequest
- type ModifyPersonInfoResponse
- type Orientation
- type PersonInfo
- type SearchTraceRequest
- type SearchTraceResponse
- type SegmentPortraitPicRequest
- type SegmentPortraitPicResponse
- type Trace
- type TraceInfo
- type UpperBodyCloth
- type UpperBodyClothColor
- type UpperBodyClothSleeve
- type UpperBodyClothTexture
Constants ¶
const APIVersion = "2020-03-24"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AttributesOptions ¶
type AttributesOptions struct {
// 返回年龄信息
Age *bool `json:"Age,omitempty" name:"Age"`
// 返回随身挎包信息
Bag *bool `json:"Bag,omitempty" name:"Bag"`
// 返回性别信息
Gender *bool `json:"Gender,omitempty" name:"Gender"`
// 返回朝向信息
Orientation *bool `json:"Orientation,omitempty" name:"Orientation"`
// 返回上装信息
UpperBodyCloth *bool `json:"UpperBodyCloth,omitempty" name:"UpperBodyCloth"`
// 返回下装信息
LowerBodyCloth *bool `json:"LowerBodyCloth,omitempty" name:"LowerBodyCloth"`
}
type BodyAttributeInfo ¶
type BodyAttributeInfo struct {
// 人体年龄信息。
// AttributesType 不含 Age 或检测超过 5 个人体时,此参数仍返回,但不具备参考意义。
// 注意:此字段可能返回 null,表示取不到有效值。
Age *Age `json:"Age,omitempty" name:"Age"`
// 人体是否挎包。
// AttributesType 不含 Bag 或检测超过 5 个人体时,此参数仍返回,但不具备参考意义。
// 注意:此字段可能返回 null,表示取不到有效值。
Bag *Bag `json:"Bag,omitempty" name:"Bag"`
// 人体性别信息。
// AttributesType 不含 Gender 或检测超过 5 个人体时,此参数仍返回,但不具备参考意义。
// 注意:此字段可能返回 null,表示取不到有效值。
Gender *Gender `json:"Gender,omitempty" name:"Gender"`
// 人体朝向信息。
// AttributesType 不含 UpperBodyCloth 或检测超过 5 个人体时,此参数仍返回,但不具备参考意义。
// 注意:此字段可能返回 null,表示取不到有效值。
Orientation *Orientation `json:"Orientation,omitempty" name:"Orientation"`
// 人体上衣属性信息。
// AttributesType 不含 Orientation 或检测超过 5 个人体时,此参数仍返回,但不具备参考意义。
// 注意:此字段可能返回 null,表示取不到有效值。
UpperBodyCloth *UpperBodyCloth `json:"UpperBodyCloth,omitempty" name:"UpperBodyCloth"`
// 人体下衣属性信息。
// AttributesType 不含 LowerBodyCloth 或检测超过 5 个人体时,此参数仍返回,但不具备参考意义。
// 注意:此字段可能返回 null,表示取不到有效值。
LowerBodyCloth *LowerBodyCloth `json:"LowerBodyCloth,omitempty" name:"LowerBodyCloth"`
}
type BodyDetectResult ¶
type BodyDetectResult struct {
// 检测出的人体置信度。
// 误识率百分之十对应的阈值是0.14;误识率百分之五对应的阈值是0.32;误识率百分之二对应的阈值是0.62;误识率百分之一对应的阈值是0.81。
// 通常情况建议使用阈值0.32,可适用大多数情况。
Confidence *float64 `json:"Confidence,omitempty" name:"Confidence"`
// 图中检测出来的人体框
BodyRect *BodyRect `json:"BodyRect,omitempty" name:"BodyRect"`
// 图中检测出的人体属性信息。
BodyAttributeInfo *BodyAttributeInfo `json:"BodyAttributeInfo,omitempty" name:"BodyAttributeInfo"`
}
type Candidate ¶
type Candidate struct {
// 人员ID。
PersonId *string `json:"PersonId,omitempty" name:"PersonId"`
// 人体轨迹ID。
TraceId *string `json:"TraceId,omitempty" name:"TraceId"`
// 候选者的匹配得分。
// 十万人体库下,误识率百分之五对应的分数为70分;误识率百分之二对应的分数为80分;误识率百分之一对应的分数为90分。
//
// 二十万人体库下,误识率百分之五对应的分数为80分;误识率百分之二对应的分数为90分;误识率百分之一对应的分数为95分。
//
// 通常情况建议使用分数80分(保召回)。若希望获得较高精度,建议使用分数90分(保准确)。
Score *float64 `json:"Score,omitempty" name:"Score"`
}
type Client ¶
func NewClient ¶
func NewClient(credential *common.Credential, region string, clientProfile *profile.ClientProfile) (client *Client, err error)
func NewClientWithSecretId ¶
Deprecated
func (*Client) CreateGroup ¶
func (c *Client) CreateGroup(request *CreateGroupRequest) (response *CreateGroupResponse, err error)
用于创建一个空的人体库,如果人体库已存在返回错误。
1个APPID下最多有2000W个人体轨迹(Trace),最多1W个人体库(Group)。
单个人体库(Group)最多10W个人体轨迹(Trace)。
单个人员(Person)最多添加 5 个人体轨迹(Trace)。
func (*Client) CreatePerson ¶
func (c *Client) CreatePerson(request *CreatePersonRequest) (response *CreatePersonResponse, err error)
创建人员,添加对应人员的人体轨迹信息。
请注意: - 我们希望您的输入为 严格符合轨迹图片 要求的图片。如果您输入的图片不符合轨迹图片要求,会对最终效果产生较大负面影响。请您尽量保证一个Trace中的图片人体清晰、无遮挡、连贯; - 一个人体轨迹(Trace)可以包含1-5张人体图片。提供越多质量高的人体图片有助于提升最终识别结果; - 无论您在单个Trace中提供了多少张人体图片,我们都将生成一个对应的轨迹(Trace)信息。即,Trace仅和本次输入的图片序列相关,和图片的个数无关; - 输入的图片组中,若有部分图片输入不合法(如图片大小过大、分辨率过大、无法解码等),我们将舍弃这部分图片,确保合法图片被正确搜索。即,我们将尽可能保证请求成功,去除不合法的输入; - 构成人体轨迹单张图片大小不得超过2M,分辨率不得超过1920*1080。
func (*Client) CreateTrace ¶
func (c *Client) CreateTrace(request *CreateTraceRequest) (response *CreateTraceResponse, err error)
将一个人体轨迹添加到一个人员中。一个人员最多允许包含 5 个人体轨迹。同一人的人体轨迹越多,搜索识别效果越好。
>请注意: - 我们希望您的输入为 严格符合轨迹图片 要求的图片。如果您输入的图片不符合轨迹图片要求,会对最终效果产生较大负面影响。请您尽量保证一个Trace中的图片人体清晰、无遮挡、连贯。 - 一个人体轨迹(Trace)可以包含1-5张人体图片。提供越多质量高的人体图片有助于提升最终识别结果。 - 无论您在单个Trace中提供了多少张人体图片,我们都将生成一个对应的轨迹(Trace)信息。即,Trace仅和本次输入的图片序列相关,和图片的个数无关。 - 输入的图片组中,若有部分图片输入不合法(如图片大小过大、分辨率过大、无法解码等),我们将舍弃这部分图片,确保合法图片被正确搜索。即,我们将尽可能保证请求成功,去除不合法的输入; - 构成人体轨迹单张图片大小限制为2M,分辨率限制为1920*1080。
func (*Client) DeleteGroup ¶
func (c *Client) DeleteGroup(request *DeleteGroupRequest) (response *DeleteGroupResponse, err error)
删除该人体库及包含的所有的人员。
func (*Client) DeletePerson ¶
func (c *Client) DeletePerson(request *DeletePersonRequest) (response *DeletePersonResponse, err error)
删除人员。
func (*Client) DetectBody ¶
func (c *Client) DetectBody(request *DetectBodyRequest) (response *DetectBodyResponse, err error)
检测给定图片中的人体(Body)的位置信息(属性信息将在后续开放)。
func (*Client) GetGroupList ¶
func (c *Client) GetGroupList(request *GetGroupListRequest) (response *GetGroupListResponse, err error)
获取人体库列表。
func (*Client) GetPersonList ¶
func (c *Client) GetPersonList(request *GetPersonListRequest) (response *GetPersonListResponse, err error)
获取指定人体库中的人员列表。
func (*Client) ModifyGroup ¶
func (c *Client) ModifyGroup(request *ModifyGroupRequest) (response *ModifyGroupResponse, err error)
修改人体库名称、备注。
func (*Client) ModifyPersonInfo ¶
func (c *Client) ModifyPersonInfo(request *ModifyPersonInfoRequest) (response *ModifyPersonInfoResponse, err error)
修改人员信息。
func (*Client) SearchTrace ¶
func (c *Client) SearchTrace(request *SearchTraceRequest) (response *SearchTraceResponse, err error)
本接口用于对一组待识别的人体轨迹(Trace)图片,在人体库中识别出最相似的 TopK 人体,按照相似度从大到小排列。
人体轨迹(Trace)图片要求:图片中当且仅包含一个人体。人体完整、无遮挡。
> 请注意: - 我们希望您的输入为严格符合轨迹图片要求的图片。如果您输入的图片不符合轨迹图片要求,会对最终效果产生较大负面影响; - 人体轨迹,是一个包含1-5张图片的图片序列。您可以输入1张图片作为轨迹,也可以输入多张。单个轨迹中包含越多符合质量的图片,搜索效果越好。 - 构成人体轨迹单张图片大小不得超过2M,分辨率不得超过1920*1080。
func (*Client) SegmentPortraitPic ¶
func (c *Client) SegmentPortraitPic(request *SegmentPortraitPicRequest) (response *SegmentPortraitPicResponse, err error)
识别传入图片中人体的完整轮廓,进行抠像。
type CreateGroupRequest ¶
type CreateGroupRequest struct {
*tchttp.BaseRequest
// 人体库名称,[1,60]个字符,可修改,不可重复。
GroupName *string `json:"GroupName,omitempty" name:"GroupName"`
// 人体库 ID,不可修改,不可重复。支持英文、数字、-%@#&_,长度限制64B。
GroupId *string `json:"GroupId,omitempty" name:"GroupId"`
// 人体库信息备注,[0,40]个字符。
Tag *string `json:"Tag,omitempty" name:"Tag"`
// 人体识别所用的算法模型版本。
// 目前入参仅支持 “1.0”1个输入。 默认为"1.0"。
// 不同算法模型版本对应的人体识别算法不同,新版本的整体效果会优于旧版本,后续我们将推出更新版本。
BodyModelVersion *string `json:"BodyModelVersion,omitempty" name:"BodyModelVersion"`
}
func NewCreateGroupRequest ¶
func NewCreateGroupRequest() (request *CreateGroupRequest)
func (*CreateGroupRequest) FromJsonString ¶
func (r *CreateGroupRequest) FromJsonString(s string) error
func (*CreateGroupRequest) ToJsonString ¶
func (r *CreateGroupRequest) ToJsonString() string
type CreateGroupResponse ¶
type CreateGroupResponse struct {
*tchttp.BaseResponse
Response *struct {
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewCreateGroupResponse ¶
func NewCreateGroupResponse() (response *CreateGroupResponse)
func (*CreateGroupResponse) FromJsonString ¶
func (r *CreateGroupResponse) FromJsonString(s string) error
func (*CreateGroupResponse) ToJsonString ¶
func (r *CreateGroupResponse) ToJsonString() string
type CreatePersonRequest ¶
type CreatePersonRequest struct {
*tchttp.BaseRequest
// 待加入的人员库ID。
GroupId *string `json:"GroupId,omitempty" name:"GroupId"`
// 人员名称。[1,60]个字符,可修改,可重复。
PersonName *string `json:"PersonName,omitempty" name:"PersonName"`
// 人员ID,单个腾讯云账号下不可修改,不可重复。
// 支持英文、数字、-%@#&_,,长度限制64B。
PersonId *string `json:"PersonId,omitempty" name:"PersonId"`
// 人体轨迹信息。
Trace *Trace `json:"Trace,omitempty" name:"Trace"`
}
func NewCreatePersonRequest ¶
func NewCreatePersonRequest() (request *CreatePersonRequest)
func (*CreatePersonRequest) FromJsonString ¶
func (r *CreatePersonRequest) FromJsonString(s string) error
func (*CreatePersonRequest) ToJsonString ¶
func (r *CreatePersonRequest) ToJsonString() string
type CreatePersonResponse ¶
type CreatePersonResponse struct {
*tchttp.BaseResponse
Response *struct {
// 人员轨迹唯一标识。
TraceId *string `json:"TraceId,omitempty" name:"TraceId"`
// 人体识别所用的算法模型版本。
BodyModelVersion *string `json:"BodyModelVersion,omitempty" name:"BodyModelVersion"`
// 输入的人体轨迹图片中的合法性校验结果。
// 只有为0时结果才有意义。
// -1001: 输入图片不合法。-1002: 输入图片不能构成轨迹。
InputRetCode *int64 `json:"InputRetCode,omitempty" name:"InputRetCode"`
// 输入的人体轨迹图片中的合法性校验结果详情。
// -1101:图片无效,-1102:url不合法。-1103:图片过大。-1104:图片下载失败。-1105:图片解码失败。-1109:图片分辨率过高。-2023:轨迹中有非同人图片。-2024: 轨迹提取失败。-2025: 人体检测失败。
// RetCode 的顺序和入参中Images 或 Urls 的顺序一致。
InputRetCodeDetails []*int64 `json:"InputRetCodeDetails,omitempty" name:"InputRetCodeDetails" list`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewCreatePersonResponse ¶
func NewCreatePersonResponse() (response *CreatePersonResponse)
func (*CreatePersonResponse) FromJsonString ¶
func (r *CreatePersonResponse) FromJsonString(s string) error
func (*CreatePersonResponse) ToJsonString ¶
func (r *CreatePersonResponse) ToJsonString() string
type CreateTraceRequest ¶
type CreateTraceRequest struct {
*tchttp.BaseRequest
// 人员ID。
PersonId *string `json:"PersonId,omitempty" name:"PersonId"`
// 人体轨迹信息。
Trace *Trace `json:"Trace,omitempty" name:"Trace"`
}
func NewCreateTraceRequest ¶
func NewCreateTraceRequest() (request *CreateTraceRequest)
func (*CreateTraceRequest) FromJsonString ¶
func (r *CreateTraceRequest) FromJsonString(s string) error
func (*CreateTraceRequest) ToJsonString ¶
func (r *CreateTraceRequest) ToJsonString() string
type CreateTraceResponse ¶
type CreateTraceResponse struct {
*tchttp.BaseResponse
Response *struct {
// 人员轨迹唯一标识。
TraceId *string `json:"TraceId,omitempty" name:"TraceId"`
// 人体识别所用的算法模型版本。
BodyModelVersion *string `json:"BodyModelVersion,omitempty" name:"BodyModelVersion"`
// 输入的人体轨迹图片中的合法性校验结果。
// 只有为0时结果才有意义。
// -1001: 输入图片不合法。-1002: 输入图片不能构成轨迹。
InputRetCode *int64 `json:"InputRetCode,omitempty" name:"InputRetCode"`
// 输入的人体轨迹图片中的合法性校验结果详情。
// -1101:图片无效,-1102:url不合法。-1103:图片过大。-1104:图片下载失败。-1105:图片解码失败。-1109:图片分辨率过高。-2023:轨迹中有非同人图片。-2024: 轨迹提取失败。-2025: 人体检测失败。
InputRetCodeDetails []*int64 `json:"InputRetCodeDetails,omitempty" name:"InputRetCodeDetails" list`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewCreateTraceResponse ¶
func NewCreateTraceResponse() (response *CreateTraceResponse)
func (*CreateTraceResponse) FromJsonString ¶
func (r *CreateTraceResponse) FromJsonString(s string) error
func (*CreateTraceResponse) ToJsonString ¶
func (r *CreateTraceResponse) ToJsonString() string
type DeleteGroupRequest ¶
type DeleteGroupRequest struct {
*tchttp.BaseRequest
// 人体库ID。
GroupId *string `json:"GroupId,omitempty" name:"GroupId"`
}
func NewDeleteGroupRequest ¶
func NewDeleteGroupRequest() (request *DeleteGroupRequest)
func (*DeleteGroupRequest) FromJsonString ¶
func (r *DeleteGroupRequest) FromJsonString(s string) error
func (*DeleteGroupRequest) ToJsonString ¶
func (r *DeleteGroupRequest) ToJsonString() string
type DeleteGroupResponse ¶
type DeleteGroupResponse struct {
*tchttp.BaseResponse
Response *struct {
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewDeleteGroupResponse ¶
func NewDeleteGroupResponse() (response *DeleteGroupResponse)
func (*DeleteGroupResponse) FromJsonString ¶
func (r *DeleteGroupResponse) FromJsonString(s string) error
func (*DeleteGroupResponse) ToJsonString ¶
func (r *DeleteGroupResponse) ToJsonString() string
type DeletePersonRequest ¶
type DeletePersonRequest struct {
*tchttp.BaseRequest
// 人员ID。
PersonId *string `json:"PersonId,omitempty" name:"PersonId"`
}
func NewDeletePersonRequest ¶
func NewDeletePersonRequest() (request *DeletePersonRequest)
func (*DeletePersonRequest) FromJsonString ¶
func (r *DeletePersonRequest) FromJsonString(s string) error
func (*DeletePersonRequest) ToJsonString ¶
func (r *DeletePersonRequest) ToJsonString() string
type DeletePersonResponse ¶
type DeletePersonResponse struct {
*tchttp.BaseResponse
Response *struct {
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewDeletePersonResponse ¶
func NewDeletePersonResponse() (response *DeletePersonResponse)
func (*DeletePersonResponse) FromJsonString ¶
func (r *DeletePersonResponse) FromJsonString(s string) error
func (*DeletePersonResponse) ToJsonString ¶
func (r *DeletePersonResponse) ToJsonString() string
type DetectBodyRequest ¶
type DetectBodyRequest struct {
*tchttp.BaseRequest
// 人体图片 Base64 数据。
// 图片 base64 编码后大小不可超过5M。
// 图片分辨率不得超过 2048*2048。
// 支持PNG、JPG、JPEG、BMP,不支持 GIF 图片。
Image *string `json:"Image,omitempty" name:"Image"`
// 人体图片 Url 。
// Url、Image必须提供一个,如果都提供,只使用 Url。
// 图片 base64 编码后大小不可超过5M。
// 图片分辨率不得超过 2048*2048。
// 图片存储于腾讯云的Url可保障更高下载速度和稳定性,建议图片存储于腾讯云。
// 非腾讯云存储的Url速度和稳定性可能受一定影响。
// 支持PNG、JPG、JPEG、BMP,不支持 GIF 图片。
Url *string `json:"Url,omitempty" name:"Url"`
// 最多检测的人体数目,默认值为1(仅检测图片中面积最大的那个人体); 最大值10 ,检测图片中面积最大的10个人体。
MaxBodyNum *uint64 `json:"MaxBodyNum,omitempty" name:"MaxBodyNum"`
// 是否返回年龄、性别、朝向等属性。
// 可选项有 Age、Bag、Gender、UpperBodyCloth、LowerBodyCloth、Orientation。
// 如果此参数为空则为不需要返回。
// 需要将属性组成一个用逗号分隔的字符串,属性之间的顺序没有要求。
// 关于各属性的详细描述,参见下文出参。
// 最多返回面积最大的 5 个人体属性信息,超过 5 个人体(第 6 个及以后的人体)的 BodyAttributesInfo 不具备参考意义。
AttributesOptions *AttributesOptions `json:"AttributesOptions,omitempty" name:"AttributesOptions"`
}
func NewDetectBodyRequest ¶
func NewDetectBodyRequest() (request *DetectBodyRequest)
func (*DetectBodyRequest) FromJsonString ¶
func (r *DetectBodyRequest) FromJsonString(s string) error
func (*DetectBodyRequest) ToJsonString ¶
func (r *DetectBodyRequest) ToJsonString() string
type DetectBodyResponse ¶
type DetectBodyResponse struct {
*tchttp.BaseResponse
Response *struct {
// 图中检测出来的人体框。
BodyDetectResults []*BodyDetectResult `json:"BodyDetectResults,omitempty" name:"BodyDetectResults" list`
// 人体识别所用的算法模型版本。
BodyModelVersion *string `json:"BodyModelVersion,omitempty" name:"BodyModelVersion"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewDetectBodyResponse ¶
func NewDetectBodyResponse() (response *DetectBodyResponse)
func (*DetectBodyResponse) FromJsonString ¶
func (r *DetectBodyResponse) FromJsonString(s string) error
func (*DetectBodyResponse) ToJsonString ¶
func (r *DetectBodyResponse) ToJsonString() string
type GetGroupListRequest ¶
type GetGroupListRequest struct {
*tchttp.BaseRequest
// 起始序号,默认值为0。
Offset *uint64 `json:"Offset,omitempty" name:"Offset"`
// 返回数量,默认值为10,最大值为1000。
Limit *uint64 `json:"Limit,omitempty" name:"Limit"`
}
func NewGetGroupListRequest ¶
func NewGetGroupListRequest() (request *GetGroupListRequest)
func (*GetGroupListRequest) FromJsonString ¶
func (r *GetGroupListRequest) FromJsonString(s string) error
func (*GetGroupListRequest) ToJsonString ¶
func (r *GetGroupListRequest) ToJsonString() string
type GetGroupListResponse ¶
type GetGroupListResponse struct {
*tchttp.BaseResponse
Response *struct {
// 返回的人体库信息。
GroupInfos []*GroupInfo `json:"GroupInfos,omitempty" name:"GroupInfos" list`
// 人体库总数量。
GroupNum *uint64 `json:"GroupNum,omitempty" name:"GroupNum"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewGetGroupListResponse ¶
func NewGetGroupListResponse() (response *GetGroupListResponse)
func (*GetGroupListResponse) FromJsonString ¶
func (r *GetGroupListResponse) FromJsonString(s string) error
func (*GetGroupListResponse) ToJsonString ¶
func (r *GetGroupListResponse) ToJsonString() string
type GetPersonListRequest ¶
type GetPersonListRequest struct {
*tchttp.BaseRequest
// 人体库ID。
GroupId *string `json:"GroupId,omitempty" name:"GroupId"`
// 起始序号,默认值为0。
Offset *uint64 `json:"Offset,omitempty" name:"Offset"`
// 返回数量,默认值为10,最大值为1000。
Limit *uint64 `json:"Limit,omitempty" name:"Limit"`
}
func NewGetPersonListRequest ¶
func NewGetPersonListRequest() (request *GetPersonListRequest)
func (*GetPersonListRequest) FromJsonString ¶
func (r *GetPersonListRequest) FromJsonString(s string) error
func (*GetPersonListRequest) ToJsonString ¶
func (r *GetPersonListRequest) ToJsonString() string
type GetPersonListResponse ¶
type GetPersonListResponse struct {
*tchttp.BaseResponse
Response *struct {
// 返回的人员信息。
PersonInfos []*PersonInfo `json:"PersonInfos,omitempty" name:"PersonInfos" list`
// 该人体库的人员数量。
PersonNum *uint64 `json:"PersonNum,omitempty" name:"PersonNum"`
// 人体识别所用的算法模型版本。
BodyModelVersion *string `json:"BodyModelVersion,omitempty" name:"BodyModelVersion"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewGetPersonListResponse ¶
func NewGetPersonListResponse() (response *GetPersonListResponse)
func (*GetPersonListResponse) FromJsonString ¶
func (r *GetPersonListResponse) FromJsonString(s string) error
func (*GetPersonListResponse) ToJsonString ¶
func (r *GetPersonListResponse) ToJsonString() string
type GroupInfo ¶
type GroupInfo struct {
// 人体库名称。
GroupName *string `json:"GroupName,omitempty" name:"GroupName"`
// 人体库ID。
GroupId *string `json:"GroupId,omitempty" name:"GroupId"`
// 人体库信息备注。
Tag *string `json:"Tag,omitempty" name:"Tag"`
// 人体识别所用的算法模型版本。
BodyModelVersion *string `json:"BodyModelVersion,omitempty" name:"BodyModelVersion"`
// Group的创建时间和日期 CreationTimestamp。CreationTimestamp 的值是自 Unix 纪元时间到Group创建时间的毫秒数。
// Unix 纪元时间是 1970 年 1 月 1 日星期四,协调世界时 (UTC) 。
CreationTimestamp *uint64 `json:"CreationTimestamp,omitempty" name:"CreationTimestamp"`
}
type LowerBodyCloth ¶
type LowerBodyCloth struct {
// 下衣颜色信息。
Color *LowerBodyClothColor `json:"Color,omitempty" name:"Color"`
// 下衣长度信息 。
Length *LowerBodyClothLength `json:"Length,omitempty" name:"Length"`
// 下衣类型信息。
Type *LowerBodyClothType `json:"Type,omitempty" name:"Type"`
}
type LowerBodyClothColor ¶
type LowerBodyClothLength ¶
type LowerBodyClothType ¶
type ModifyGroupRequest ¶
type ModifyGroupRequest struct {
*tchttp.BaseRequest
// 人体库ID。
GroupId *string `json:"GroupId,omitempty" name:"GroupId"`
// 人体库名称。
GroupName *string `json:"GroupName,omitempty" name:"GroupName"`
// 人体库信息备注。
Tag *string `json:"Tag,omitempty" name:"Tag"`
}
func NewModifyGroupRequest ¶
func NewModifyGroupRequest() (request *ModifyGroupRequest)
func (*ModifyGroupRequest) FromJsonString ¶
func (r *ModifyGroupRequest) FromJsonString(s string) error
func (*ModifyGroupRequest) ToJsonString ¶
func (r *ModifyGroupRequest) ToJsonString() string
type ModifyGroupResponse ¶
type ModifyGroupResponse struct {
*tchttp.BaseResponse
Response *struct {
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewModifyGroupResponse ¶
func NewModifyGroupResponse() (response *ModifyGroupResponse)
func (*ModifyGroupResponse) FromJsonString ¶
func (r *ModifyGroupResponse) FromJsonString(s string) error
func (*ModifyGroupResponse) ToJsonString ¶
func (r *ModifyGroupResponse) ToJsonString() string
type ModifyPersonInfoRequest ¶
type ModifyPersonInfoRequest struct {
*tchttp.BaseRequest
// 人员ID。
PersonId *string `json:"PersonId,omitempty" name:"PersonId"`
// 人员名称。
PersonName *string `json:"PersonName,omitempty" name:"PersonName"`
}
func NewModifyPersonInfoRequest ¶
func NewModifyPersonInfoRequest() (request *ModifyPersonInfoRequest)
func (*ModifyPersonInfoRequest) FromJsonString ¶
func (r *ModifyPersonInfoRequest) FromJsonString(s string) error
func (*ModifyPersonInfoRequest) ToJsonString ¶
func (r *ModifyPersonInfoRequest) ToJsonString() string
type ModifyPersonInfoResponse ¶
type ModifyPersonInfoResponse struct {
*tchttp.BaseResponse
Response *struct {
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewModifyPersonInfoResponse ¶
func NewModifyPersonInfoResponse() (response *ModifyPersonInfoResponse)
func (*ModifyPersonInfoResponse) FromJsonString ¶
func (r *ModifyPersonInfoResponse) FromJsonString(s string) error
func (*ModifyPersonInfoResponse) ToJsonString ¶
func (r *ModifyPersonInfoResponse) ToJsonString() string
type Orientation ¶
type PersonInfo ¶
type SearchTraceRequest ¶
type SearchTraceRequest struct {
*tchttp.BaseRequest
// 希望搜索的人体库ID。
GroupId *string `json:"GroupId,omitempty" name:"GroupId"`
// 人体轨迹信息。
Trace *Trace `json:"Trace,omitempty" name:"Trace"`
// 单张被识别的人体轨迹返回的最相似人员数量。
// 默认值为5,最大值为100。
// 例,设MaxPersonNum为8,则返回Top8相似的人员信息。 值越大,需要处理的时间越长。建议不要超过10。
MaxPersonNum *uint64 `json:"MaxPersonNum,omitempty" name:"MaxPersonNum"`
// 出参Score中,只有超过TraceMatchThreshold值的结果才会返回。
// 默认为0。范围[0, 100.0]。
TraceMatchThreshold *float64 `json:"TraceMatchThreshold,omitempty" name:"TraceMatchThreshold"`
}
func NewSearchTraceRequest ¶
func NewSearchTraceRequest() (request *SearchTraceRequest)
func (*SearchTraceRequest) FromJsonString ¶
func (r *SearchTraceRequest) FromJsonString(s string) error
func (*SearchTraceRequest) ToJsonString ¶
func (r *SearchTraceRequest) ToJsonString() string
type SearchTraceResponse ¶
type SearchTraceResponse struct {
*tchttp.BaseResponse
Response *struct {
// 识别出的最相似候选人。
Candidates []*Candidate `json:"Candidates,omitempty" name:"Candidates" list`
// 输入的人体轨迹图片中的合法性校验结果。
// 只有为0时结果才有意义。
// -1001: 输入图片不合法。-1002: 输入图片不能构成轨迹。
InputRetCode *int64 `json:"InputRetCode,omitempty" name:"InputRetCode"`
// 输入的人体轨迹图片中的合法性校验结果详情。
// -1101:图片无效,-1102:url不合法。-1103:图片过大。-1104:图片下载失败。-1105:图片解码失败。-1109:图片分辨率过高。-2023:轨迹中有非同人图片。-2024: 轨迹提取失败。-2025: 人体检测失败。
InputRetCodeDetails []*int64 `json:"InputRetCodeDetails,omitempty" name:"InputRetCodeDetails" list`
// 人体识别所用的算法模型版本。
BodyModelVersion *string `json:"BodyModelVersion,omitempty" name:"BodyModelVersion"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewSearchTraceResponse ¶
func NewSearchTraceResponse() (response *SearchTraceResponse)
func (*SearchTraceResponse) FromJsonString ¶
func (r *SearchTraceResponse) FromJsonString(s string) error
func (*SearchTraceResponse) ToJsonString ¶
func (r *SearchTraceResponse) ToJsonString() string
type SegmentPortraitPicRequest ¶
type SegmentPortraitPicRequest struct {
*tchttp.BaseRequest
// 图片 base64 数据,base64 编码后大小不可超过5M。
// 图片分辨率须小于2000*2000。
// 支持PNG、JPG、JPEG、BMP,不支持 GIF 图片。
Image *string `json:"Image,omitempty" name:"Image"`
// 图片的 Url 。
// Url、Image必须提供一个,如果都提供,只使用 Url。
// 图片分辨率须小于2000*2000 ,图片 base64 编码后大小不可超过5M。
// 图片存储于腾讯云的Url可保障更高下载速度和稳定性,建议图片存储于腾讯云。
// 非腾讯云存储的Url速度和稳定性可能受一定影响。
// 支持PNG、JPG、JPEG、BMP,不支持 GIF 图片。
Url *string `json:"Url,omitempty" name:"Url"`
}
func NewSegmentPortraitPicRequest ¶
func NewSegmentPortraitPicRequest() (request *SegmentPortraitPicRequest)
func (*SegmentPortraitPicRequest) FromJsonString ¶
func (r *SegmentPortraitPicRequest) FromJsonString(s string) error
func (*SegmentPortraitPicRequest) ToJsonString ¶
func (r *SegmentPortraitPicRequest) ToJsonString() string
type SegmentPortraitPicResponse ¶
type SegmentPortraitPicResponse struct {
*tchttp.BaseResponse
Response *struct {
// 处理后的图片 base64 数据,透明背景图
ResultImage *string `json:"ResultImage,omitempty" name:"ResultImage"`
// 一个通过 Base64 编码的文件,解码后文件由 Float 型浮点数组成。这些浮点数代表原图从左上角开始的每一行的每一个像素点,每一个浮点数的值是原图相应像素点位于人体轮廓内的置信度(0-1)转化的灰度值(0-255)
ResultMask *string `json:"ResultMask,omitempty" name:"ResultMask"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewSegmentPortraitPicResponse ¶
func NewSegmentPortraitPicResponse() (response *SegmentPortraitPicResponse)
func (*SegmentPortraitPicResponse) FromJsonString ¶
func (r *SegmentPortraitPicResponse) FromJsonString(s string) error
func (*SegmentPortraitPicResponse) ToJsonString ¶
func (r *SegmentPortraitPicResponse) ToJsonString() string
type Trace ¶
type Trace struct {
// 人体轨迹图片 Base64 数组。
// 数组长度最小为1最大为5。
// 单个图片 base64 编码后大小不可超过2M。
// 支持PNG、JPG、JPEG、BMP,不支持 GIF 图片。
Images []*string `json:"Images,omitempty" name:"Images" list`
// 人体轨迹图片 Url 数组。
// 数组长度最小为1最大为5。
// 单个图片 base64 编码后大小不可超过2M。
// Urls、Images必须提供一个,如果都提供,只使用 Urls。
// 图片存储于腾讯云的Url可保障更高下载速度和稳定性,建议图片存储于腾讯云。
// 非腾讯云存储的Url速度和稳定性可能受一定影响。
// 支持PNG、JPG、JPEG、BMP,不支持 GIF 图片。
Urls []*string `json:"Urls,omitempty" name:"Urls" list`
// 若输入的Images 和 Urls 是已经裁剪后的人体小图,则可以忽略本参数。
// 若否,或图片中包含多个人体,则需要通过本参数来指定图片中的人体框。
// 顺序对应 Images 或 Urls 中的顺序。
// 当不输入本参数时,我们将认为输入图片已是经过裁剪后的人体小图,不会进行人体检测而直接进行特征提取处理。
BodyRects []*BodyRect `json:"BodyRects,omitempty" name:"BodyRects" list`
}
type UpperBodyCloth ¶
type UpperBodyCloth struct {
// 上衣纹理信息。
Texture *UpperBodyClothTexture `json:"Texture,omitempty" name:"Texture"`
// 上衣颜色信息。
Color *UpperBodyClothColor `json:"Color,omitempty" name:"Color"`
// 上衣衣袖信息。
Sleeve *UpperBodyClothSleeve `json:"Sleeve,omitempty" name:"Sleeve"`
}