Documentation ¶
Index ¶
- func FrsClientBuilder() *http_client.HcHttpClientBuilder
- func GenReqDefForAddFacesByBase64() *def.HttpRequestDef
- func GenReqDefForAddFacesByFile() *def.HttpRequestDef
- func GenReqDefForAddFacesByUrl() *def.HttpRequestDef
- func GenReqDefForBatchDeleteFaces() *def.HttpRequestDef
- func GenReqDefForCompareFaceByBase64() *def.HttpRequestDef
- func GenReqDefForCompareFaceByFile() *def.HttpRequestDef
- func GenReqDefForCompareFaceByUrl() *def.HttpRequestDef
- func GenReqDefForCreateFaceSet() *def.HttpRequestDef
- func GenReqDefForDeleteFaceByExternalImageId() *def.HttpRequestDef
- func GenReqDefForDeleteFaceByFaceId() *def.HttpRequestDef
- func GenReqDefForDeleteFaceSet() *def.HttpRequestDef
- func GenReqDefForDetectFaceByBase64() *def.HttpRequestDef
- func GenReqDefForDetectFaceByFile() *def.HttpRequestDef
- func GenReqDefForDetectFaceByUrl() *def.HttpRequestDef
- func GenReqDefForDetectLiveByBase64() *def.HttpRequestDef
- func GenReqDefForDetectLiveByFile() *def.HttpRequestDef
- func GenReqDefForDetectLiveByUrl() *def.HttpRequestDef
- func GenReqDefForDetectLiveFaceByBase64() *def.HttpRequestDef
- func GenReqDefForDetectLiveFaceByFile() *def.HttpRequestDef
- func GenReqDefForDetectLiveFaceByUrl() *def.HttpRequestDef
- func GenReqDefForSearchFaceByBase64() *def.HttpRequestDef
- func GenReqDefForSearchFaceByFaceId() *def.HttpRequestDef
- func GenReqDefForSearchFaceByFile() *def.HttpRequestDef
- func GenReqDefForSearchFaceByUrl() *def.HttpRequestDef
- func GenReqDefForShowAllFaceSets() *def.HttpRequestDef
- func GenReqDefForShowFaceSet() *def.HttpRequestDef
- func GenReqDefForShowFacesByFaceId() *def.HttpRequestDef
- func GenReqDefForShowFacesByLimit() *def.HttpRequestDef
- func GenReqDefForUpdateFace() *def.HttpRequestDef
- type FrsClient
- func (c *FrsClient) AddFacesByBase64(request *model.AddFacesByBase64Request) (*model.AddFacesByBase64Response, error)
- func (c *FrsClient) AddFacesByFile(request *model.AddFacesByFileRequest) (*model.AddFacesByFileResponse, error)
- func (c *FrsClient) AddFacesByUrl(request *model.AddFacesByUrlRequest) (*model.AddFacesByUrlResponse, error)
- func (c *FrsClient) BatchDeleteFaces(request *model.BatchDeleteFacesRequest) (*model.BatchDeleteFacesResponse, error)
- func (c *FrsClient) CompareFaceByBase64(request *model.CompareFaceByBase64Request) (*model.CompareFaceByBase64Response, error)
- func (c *FrsClient) CompareFaceByFile(request *model.CompareFaceByFileRequest) (*model.CompareFaceByFileResponse, error)
- func (c *FrsClient) CompareFaceByUrl(request *model.CompareFaceByUrlRequest) (*model.CompareFaceByUrlResponse, error)
- func (c *FrsClient) CreateFaceSet(request *model.CreateFaceSetRequest) (*model.CreateFaceSetResponse, error)
- func (c *FrsClient) DeleteFaceByExternalImageId(request *model.DeleteFaceByExternalImageIdRequest) (*model.DeleteFaceByExternalImageIdResponse, error)
- func (c *FrsClient) DeleteFaceByFaceId(request *model.DeleteFaceByFaceIdRequest) (*model.DeleteFaceByFaceIdResponse, error)
- func (c *FrsClient) DeleteFaceSet(request *model.DeleteFaceSetRequest) (*model.DeleteFaceSetResponse, error)
- func (c *FrsClient) DetectFaceByBase64(request *model.DetectFaceByBase64Request) (*model.DetectFaceByBase64Response, error)
- func (c *FrsClient) DetectFaceByFile(request *model.DetectFaceByFileRequest) (*model.DetectFaceByFileResponse, error)
- func (c *FrsClient) DetectFaceByUrl(request *model.DetectFaceByUrlRequest) (*model.DetectFaceByUrlResponse, error)
- func (c *FrsClient) DetectLiveByBase64(request *model.DetectLiveByBase64Request) (*model.DetectLiveByBase64Response, error)
- func (c *FrsClient) DetectLiveByFile(request *model.DetectLiveByFileRequest) (*model.DetectLiveByFileResponse, error)
- func (c *FrsClient) DetectLiveByUrl(request *model.DetectLiveByUrlRequest) (*model.DetectLiveByUrlResponse, error)
- func (c *FrsClient) DetectLiveFaceByBase64(request *model.DetectLiveFaceByBase64Request) (*model.DetectLiveFaceByBase64Response, error)
- func (c *FrsClient) DetectLiveFaceByFile(request *model.DetectLiveFaceByFileRequest) (*model.DetectLiveFaceByFileResponse, error)
- func (c *FrsClient) DetectLiveFaceByUrl(request *model.DetectLiveFaceByUrlRequest) (*model.DetectLiveFaceByUrlResponse, error)
- func (c *FrsClient) SearchFaceByBase64(request *model.SearchFaceByBase64Request) (*model.SearchFaceByBase64Response, error)
- func (c *FrsClient) SearchFaceByFaceId(request *model.SearchFaceByFaceIdRequest) (*model.SearchFaceByFaceIdResponse, error)
- func (c *FrsClient) SearchFaceByFile(request *model.SearchFaceByFileRequest) (*model.SearchFaceByFileResponse, error)
- func (c *FrsClient) SearchFaceByUrl(request *model.SearchFaceByUrlRequest) (*model.SearchFaceByUrlResponse, error)
- func (c *FrsClient) ShowAllFaceSets(request *model.ShowAllFaceSetsRequest) (*model.ShowAllFaceSetsResponse, error)
- func (c *FrsClient) ShowFaceSet(request *model.ShowFaceSetRequest) (*model.ShowFaceSetResponse, error)
- func (c *FrsClient) ShowFacesByFaceId(request *model.ShowFacesByFaceIdRequest) (*model.ShowFacesByFaceIdResponse, error)
- func (c *FrsClient) ShowFacesByLimit(request *model.ShowFacesByLimitRequest) (*model.ShowFacesByLimitResponse, error)
- func (c *FrsClient) UpdateFace(request *model.UpdateFaceRequest) (*model.UpdateFaceResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FrsClientBuilder ¶
func FrsClientBuilder() *http_client.HcHttpClientBuilder
func GenReqDefForAddFacesByBase64 ¶
func GenReqDefForAddFacesByBase64() *def.HttpRequestDef
func GenReqDefForAddFacesByFile ¶
func GenReqDefForAddFacesByFile() *def.HttpRequestDef
func GenReqDefForAddFacesByUrl ¶
func GenReqDefForAddFacesByUrl() *def.HttpRequestDef
func GenReqDefForBatchDeleteFaces ¶
func GenReqDefForBatchDeleteFaces() *def.HttpRequestDef
func GenReqDefForCompareFaceByBase64 ¶
func GenReqDefForCompareFaceByBase64() *def.HttpRequestDef
func GenReqDefForCompareFaceByFile ¶
func GenReqDefForCompareFaceByFile() *def.HttpRequestDef
func GenReqDefForCompareFaceByUrl ¶
func GenReqDefForCompareFaceByUrl() *def.HttpRequestDef
func GenReqDefForCreateFaceSet ¶
func GenReqDefForCreateFaceSet() *def.HttpRequestDef
func GenReqDefForDeleteFaceByExternalImageId ¶
func GenReqDefForDeleteFaceByExternalImageId() *def.HttpRequestDef
func GenReqDefForDeleteFaceByFaceId ¶
func GenReqDefForDeleteFaceByFaceId() *def.HttpRequestDef
func GenReqDefForDeleteFaceSet ¶
func GenReqDefForDeleteFaceSet() *def.HttpRequestDef
func GenReqDefForDetectFaceByBase64 ¶
func GenReqDefForDetectFaceByBase64() *def.HttpRequestDef
func GenReqDefForDetectFaceByFile ¶
func GenReqDefForDetectFaceByFile() *def.HttpRequestDef
func GenReqDefForDetectFaceByUrl ¶
func GenReqDefForDetectFaceByUrl() *def.HttpRequestDef
func GenReqDefForDetectLiveByBase64 ¶ added in v0.0.58
func GenReqDefForDetectLiveByBase64() *def.HttpRequestDef
func GenReqDefForDetectLiveByFile ¶ added in v0.0.58
func GenReqDefForDetectLiveByFile() *def.HttpRequestDef
func GenReqDefForDetectLiveByUrl ¶ added in v0.0.58
func GenReqDefForDetectLiveByUrl() *def.HttpRequestDef
func GenReqDefForDetectLiveFaceByBase64 ¶ added in v0.0.58
func GenReqDefForDetectLiveFaceByBase64() *def.HttpRequestDef
func GenReqDefForDetectLiveFaceByFile ¶ added in v0.0.58
func GenReqDefForDetectLiveFaceByFile() *def.HttpRequestDef
func GenReqDefForDetectLiveFaceByUrl ¶ added in v0.0.58
func GenReqDefForDetectLiveFaceByUrl() *def.HttpRequestDef
func GenReqDefForSearchFaceByBase64 ¶
func GenReqDefForSearchFaceByBase64() *def.HttpRequestDef
func GenReqDefForSearchFaceByFaceId ¶
func GenReqDefForSearchFaceByFaceId() *def.HttpRequestDef
func GenReqDefForSearchFaceByFile ¶
func GenReqDefForSearchFaceByFile() *def.HttpRequestDef
func GenReqDefForSearchFaceByUrl ¶
func GenReqDefForSearchFaceByUrl() *def.HttpRequestDef
func GenReqDefForShowAllFaceSets ¶
func GenReqDefForShowAllFaceSets() *def.HttpRequestDef
func GenReqDefForShowFaceSet ¶
func GenReqDefForShowFaceSet() *def.HttpRequestDef
func GenReqDefForShowFacesByFaceId ¶
func GenReqDefForShowFacesByFaceId() *def.HttpRequestDef
func GenReqDefForShowFacesByLimit ¶
func GenReqDefForShowFacesByLimit() *def.HttpRequestDef
func GenReqDefForUpdateFace ¶
func GenReqDefForUpdateFace() *def.HttpRequestDef
Types ¶
type FrsClient ¶
type FrsClient struct {
HcClient *http_client.HcHttpClient
}
func NewFrsClient ¶
func NewFrsClient(hcClient *http_client.HcHttpClient) *FrsClient
func (*FrsClient) AddFacesByBase64 ¶
func (c *FrsClient) AddFacesByBase64(request *model.AddFacesByBase64Request) (*model.AddFacesByBase64Response, error)
添加人脸
添加人脸到人脸库中。将单张图片中的人脸添加至人脸库中,支持添加最大人脸或所有人脸。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*FrsClient) AddFacesByFile ¶
func (c *FrsClient) AddFacesByFile(request *model.AddFacesByFileRequest) (*model.AddFacesByFileResponse, error)
添加人脸
添加人脸到人脸库中。将单张图片中的人脸添加至人脸库中,支持添加最大人脸或所有人脸。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*FrsClient) AddFacesByUrl ¶
func (c *FrsClient) AddFacesByUrl(request *model.AddFacesByUrlRequest) (*model.AddFacesByUrlResponse, error)
添加人脸
添加人脸到人脸库中。将单张图片中的人脸添加至人脸库中,支持添加最大人脸或所有人脸。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*FrsClient) BatchDeleteFaces ¶
func (c *FrsClient) BatchDeleteFaces(request *model.BatchDeleteFacesRequest) (*model.BatchDeleteFacesResponse, error)
批量删除人脸
自定义筛选条件,批量删除人脸库中的符合指定条件的多张人脸。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*FrsClient) CompareFaceByBase64 ¶
func (c *FrsClient) CompareFaceByBase64(request *model.CompareFaceByBase64Request) (*model.CompareFaceByBase64Response, error)
人脸比对
人脸比对是将两个人脸进行比对,来判断是否为同一个人,返回比对置信度。如果传入的图片中包含多个人脸,选取最大的人脸进行比对。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*FrsClient) CompareFaceByFile ¶
func (c *FrsClient) CompareFaceByFile(request *model.CompareFaceByFileRequest) (*model.CompareFaceByFileResponse, error)
人脸比对
人脸比对是将两个人脸进行比对,来判断是否为同一个人,返回比对置信度。如果传入的图片中包含多个人脸,选取最大的人脸进行比对。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*FrsClient) CompareFaceByUrl ¶
func (c *FrsClient) CompareFaceByUrl(request *model.CompareFaceByUrlRequest) (*model.CompareFaceByUrlResponse, error)
人脸比对
人脸比对是将两个人脸进行比对,来判断是否为同一个人,返回比对置信度。如果传入的图片中包含多个人脸,选取最大的人脸进行比对。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*FrsClient) CreateFaceSet ¶
func (c *FrsClient) CreateFaceSet(request *model.CreateFaceSetRequest) (*model.CreateFaceSetResponse, error)
创建人脸库
创建用于存储人脸特征的人脸库。您最多可以创建10个人脸库,每个人脸库最大容量为10万个人脸特征。如有更大规格的需求请联系客服。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*FrsClient) DeleteFaceByExternalImageId ¶
func (c *FrsClient) DeleteFaceByExternalImageId(request *model.DeleteFaceByExternalImageIdRequest) (*model.DeleteFaceByExternalImageIdResponse, error)
删除人脸
根据external_image_id删除人脸。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*FrsClient) DeleteFaceByFaceId ¶
func (c *FrsClient) DeleteFaceByFaceId(request *model.DeleteFaceByFaceIdRequest) (*model.DeleteFaceByFaceIdResponse, error)
删除人脸
根据face_id删除人脸。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*FrsClient) DeleteFaceSet ¶
func (c *FrsClient) DeleteFaceSet(request *model.DeleteFaceSetRequest) (*model.DeleteFaceSetResponse, error)
删除人脸库
删除人脸库以及其中所有的人脸。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*FrsClient) DetectFaceByBase64 ¶
func (c *FrsClient) DetectFaceByBase64(request *model.DetectFaceByBase64Request) (*model.DetectFaceByBase64Response, error)
人脸检测
人脸检测是对输入图片进行人脸检测和分析,输出人脸在图像中的位置、人脸关键点位置和人脸关键属性。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*FrsClient) DetectFaceByFile ¶
func (c *FrsClient) DetectFaceByFile(request *model.DetectFaceByFileRequest) (*model.DetectFaceByFileResponse, error)
人脸检测
人脸检测是对输入图片进行人脸检测和分析,输出人脸在图像中的位置、人脸关键点位置和人脸关键属性。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*FrsClient) DetectFaceByUrl ¶
func (c *FrsClient) DetectFaceByUrl(request *model.DetectFaceByUrlRequest) (*model.DetectFaceByUrlResponse, error)
人脸检测
人脸检测是对输入图片进行人脸检测和分析,输出人脸在图像中的位置、人脸关键点位置和人脸关键属性。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*FrsClient) DetectLiveByBase64 ¶ added in v0.0.58
func (c *FrsClient) DetectLiveByBase64(request *model.DetectLiveByBase64Request) (*model.DetectLiveByBase64Response, error)
动作活体检测
动作活体检测是通过判断视频中的人物动作与传入动作列表是否一致来识别视频中人物是否为活体。如果有多张人脸出现,则选取最大的人脸进行判定。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*FrsClient) DetectLiveByFile ¶ added in v0.0.58
func (c *FrsClient) DetectLiveByFile(request *model.DetectLiveByFileRequest) (*model.DetectLiveByFileResponse, error)
动作活体检测
动作活体检测是通过判断视频中的人物动作与传入动作列表是否一致来识别视频中人物是否为活体。如果有多张人脸出现,则选取最大的人脸进行判定。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*FrsClient) DetectLiveByUrl ¶ added in v0.0.58
func (c *FrsClient) DetectLiveByUrl(request *model.DetectLiveByUrlRequest) (*model.DetectLiveByUrlResponse, error)
动作活体检测
动作活体检测是通过判断视频中的人物动作与传入动作列表是否一致来识别视频中人物是否为活体。如果有多张人脸出现,则选取最大的人脸进行判定。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*FrsClient) DetectLiveFaceByBase64 ¶ added in v0.0.58
func (c *FrsClient) DetectLiveFaceByBase64(request *model.DetectLiveFaceByBase64Request) (*model.DetectLiveFaceByBase64Response, error)
静默活体检测
静默活体检测是基于人脸图片中可能存在的畸变、摩尔纹、反光、倒影、边框等信息,判断图片中的人脸是否来自于真人活体,有效抵御纸质翻拍照、电子翻拍照以及视频翻拍等各种攻击方式。静默活体检测支持单张图片,不支持多人脸图片。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*FrsClient) DetectLiveFaceByFile ¶ added in v0.0.58
func (c *FrsClient) DetectLiveFaceByFile(request *model.DetectLiveFaceByFileRequest) (*model.DetectLiveFaceByFileResponse, error)
静默活体检测
静默活体检测是基于人脸图片中可能存在的畸变、摩尔纹、反光、倒影、边框等信息,判断图片中的人脸是否来自于真人活体,有效抵御纸质翻拍照、电子翻拍照以及视频翻拍等各种攻击方式。静默活体检测支持单张图片,不支持多人脸图片。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*FrsClient) DetectLiveFaceByUrl ¶ added in v0.0.58
func (c *FrsClient) DetectLiveFaceByUrl(request *model.DetectLiveFaceByUrlRequest) (*model.DetectLiveFaceByUrlResponse, error)
静默活体检测
静默活体检测是基于人脸图片中可能存在的畸变、摩尔纹、反光、倒影、边框等信息,判断图片中的人脸是否来自于真人活体,有效抵御纸质翻拍照、电子翻拍照以及视频翻拍等各种攻击方式。静默活体检测支持单张图片,不支持多人脸图片。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*FrsClient) SearchFaceByBase64 ¶
func (c *FrsClient) SearchFaceByBase64(request *model.SearchFaceByBase64Request) (*model.SearchFaceByBase64Response, error)
人脸搜索
人脸搜索是指在已有的人脸库中,查询与目标人脸相似的一张或者多张人脸,并返回相应的置信度。 支持传入图片或者faceID进行人脸搜索,如果传入的是多张人脸图片,选取图片中检测到的最大尺寸人脸作为检索的输入。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*FrsClient) SearchFaceByFaceId ¶
func (c *FrsClient) SearchFaceByFaceId(request *model.SearchFaceByFaceIdRequest) (*model.SearchFaceByFaceIdResponse, error)
人脸搜索
人脸搜索是指在已有的人脸库中,查询与目标人脸相似的一张或者多张人脸,并返回相应的置信度。 支持传入图片或者faceID进行人脸搜索,如果传入的是多张人脸图片,选取图片中检测到的最大尺寸人脸作为检索的输入。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*FrsClient) SearchFaceByFile ¶
func (c *FrsClient) SearchFaceByFile(request *model.SearchFaceByFileRequest) (*model.SearchFaceByFileResponse, error)
人脸搜索
人脸搜索是指在已有的人脸库中,查询与目标人脸相似的一张或者多张人脸,并返回相应的置信度。 支持传入图片或者faceID进行人脸搜索,如果传入的是多张人脸图片,选取图片中检测到的最大尺寸人脸作为检索的输入。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*FrsClient) SearchFaceByUrl ¶
func (c *FrsClient) SearchFaceByUrl(request *model.SearchFaceByUrlRequest) (*model.SearchFaceByUrlResponse, error)
人脸搜索
人脸搜索是指在已有的人脸库中,查询与目标人脸相似的一张或者多张人脸,并返回相应的置信度。 支持传入图片或者faceID进行人脸搜索,如果传入的是多张人脸图片,选取图片中检测到的最大尺寸人脸作为检索的输入。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*FrsClient) ShowAllFaceSets ¶
func (c *FrsClient) ShowAllFaceSets(request *model.ShowAllFaceSetsRequest) (*model.ShowAllFaceSetsResponse, error)
查询所有人脸库
查询当前用户所有人脸库的状态信息。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*FrsClient) ShowFaceSet ¶
func (c *FrsClient) ShowFaceSet(request *model.ShowFaceSetRequest) (*model.ShowFaceSetResponse, error)
查询人脸库
查询人脸库当前的状态。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*FrsClient) ShowFacesByFaceId ¶
func (c *FrsClient) ShowFacesByFaceId(request *model.ShowFacesByFaceIdRequest) (*model.ShowFacesByFaceIdResponse, error)
查询人脸
查询指定人脸库中人脸信息。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*FrsClient) ShowFacesByLimit ¶
func (c *FrsClient) ShowFacesByLimit(request *model.ShowFacesByLimitRequest) (*model.ShowFacesByLimitResponse, error)
查询人脸
查询指定人脸库中人脸信息。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*FrsClient) UpdateFace ¶
func (c *FrsClient) UpdateFace(request *model.UpdateFaceRequest) (*model.UpdateFaceResponse, error)
更新人脸
根据人脸ID(face_id)更新单张人脸信息。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.