model

package
v0.0.78 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 25, 2022 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActionsList added in v0.0.58

type ActionsList struct {
	Confidence float64 `json:"confidence"`

	Action *int32 `json:"action,omitempty"`
}

func (ActionsList) String added in v0.0.58

func (o ActionsList) String() string

type AddFacesBase64Req

type AddFacesBase64Req struct {
	ImageBase64 string `json:"image_base64"`

	ExternalFields *interface{} `json:"external_fields,omitempty"`

	ExternalImageId *string `json:"external_image_id,omitempty"`

	Single *bool `json:"single,omitempty"`
}

func (AddFacesBase64Req) String

func (o AddFacesBase64Req) String() string

type AddFacesByBase64Request

type AddFacesByBase64Request struct {
	FaceSetName string `json:"face_set_name"`

	Body *AddFacesBase64Req `json:"body,omitempty"`
}

Request Object

func (AddFacesByBase64Request) String

func (o AddFacesByBase64Request) String() string

type AddFacesByBase64Response

type AddFacesByBase64Response struct {
	FaceSetId *string `json:"face_set_id,omitempty"`

	FaceSetName *string `json:"face_set_name,omitempty"`

	Faces          *[]FaceSetFace `json:"faces,omitempty"`
	HttpStatusCode int            `json:"-"`
}

Response Object

func (AddFacesByBase64Response) String

func (o AddFacesByBase64Response) String() string

type AddFacesByFileRequest

type AddFacesByFileRequest struct {
	FaceSetName string `json:"face_set_name"`

	Body *AddFacesByFileRequestBody `json:"body,omitempty" type:"multipart"`
}

Request Object

func (AddFacesByFileRequest) String

func (o AddFacesByFileRequest) String() string

type AddFacesByFileRequestBody

type AddFacesByFileRequestBody struct {
	// 本地图片文件,图片不能超过8MB,建议小于1MB。上传文件时,请求格式为multipart。
	ImageFile *def.FilePart `json:"image_file"`

	// 用户指定的图片外部ID,与当前图像绑定。用户没提供,系统会生成一个。 该ID长度范围为1~36位,可以包含字母、数字、中划线或者下划线,不包含其他的特殊字符。
	ExternalImageId *def.MultiPart `json:"external_image_id,omitempty"`

	// 根据用户自定义数据类型,填入相应的数值。 创建faceset时定义该字段,Json字符串不校验重复性,参考[自定义字段](https://support.huaweicloud.com/api-face/face_02_0012.html)。
	ExternalFields *def.MultiPart `json:"external_fields,omitempty"`

	// 是否将图片中的最大人脸添加至人脸库。可选值包括: • true: 传入的单张图片中如果包含多张人脸,则只将最大人脸添加到人脸库中。 • false: 默认为false。传入的单张图片中如果包含多张人脸,则将所有人脸添加至人脸库中。
	Single *def.MultiPart `json:"single,omitempty"`
}

func (AddFacesByFileRequestBody) String

func (o AddFacesByFileRequestBody) String() string

func (*AddFacesByFileRequestBody) UnmarshalJSON added in v0.0.67

func (o *AddFacesByFileRequestBody) UnmarshalJSON(b []byte) error

type AddFacesByFileResponse

type AddFacesByFileResponse struct {
	FaceSetId *string `json:"face_set_id,omitempty"`

	FaceSetName *string `json:"face_set_name,omitempty"`

	Faces          *[]FaceSetFace `json:"faces,omitempty"`
	HttpStatusCode int            `json:"-"`
}

Response Object

func (AddFacesByFileResponse) String

func (o AddFacesByFileResponse) String() string

type AddFacesByUrlRequest

type AddFacesByUrlRequest struct {
	FaceSetName string `json:"face_set_name"`

	Body *AddFacesUrlReq `json:"body,omitempty"`
}

Request Object

func (AddFacesByUrlRequest) String

func (o AddFacesByUrlRequest) String() string

type AddFacesByUrlResponse

type AddFacesByUrlResponse struct {
	FaceSetId *string `json:"face_set_id,omitempty"`

	FaceSetName *string `json:"face_set_name,omitempty"`

	Faces          *[]FaceSetFace `json:"faces,omitempty"`
	HttpStatusCode int            `json:"-"`
}

Response Object

func (AddFacesByUrlResponse) String

func (o AddFacesByUrlResponse) String() string

type AddFacesUrlReq

type AddFacesUrlReq struct {
	ImageUrl string `json:"image_url"`

	ExternalFields *interface{} `json:"external_fields,omitempty"`

	ExternalImageId *string `json:"external_image_id,omitempty"`

	Single *bool `json:"single,omitempty"`
}

func (AddFacesUrlReq) String

func (o AddFacesUrlReq) String() string

type Attributes

type Attributes struct {
	Dress *Dress `json:"dress"`

	Glass string `json:"glass"`

	Hat string `json:"hat"`

	Age int32 `json:"age"`

	Mask string `json:"mask"`

	Beard string `json:"beard"`

	Phototype string `json:"phototype"`

	Quality *FaceQuality `json:"quality"`

	Hair string `json:"hair"`

	Expression *AttributesExpression `json:"expression"`

	FaceAngle int32 `json:"face_angle"`
}

func (Attributes) String

func (o Attributes) String() string

type AttributesExpression

type AttributesExpression struct {
	Type *string `json:"type,omitempty"`

	Probability *float64 `json:"probability,omitempty"`
}

人脸表情,包括中性、高兴、害怕、惊讶、伤心、生气、厌恶。

func (AttributesExpression) String

func (o AttributesExpression) String() string

type BatchDeleteFacesRequest

type BatchDeleteFacesRequest struct {
	FaceSetName string `json:"face_set_name"`

	Body *DeleteFacesBatchReq `json:"body,omitempty"`
}

Request Object

func (BatchDeleteFacesRequest) String

func (o BatchDeleteFacesRequest) String() string

type BatchDeleteFacesResponse

type BatchDeleteFacesResponse struct {
	FaceNumber *int32 `json:"face_number,omitempty"`

	FaceSetId *string `json:"face_set_id,omitempty"`

	FaceSetName    *string `json:"face_set_name,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (BatchDeleteFacesResponse) String

func (o BatchDeleteFacesResponse) String() string

type BoundingBox

type BoundingBox struct {
	Width int32 `json:"width"`

	TopLeftY int32 `json:"top_left_y"`

	TopLeftX int32 `json:"top_left_x"`

	Height int32 `json:"height"`
}

func (BoundingBox) String

func (o BoundingBox) String() string

type CompareFace

type CompareFace struct {
	BoundingBox *BoundingBox `json:"bounding_box"`
}

func (CompareFace) String

func (o CompareFace) String() string

type CompareFaceByBase64Request

type CompareFaceByBase64Request struct {
	Body *FaceCompareBase64Req `json:"body,omitempty"`
}

Request Object

func (CompareFaceByBase64Request) String

type CompareFaceByBase64Response

type CompareFaceByBase64Response struct {
	Image1Face *CompareFace `json:"image1_face,omitempty"`

	Image2Face *CompareFace `json:"image2_face,omitempty"`

	Similarity     *float64 `json:"similarity,omitempty"`
	HttpStatusCode int      `json:"-"`
}

Response Object

func (CompareFaceByBase64Response) String

type CompareFaceByFileRequest

type CompareFaceByFileRequest struct {
	Body *CompareFaceByFileRequestBody `json:"body,omitempty" type:"multipart"`
}

Request Object

func (CompareFaceByFileRequest) String

func (o CompareFaceByFileRequest) String() string

type CompareFaceByFileRequestBody

type CompareFaceByFileRequestBody struct {
	// 本地图片文件,图片不能超过8MB。上传文件时,请求格式为multipart。
	Image1File *def.FilePart `json:"image1_file"`

	// 本地图片文件,图片不能超过8MB。上传文件时,请求格式为multipart。
	Image2File *def.FilePart `json:"image2_file"`
}

func (CompareFaceByFileRequestBody) String

func (*CompareFaceByFileRequestBody) UnmarshalJSON added in v0.0.67

func (o *CompareFaceByFileRequestBody) UnmarshalJSON(b []byte) error

type CompareFaceByFileResponse

type CompareFaceByFileResponse struct {
	Image1Face *CompareFace `json:"image1_face,omitempty"`

	Image2Face *CompareFace `json:"image2_face,omitempty"`

	Similarity     *float64 `json:"similarity,omitempty"`
	HttpStatusCode int      `json:"-"`
}

Response Object

func (CompareFaceByFileResponse) String

func (o CompareFaceByFileResponse) String() string

type CompareFaceByUrlRequest

type CompareFaceByUrlRequest struct {
	Body *FaceCompareUrlReq `json:"body,omitempty"`
}

Request Object

func (CompareFaceByUrlRequest) String

func (o CompareFaceByUrlRequest) String() string

type CompareFaceByUrlResponse

type CompareFaceByUrlResponse struct {
	Image1Face *CompareFace `json:"image1_face,omitempty"`

	Image2Face *CompareFace `json:"image2_face,omitempty"`

	Similarity     *float64 `json:"similarity,omitempty"`
	HttpStatusCode int      `json:"-"`
}

Response Object

func (CompareFaceByUrlResponse) String

func (o CompareFaceByUrlResponse) String() string

type CreateFaceSetReq

type CreateFaceSetReq struct {
	ExternalFields map[string]TypeInfo `json:"external_fields,omitempty"`

	FaceSetName string `json:"face_set_name"`

	FaceSetCapacity *int32 `json:"face_set_capacity,omitempty"`
}

func (CreateFaceSetReq) String

func (o CreateFaceSetReq) String() string

type CreateFaceSetRequest

type CreateFaceSetRequest struct {
	Body *CreateFaceSetReq `json:"body,omitempty"`
}

Request Object

func (CreateFaceSetRequest) String

func (o CreateFaceSetRequest) String() string

type CreateFaceSetResponse

type CreateFaceSetResponse struct {
	FaceSetInfo    *FaceSetInfo `json:"face_set_info,omitempty"`
	HttpStatusCode int          `json:"-"`
}

Response Object

func (CreateFaceSetResponse) String

func (o CreateFaceSetResponse) String() string

type DeleteFaceByExternalImageIdRequest

type DeleteFaceByExternalImageIdRequest struct {
	FaceSetName string `json:"face_set_name"`

	ExternalImageId string `json:"external_image_id"`
}

Request Object

func (DeleteFaceByExternalImageIdRequest) String

type DeleteFaceByExternalImageIdResponse

type DeleteFaceByExternalImageIdResponse struct {
	FaceNumber *int32 `json:"face_number,omitempty"`

	FaceSetId *string `json:"face_set_id,omitempty"`

	FaceSetName    *string `json:"face_set_name,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (DeleteFaceByExternalImageIdResponse) String

type DeleteFaceByFaceIdRequest

type DeleteFaceByFaceIdRequest struct {
	FaceSetName string `json:"face_set_name"`

	FaceId string `json:"face_id"`
}

Request Object

func (DeleteFaceByFaceIdRequest) String

func (o DeleteFaceByFaceIdRequest) String() string

type DeleteFaceByFaceIdResponse

type DeleteFaceByFaceIdResponse struct {
	FaceNumber *int32 `json:"face_number,omitempty"`

	FaceSetId *string `json:"face_set_id,omitempty"`

	FaceSetName    *string `json:"face_set_name,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (DeleteFaceByFaceIdResponse) String

type DeleteFaceSetRequest

type DeleteFaceSetRequest struct {
	FaceSetName string `json:"face_set_name"`
}

Request Object

func (DeleteFaceSetRequest) String

func (o DeleteFaceSetRequest) String() string

type DeleteFaceSetResponse

type DeleteFaceSetResponse struct {
	FaceSetName    *string `json:"face_set_name,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (DeleteFaceSetResponse) String

func (o DeleteFaceSetResponse) String() string

type DeleteFacesBatchReq

type DeleteFacesBatchReq struct {
	Filter string `json:"filter"`
}

func (DeleteFacesBatchReq) String

func (o DeleteFacesBatchReq) String() string

type DetectFace

type DetectFace struct {
	BoundingBox *BoundingBox `json:"bounding_box"`

	Attributes *Attributes `json:"attributes,omitempty"`
}

func (DetectFace) String

func (o DetectFace) String() string

type DetectFaceByBase64Request

type DetectFaceByBase64Request struct {
	Body *FaceDetectBase64Req `json:"body,omitempty"`
}

Request Object

func (DetectFaceByBase64Request) String

func (o DetectFaceByBase64Request) String() string

type DetectFaceByBase64Response

type DetectFaceByBase64Response struct {
	Faces          *[]DetectFace `json:"faces,omitempty"`
	HttpStatusCode int           `json:"-"`
}

Response Object

func (DetectFaceByBase64Response) String

type DetectFaceByFileRequest

type DetectFaceByFileRequest struct {
	Body *DetectFaceByFileRequestBody `json:"body,omitempty" type:"multipart"`
}

Request Object

func (DetectFaceByFileRequest) String

func (o DetectFaceByFileRequest) String() string

type DetectFaceByFileRequestBody

type DetectFaceByFileRequestBody struct {
	// 本地图片文件,图片不能超过8MB。上传文件时,请求格式为multipart。
	ImageFile *def.FilePart `json:"image_file"`

	// 是否返回人脸属性,希望获取的属性列表,多个属性间使用逗号(,)隔开。目前支持的属性有: • 2:年龄 • 4:装束(帽子、眼镜) • 6:口罩 • 7:发型 • 8:胡须 • 11:图片类型 • 12:质量 • 13:表情 • 21:人脸图片旋转角(顺时针偏转角度),支持0°、90°、180°和270°图片旋转
	Attributes *def.MultiPart `json:"attributes,omitempty"`
}

func (DetectFaceByFileRequestBody) String

func (*DetectFaceByFileRequestBody) UnmarshalJSON added in v0.0.67

func (o *DetectFaceByFileRequestBody) UnmarshalJSON(b []byte) error

type DetectFaceByFileResponse

type DetectFaceByFileResponse struct {
	Faces          *[]DetectFace `json:"faces,omitempty"`
	HttpStatusCode int           `json:"-"`
}

Response Object

func (DetectFaceByFileResponse) String

func (o DetectFaceByFileResponse) String() string

type DetectFaceByUrlRequest

type DetectFaceByUrlRequest struct {
	Body *FaceDetectUrlReq `json:"body,omitempty"`
}

Request Object

func (DetectFaceByUrlRequest) String

func (o DetectFaceByUrlRequest) String() string

type DetectFaceByUrlResponse

type DetectFaceByUrlResponse struct {
	Faces          *[]DetectFace `json:"faces,omitempty"`
	HttpStatusCode int           `json:"-"`
}

Response Object

func (DetectFaceByUrlResponse) String

func (o DetectFaceByUrlResponse) String() string

type DetectLiveByBase64Request added in v0.0.58

type DetectLiveByBase64Request struct {
	Body *LiveDetectBase64Req `json:"body,omitempty"`
}

Request Object

func (DetectLiveByBase64Request) String added in v0.0.58

func (o DetectLiveByBase64Request) String() string

type DetectLiveByBase64Response added in v0.0.58

type DetectLiveByBase64Response struct {
	VideoResult *LiveDetectRespVideoresult `json:"video-result,omitempty"`

	WarningList    *[]WarningList `json:"warning-list,omitempty"`
	HttpStatusCode int            `json:"-"`
}

Response Object

func (DetectLiveByBase64Response) String added in v0.0.58

type DetectLiveByFileRequest added in v0.0.58

type DetectLiveByFileRequest struct {
	Body *DetectLiveByFileRequestBody `json:"body,omitempty" type:"multipart"`
}

Request Object

func (DetectLiveByFileRequest) String added in v0.0.58

func (o DetectLiveByFileRequest) String() string

type DetectLiveByFileRequestBody added in v0.0.58

type DetectLiveByFileRequestBody struct {
	// 本地视频文件。上传文件时,请求格式为multipart。 视频要求: • 视频文件大小不超过8MB,建议客户端压缩到200KB~2MB。 • 限制视频时长1~15秒。 • 建议帧率10fps~30fps。 • 封装格式:mp4、avi、flv、webm、asf、mov。 • 视频编码格式: h261、h263、h264、hevc、vc1、vp8、vp9、wmv3。
	VideoFile *def.FilePart `json:"video_file"`

	// 动作代码顺序列表,英文逗号(,)分隔。建议单动作,目前支持的动作有: • 1:左摇头 • 2:右摇头 • 3:点头 • 4:嘴部动作
	Actions *def.MultiPart `json:"actions"`

	// 该参数为动作时间数组拼接的字符串,数组的长度和actions的数量一致,每一项代表了对应次序动作的起始时间和结束时间,单位为距视频开始的毫秒数。
	ActionTime *def.MultiPart `json:"action_time,omitempty"`
}

func (DetectLiveByFileRequestBody) String added in v0.0.58

func (*DetectLiveByFileRequestBody) UnmarshalJSON added in v0.0.67

func (o *DetectLiveByFileRequestBody) UnmarshalJSON(b []byte) error

type DetectLiveByFileResponse added in v0.0.58

type DetectLiveByFileResponse struct {
	VideoResult *LiveDetectRespVideoresult `json:"video-result,omitempty"`

	WarningList    *[]WarningList `json:"warning-list,omitempty"`
	HttpStatusCode int            `json:"-"`
}

Response Object

func (DetectLiveByFileResponse) String added in v0.0.58

func (o DetectLiveByFileResponse) String() string

type DetectLiveByUrlRequest added in v0.0.58

type DetectLiveByUrlRequest struct {
	Body *LiveDetectUrlReq `json:"body,omitempty"`
}

Request Object

func (DetectLiveByUrlRequest) String added in v0.0.58

func (o DetectLiveByUrlRequest) String() string

type DetectLiveByUrlResponse added in v0.0.58

type DetectLiveByUrlResponse struct {
	VideoResult *LiveDetectRespVideoresult `json:"video-result,omitempty"`

	WarningList    *[]WarningList `json:"warning-list,omitempty"`
	HttpStatusCode int            `json:"-"`
}

Response Object

func (DetectLiveByUrlResponse) String added in v0.0.58

func (o DetectLiveByUrlResponse) String() string

type DetectLiveFaceByBase64Request added in v0.0.58

type DetectLiveFaceByBase64Request struct {
	Body *LiveDetectFaceBase64Req `json:"body,omitempty"`
}

Request Object

func (DetectLiveFaceByBase64Request) String added in v0.0.58

type DetectLiveFaceByBase64Response added in v0.0.58

type DetectLiveFaceByBase64Response struct {
	Result *LiveDetectFaceRespResult `json:"result,omitempty"`

	WarningList    *[]WarningList `json:"warning-list,omitempty"`
	HttpStatusCode int            `json:"-"`
}

Response Object

func (DetectLiveFaceByBase64Response) String added in v0.0.58

type DetectLiveFaceByFileRequest added in v0.0.58

type DetectLiveFaceByFileRequest struct {
	Body *DetectLiveFaceByFileRequestBody `json:"body,omitempty" type:"multipart"`
}

Request Object

func (DetectLiveFaceByFileRequest) String added in v0.0.58

type DetectLiveFaceByFileRequestBody added in v0.0.58

type DetectLiveFaceByFileRequestBody struct {
	// 本地图片文件。上传文件时,请求格式为multipart。
	ImageFile *def.FilePart `json:"image_file"`
}

func (DetectLiveFaceByFileRequestBody) String added in v0.0.58

func (*DetectLiveFaceByFileRequestBody) UnmarshalJSON added in v0.0.67

func (o *DetectLiveFaceByFileRequestBody) UnmarshalJSON(b []byte) error

type DetectLiveFaceByFileResponse added in v0.0.58

type DetectLiveFaceByFileResponse struct {
	Result *LiveDetectFaceRespResult `json:"result,omitempty"`

	WarningList    *[]WarningList `json:"warning-list,omitempty"`
	HttpStatusCode int            `json:"-"`
}

Response Object

func (DetectLiveFaceByFileResponse) String added in v0.0.58

type DetectLiveFaceByUrlRequest added in v0.0.58

type DetectLiveFaceByUrlRequest struct {
	Body *LiveDetectFaceUrlReq `json:"body,omitempty"`
}

Request Object

func (DetectLiveFaceByUrlRequest) String added in v0.0.58

type DetectLiveFaceByUrlResponse added in v0.0.58

type DetectLiveFaceByUrlResponse struct {
	Result *LiveDetectFaceRespResult `json:"result,omitempty"`

	WarningList    *[]WarningList `json:"warning-list,omitempty"`
	HttpStatusCode int            `json:"-"`
}

Response Object

func (DetectLiveFaceByUrlResponse) String added in v0.0.58

type Dress added in v0.0.57

type Dress struct {
	Glass *string `json:"glass,omitempty"`

	Hat *string `json:"hat,omitempty"`
}

func (Dress) String added in v0.0.57

func (o Dress) String() string

type FaceCompareBase64Req

type FaceCompareBase64Req struct {
	Image2Base64 string `json:"image2_base64"`

	Image1Base64 string `json:"image1_base64"`
}

func (FaceCompareBase64Req) String

func (o FaceCompareBase64Req) String() string

type FaceCompareUrlReq

type FaceCompareUrlReq struct {
	Image1Url string `json:"image1_url"`

	Image2Url string `json:"image2_url"`
}

func (FaceCompareUrlReq) String

func (o FaceCompareUrlReq) String() string

type FaceDetectBase64Req

type FaceDetectBase64Req struct {
	ImageBase64 string `json:"image_base64"`

	Attributes *string `json:"attributes,omitempty"`
}

func (FaceDetectBase64Req) String

func (o FaceDetectBase64Req) String() string

type FaceDetectUrlReq

type FaceDetectUrlReq struct {
	ImageUrl string `json:"image_url"`

	Attributes *string `json:"attributes,omitempty"`
}

func (FaceDetectUrlReq) String

func (o FaceDetectUrlReq) String() string

type FaceQuality

type FaceQuality struct {
	TotalScore float64 `json:"total_score"`

	Blur float64 `json:"blur"`

	Pose float64 `json:"pose"`

	Occlusion float64 `json:"occlusion"`

	Illumination float64 `json:"illumination"`
}

func (FaceQuality) String

func (o FaceQuality) String() string

type FaceSearchBase64Req

type FaceSearchBase64Req struct {
	Filter *string `json:"filter,omitempty"`

	TopN *int32 `json:"top_n,omitempty"`

	ImageBase64 string `json:"image_base64"`

	ReturnFields *[]string `json:"return_fields,omitempty"`

	Threshold *float64 `json:"threshold,omitempty"`

	Sort *[]map[string]string `json:"sort,omitempty"`
}

func (FaceSearchBase64Req) String

func (o FaceSearchBase64Req) String() string

type FaceSearchFaceIdReq

type FaceSearchFaceIdReq struct {
	Filter *string `json:"filter,omitempty"`

	TopN *int32 `json:"top_n,omitempty"`

	FaceId string `json:"face_id"`

	ReturnFields *[]string `json:"return_fields,omitempty"`

	Threshold *float64 `json:"threshold,omitempty"`

	Sort *[]map[string]string `json:"sort,omitempty"`
}

func (FaceSearchFaceIdReq) String

func (o FaceSearchFaceIdReq) String() string

type FaceSearchUrlReq

type FaceSearchUrlReq struct {
	Filter *string `json:"filter,omitempty"`

	TopN *int32 `json:"top_n,omitempty"`

	ImageUrl string `json:"image_url"`

	ReturnFields *[]string `json:"return_fields,omitempty"`

	Threshold *float64 `json:"threshold,omitempty"`

	Sort *[]map[string]string `json:"sort,omitempty"`
}

func (FaceSearchUrlReq) String

func (o FaceSearchUrlReq) String() string

type FaceSetFace

type FaceSetFace struct {
	BoundingBox *BoundingBox `json:"bounding_box"`

	ExternalFields *interface{} `json:"external_fields"`

	ExternalImageId string `json:"external_image_id"`

	FaceId string `json:"face_id"`
}

func (FaceSetFace) String

func (o FaceSetFace) String() string

type FaceSetInfo

type FaceSetInfo struct {
	FaceNumber int32 `json:"face_number"`

	ExternalFields *interface{} `json:"external_fields"`

	FaceSetId string `json:"face_set_id"`

	FaceSetName string `json:"face_set_name"`

	CreateDate string `json:"create_date"`

	FaceSetCapacity int32 `json:"face_set_capacity"`
}

func (FaceSetInfo) String

func (o FaceSetInfo) String() string

type LiveDetectBase64Req added in v0.0.58

type LiveDetectBase64Req struct {
	ActionTime *string `json:"action_time,omitempty"`

	VideoBase64 string `json:"video_base64"`

	Actions string `json:"actions"`
}

func (LiveDetectBase64Req) String added in v0.0.58

func (o LiveDetectBase64Req) String() string

type LiveDetectFaceBase64Req added in v0.0.58

type LiveDetectFaceBase64Req struct {
	ImageBase64 string `json:"image_base64"`
}

func (LiveDetectFaceBase64Req) String added in v0.0.58

func (o LiveDetectFaceBase64Req) String() string

type LiveDetectFaceRespResult added in v0.0.58

type LiveDetectFaceRespResult struct {
	Alive *bool `json:"alive,omitempty"`

	Confidence *float64 `json:"confidence,omitempty"`

	Picture *string `json:"picture,omitempty"`
}

静默活体检测结果,LivelessDetectResult结构见表[结构格式说明表](https://support.huaweicloud.com/api-face/face_02_0102.html#face_02_0102__table112325301714)。 调用失败时无此字段。

func (LiveDetectFaceRespResult) String added in v0.0.58

func (o LiveDetectFaceRespResult) String() string

type LiveDetectFaceUrlReq added in v0.0.58

type LiveDetectFaceUrlReq struct {
	ImageUrl string `json:"image_url"`
}

func (LiveDetectFaceUrlReq) String added in v0.0.58

func (o LiveDetectFaceUrlReq) String() string

type LiveDetectRespVideoresult added in v0.0.58

type LiveDetectRespVideoresult struct {
	Alive *bool `json:"alive,omitempty"`

	Actions *[]ActionsList `json:"actions,omitempty"`

	Picture *string `json:"picture,omitempty"`
}

活体检测结果,VideoDetectResult结构见[VideoDetectResult](https://support.huaweicloud.com/api-face/face_02_0010.html)。 调用失败时无此字段。

func (LiveDetectRespVideoresult) String added in v0.0.58

func (o LiveDetectRespVideoresult) String() string

type LiveDetectUrlReq added in v0.0.58

type LiveDetectUrlReq struct {
	ActionTime *string `json:"action_time,omitempty"`

	VideoUrl string `json:"video_url"`

	Actions string `json:"actions"`
}

func (LiveDetectUrlReq) String added in v0.0.58

func (o LiveDetectUrlReq) String() string

type SearchFace

type SearchFace struct {
	BoundingBox *BoundingBox `json:"bounding_box,omitempty"`

	Similarity *float64 `json:"similarity,omitempty"`

	ExternalFields *interface{} `json:"external_fields,omitempty"`

	ExternalImageId *string `json:"external_image_id,omitempty"`

	FaceId *string `json:"face_id,omitempty"`
}

func (SearchFace) String

func (o SearchFace) String() string

type SearchFaceByBase64Request

type SearchFaceByBase64Request struct {
	FaceSetName string `json:"face_set_name"`

	Body *FaceSearchBase64Req `json:"body,omitempty"`
}

Request Object

func (SearchFaceByBase64Request) String

func (o SearchFaceByBase64Request) String() string

type SearchFaceByBase64Response

type SearchFaceByBase64Response struct {
	Faces          *[]SearchFace `json:"faces,omitempty"`
	HttpStatusCode int           `json:"-"`
}

Response Object

func (SearchFaceByBase64Response) String

type SearchFaceByFaceIdRequest

type SearchFaceByFaceIdRequest struct {
	FaceSetName string `json:"face_set_name"`

	Body *FaceSearchFaceIdReq `json:"body,omitempty"`
}

Request Object

func (SearchFaceByFaceIdRequest) String

func (o SearchFaceByFaceIdRequest) String() string

type SearchFaceByFaceIdResponse

type SearchFaceByFaceIdResponse struct {
	Faces          *[]SearchFace `json:"faces,omitempty"`
	HttpStatusCode int           `json:"-"`
}

Response Object

func (SearchFaceByFaceIdResponse) String

type SearchFaceByFileRequest

type SearchFaceByFileRequest struct {
	FaceSetName string `json:"face_set_name"`

	Body *SearchFaceByFileRequestBody `json:"body,omitempty" type:"multipart"`
}

Request Object

func (SearchFaceByFileRequest) String

func (o SearchFaceByFileRequest) String() string

type SearchFaceByFileRequestBody

type SearchFaceByFileRequestBody struct {
	// 本地图片文件,图片不能超过8MB,建议小于1MB。上传文件时,请求格式为multipart。  必选,与image_url、image_base64、face_id四选一。
	ImageFile *def.FilePart `json:"image_file"`

	// 返回查询到的最相似的N张人脸,N默认为10。
	TopN *def.MultiPart `json:"top_n,omitempty"`

	// 人脸相似度阈值,低于这个阈值则不返回,取值范围0~1,一般情况下建议取值0.93,默认为0。
	Threshold *def.MultiPart `json:"threshold,omitempty"`

	// 支持字段排序,参考[sort语法](https://support.huaweicloud.com/api-face/face_02_0013.html)。
	Sort *def.MultiPart `json:"sort,omitempty"`

	// 过滤条件,参考[filter语法](https://support.huaweicloud.com/api-face/face_02_0014.html)。
	Filter *def.MultiPart `json:"filter,omitempty"`

	// 指定返回的自定义字段。
	ReturnFields *def.MultiPart `json:"return_fields,omitempty"`
}

func (SearchFaceByFileRequestBody) String

func (*SearchFaceByFileRequestBody) UnmarshalJSON added in v0.0.67

func (o *SearchFaceByFileRequestBody) UnmarshalJSON(b []byte) error

type SearchFaceByFileResponse

type SearchFaceByFileResponse struct {
	Faces          *[]SearchFace `json:"faces,omitempty"`
	HttpStatusCode int           `json:"-"`
}

Response Object

func (SearchFaceByFileResponse) String

func (o SearchFaceByFileResponse) String() string

type SearchFaceByUrlRequest

type SearchFaceByUrlRequest struct {
	FaceSetName string `json:"face_set_name"`

	Body *FaceSearchUrlReq `json:"body,omitempty"`
}

Request Object

func (SearchFaceByUrlRequest) String

func (o SearchFaceByUrlRequest) String() string

type SearchFaceByUrlResponse

type SearchFaceByUrlResponse struct {
	Faces          *[]SearchFace `json:"faces,omitempty"`
	HttpStatusCode int           `json:"-"`
}

Response Object

func (SearchFaceByUrlResponse) String

func (o SearchFaceByUrlResponse) String() string

type ShowAllFaceSetsRequest

type ShowAllFaceSetsRequest struct {
}

Request Object

func (ShowAllFaceSetsRequest) String

func (o ShowAllFaceSetsRequest) String() string

type ShowAllFaceSetsResponse

type ShowAllFaceSetsResponse struct {
	FaceSetsInfo   *[]FaceSetInfo `json:"face_sets_info,omitempty"`
	HttpStatusCode int            `json:"-"`
}

Response Object

func (ShowAllFaceSetsResponse) String

func (o ShowAllFaceSetsResponse) String() string

type ShowFaceSetRequest

type ShowFaceSetRequest struct {
	FaceSetName string `json:"face_set_name"`
}

Request Object

func (ShowFaceSetRequest) String

func (o ShowFaceSetRequest) String() string

type ShowFaceSetResponse

type ShowFaceSetResponse struct {
	FaceSetInfo    *FaceSetInfo `json:"face_set_info,omitempty"`
	HttpStatusCode int          `json:"-"`
}

Response Object

func (ShowFaceSetResponse) String

func (o ShowFaceSetResponse) String() string

type ShowFacesByFaceIdRequest

type ShowFacesByFaceIdRequest struct {
	FaceSetName string `json:"face_set_name"`

	FaceId string `json:"face_id"`
}

Request Object

func (ShowFacesByFaceIdRequest) String

func (o ShowFacesByFaceIdRequest) String() string

type ShowFacesByFaceIdResponse

type ShowFacesByFaceIdResponse struct {
	FaceSetId *string `json:"face_set_id,omitempty"`

	FaceSetName *string `json:"face_set_name,omitempty"`

	Faces          *[]FaceSetFace `json:"faces,omitempty"`
	HttpStatusCode int            `json:"-"`
}

Response Object

func (ShowFacesByFaceIdResponse) String

func (o ShowFacesByFaceIdResponse) String() string

type ShowFacesByLimitRequest

type ShowFacesByLimitRequest struct {
	FaceSetName string `json:"face_set_name"`

	Offset int32 `json:"offset"`

	Limit int32 `json:"limit"`
}

Request Object

func (ShowFacesByLimitRequest) String

func (o ShowFacesByLimitRequest) String() string

type ShowFacesByLimitResponse

type ShowFacesByLimitResponse struct {
	FaceSetId *string `json:"face_set_id,omitempty"`

	FaceSetName *string `json:"face_set_name,omitempty"`

	Faces          *[]FaceSetFace `json:"faces,omitempty"`
	HttpStatusCode int            `json:"-"`
}

Response Object

func (ShowFacesByLimitResponse) String

func (o ShowFacesByLimitResponse) String() string

type TypeInfo

type TypeInfo struct {
	Type *string `json:"type,omitempty"`
}

func (TypeInfo) String

func (o TypeInfo) String() string

type UpdateFaceReq

type UpdateFaceReq struct {
	ExternalFields *interface{} `json:"external_fields,omitempty"`

	ExternalImageId *string `json:"external_image_id,omitempty"`

	FaceId string `json:"face_id"`
}

func (UpdateFaceReq) String

func (o UpdateFaceReq) String() string

type UpdateFaceRequest

type UpdateFaceRequest struct {
	FaceSetName string `json:"face_set_name"`

	Body *UpdateFaceReq `json:"body,omitempty"`
}

Request Object

func (UpdateFaceRequest) String

func (o UpdateFaceRequest) String() string

type UpdateFaceResponse

type UpdateFaceResponse struct {
	FaceNumber *int32 `json:"face_number,omitempty"`

	FaceSetId *string `json:"face_set_id,omitempty"`

	FaceSetName    *string `json:"face_set_name,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (UpdateFaceResponse) String

func (o UpdateFaceResponse) String() string

type WarningList added in v0.0.58

type WarningList struct {
	WarningCode *int32 `json:"warningCode,omitempty"`

	WarningMsg *string `json:"warningMsg,omitempty"`
}

func (WarningList) String added in v0.0.58

func (o WarningList) String() string

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL