Documentation ¶
Index ¶
- Constants
- type CompareService
- func (compareService *CompareService) CompareFaceByBase64(image1Base64 string, image2Base64 string) (*result.CompareFaceResult, error)
- func (compareService *CompareService) CompareFaceByFile(image1Path string, image2Path string) (*result.CompareFaceResult, error)
- func (compareService *CompareService) CompareFaceByObsUrl(image1Url string, image2Url string) (*result.CompareFaceResult, error)
- type DetectService
- func (detectService *DetectService) DetectFaceByBase64(imageBase64 string) (*result.DetectFaceResult, error)
- func (detectService *DetectService) DetectFaceByBase64WithAttr(imageBase64 string, attributes string) (*result.DetectFaceResult, error)
- func (detectService *DetectService) DetectFaceByFile(imagePath string) (*result.DetectFaceResult, error)
- func (detectService *DetectService) DetectFaceByFileWithAttr(imagePath string, attributes string) (*result.DetectFaceResult, error)
- func (detectService *DetectService) DetectFaceByObsUrl(obsUrl string) (*result.DetectFaceResult, error)
- func (detectService *DetectService) DetectFaceByObsUrlWithAttr(obsUrl string, attributes string) (*result.DetectFaceResult, error)
- type FaceService
- func (faceService *FaceService) AddFaceByBae64(faceSetName string, imageBase64 string) (*result.AddFaceResult, error)
- func (faceService *FaceService) AddFaceByBae64Full(faceSetName string, externalImageId string, imageBase64 string, ...) (*result.AddFaceResult, error)
- func (faceService *FaceService) AddFaceByBae64WithExFields(faceSetName string, imageBase64 string, ...) (*result.AddFaceResult, error)
- func (faceService *FaceService) AddFaceByBae64WithExImgId(faceSetName string, externalImageId string, imageBase64 string) (*result.AddFaceResult, error)
- func (faceService *FaceService) AddFaceByFile(faceSetName string, imagePath string) (*result.AddFaceResult, error)
- func (faceService *FaceService) AddFaceByFileFull(faceSetName string, externalImageId string, imagePath string, ...) (*result.AddFaceResult, error)
- func (faceService *FaceService) AddFaceByFileWithExFields(faceSetName string, imagePath string, ...) (*result.AddFaceResult, error)
- func (faceService *FaceService) AddFaceByFileWithExImgId(faceSetName string, externalImageId string, imagePath string) (*result.AddFaceResult, error)
- func (faceService *FaceService) AddFaceByObsUrl(faceSetName string, imageUrl string) (*result.AddFaceResult, error)
- func (faceService *FaceService) AddFaceByObsUrlFull(faceSetName string, externalImageId string, imageUrl string, ...) (*result.AddFaceResult, error)
- func (faceService *FaceService) AddFaceByObsUrlWithExFields(faceSetName string, imageUrl string, ...) (*result.AddFaceResult, error)
- func (faceService *FaceService) AddFaceByObsUrlWithExImgId(faceSetName string, externalImageId string, imageUrl string) (*result.AddFaceResult, error)
- func (faceService *FaceService) DeleteFaceByExternalImageId(faceSetName string, externalImageId string) (*result.DeleteFaceResult, error)
- func (faceService *FaceService) DeleteFaceByFaceId(faceSetName string, faceId string) (*result.DeleteFaceResult, error)
- func (faceService *FaceService) DeleteFaceByFieldId(faceSetName string, fieldId string, fieldValue string) (*result.DeleteFaceResult, error)
- func (faceService *FaceService) DeleteFaceByFilter(faceSetName string, filter string) (*result.DeleteFaceResult, error)
- func (faceService *FaceService) GetFace(faceSetName string, faceId string) (*result.GetFaceResult, error)
- func (faceService *FaceService) GetFaces(faceSetName string, offset int, limit int) (*result.GetFaceResult, error)
- type FaceSetService
- func (faceSetService *FaceSetService) CreateFaceSet(faceSetName string) (*result.CreateFaceSetResult, error)
- func (faceSetService *FaceSetService) CreateFaceSetWithCapacity(faceSetName string, faceSetCapacity int) (*result.CreateFaceSetResult, error)
- func (faceSetService *FaceSetService) CreateFaceSetWithExtFields(faceSetName string, faceSetCapacity int, ...) (*result.CreateFaceSetResult, error)
- func (faceSetService *FaceSetService) DeleteFaceSet(faceSetName string) (*result.DeleteFaceSetResult, error)
- func (faceSetService *FaceSetService) GetAllFaceSets() (*result.GetAllFaceSetsResult, error)
- func (faceSetService *FaceSetService) GetFaceSet(faceSetName string) (*result.GetFaceSetResult, error)
- type FrsClient
- func (frsClient *FrsClient) GetCompareService() *CompareService
- func (frsClient *FrsClient) GetDetectService() *DetectService
- func (frsClient *FrsClient) GetFaceService() *FaceService
- func (frsClient *FrsClient) GetFaceSetService() *FaceSetService
- func (frsClient *FrsClient) GetLiveDetectService() *LiveDetectService
- func (frsClient *FrsClient) GetQualityService() *QualityService
- func (frsClient *FrsClient) GetSearchService() *SearchService
- func (frsClient *FrsClient) GetV2() *v2.ApiCollectionV2
- type LiveDetectService
- func (liveDetectService *LiveDetectService) LiveDetectByBase64(videoBase64 string, actions string) (*result.LiveDetectResult, error)
- func (liveDetectService *LiveDetectService) LiveDetectByBase64WithActTime(videoBase64 string, actions string, actionTime string) (*result.LiveDetectResult, error)
- func (liveDetectService *LiveDetectService) LiveDetectByFile(videoPath string, actions string) (*result.LiveDetectResult, error)
- func (liveDetectService *LiveDetectService) LiveDetectByFileWithActTime(videoPath string, actions string, actionTime string) (*result.LiveDetectResult, error)
- func (liveDetectService *LiveDetectService) LiveDetectByObsUrl(videoUrl string, actions string) (*result.LiveDetectResult, error)
- func (liveDetectService *LiveDetectService) LiveDetectByObsUrlWithActTime(videoUrl string, actions string, actionTime string) (*result.LiveDetectResult, error)
- type QualityService
- func (qualityService *QualityService) BlurClassifyByBase64(imageBase64 string) (*result.BlurClassifyResult, error)
- func (qualityService *QualityService) BlurClassifyByFile(imagePath string) (*result.BlurClassifyResult, error)
- func (qualityService *QualityService) BlurClassifyByObsUrl(imageUrl string) (*result.BlurClassifyResult, error)
- func (qualityService *QualityService) FaceQualityByBase64(imageBase64 string) (*result.FaceQualityResult, error)
- func (qualityService *QualityService) FaceQualityByFile(imagePath string) (*result.FaceQualityResult, error)
- func (qualityService *QualityService) FaceQualityByObsUrl(imageUrl string) (*result.FaceQualityResult, error)
- func (qualityService *QualityService) HeadPoseEstimateByBase64(imageBase64 string) (*result.HeadPoseEstimateResult, error)
- func (qualityService *QualityService) HeadPoseEstimateByFile(imagePath string) (*result.HeadPoseEstimateResult, error)
- func (qualityService *QualityService) HeadPoseEstimateByObsUrl(imageUrl string) (*result.HeadPoseEstimateResult, error)
- type SearchService
- func (searchService *SearchService) SearchFaceByBase64(faceSetName string, imageBase64 string) (*result.SearchFaceResult, error)
- func (searchService *SearchService) SearchFaceByBase64Ext(faceSetName string, imageBase64 string, topN int, threshold float64) (*result.SearchFaceResult, error)
- func (searchService *SearchService) SearchFaceByBase64Full(faceSetName string, imageBase64 string, topN int, threshold float64, ...) (*result.SearchFaceResult, error)
- func (searchService *SearchService) SearchFaceByFaceId(faceSetName string, faceId string) (*result.SearchFaceResult, error)
- func (searchService *SearchService) SearchFaceByFaceIdExt(faceSetName string, faceId string, topN int, threshold float64) (*result.SearchFaceResult, error)
- func (searchService *SearchService) SearchFaceByFaceIdFull(faceSetName string, faceId string, topN int, threshold float64, ...) (*result.SearchFaceResult, error)
- func (searchService *SearchService) SearchFaceByFile(faceSetName string, imagePath string) (*result.SearchFaceResult, error)
- func (searchService *SearchService) SearchFaceByFileExt(faceSetName string, imagePath string, topN int, threshold float64) (*result.SearchFaceResult, error)
- func (searchService *SearchService) SearchFaceByFileFull(faceSetName string, imagePath string, topN int, threshold float64, ...) (*result.SearchFaceResult, error)
- func (searchService *SearchService) SearchFaceByObsUrl(faceSetName string, imageUrl string) (*result.SearchFaceResult, error)
- func (searchService *SearchService) SearchFaceByObsUrlExt(faceSetName string, imageUrl string, topN int, threshold float64) (*result.SearchFaceResult, error)
- func (searchService *SearchService) SearchFaceByObsUrlFull(faceSetName string, imageUrl string, topN int, threshold float64, ...) (*result.SearchFaceResult, error)
Constants ¶
View Source
const ( BASE64 = iota OBSURL FACEID )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CompareService ¶
type CompareService struct {
// contains filtered or unexported fields
}
func (*CompareService) CompareFaceByBase64 ¶
func (compareService *CompareService) CompareFaceByBase64(image1Base64 string, image2Base64 string) (*result.CompareFaceResult, error)
func (*CompareService) CompareFaceByFile ¶
func (compareService *CompareService) CompareFaceByFile(image1Path string, image2Path string) (*result.CompareFaceResult, error)
func (*CompareService) CompareFaceByObsUrl ¶
func (compareService *CompareService) CompareFaceByObsUrl(image1Url string, image2Url string) (*result.CompareFaceResult, error)
type DetectService ¶
type DetectService struct {
// contains filtered or unexported fields
}
func (*DetectService) DetectFaceByBase64 ¶
func (detectService *DetectService) DetectFaceByBase64(imageBase64 string) (*result.DetectFaceResult, error)
func (*DetectService) DetectFaceByBase64WithAttr ¶
func (detectService *DetectService) DetectFaceByBase64WithAttr(imageBase64 string, attributes string) (*result.DetectFaceResult, error)
func (*DetectService) DetectFaceByFile ¶
func (detectService *DetectService) DetectFaceByFile(imagePath string) (*result.DetectFaceResult, error)
func (*DetectService) DetectFaceByFileWithAttr ¶
func (detectService *DetectService) DetectFaceByFileWithAttr(imagePath string, attributes string) (*result.DetectFaceResult, error)
func (*DetectService) DetectFaceByObsUrl ¶
func (detectService *DetectService) DetectFaceByObsUrl(obsUrl string) (*result.DetectFaceResult, error)
func (*DetectService) DetectFaceByObsUrlWithAttr ¶
func (detectService *DetectService) DetectFaceByObsUrlWithAttr(obsUrl string, attributes string) (*result.DetectFaceResult, error)
type FaceService ¶
type FaceService struct {
// contains filtered or unexported fields
}
func (*FaceService) AddFaceByBae64 ¶
func (faceService *FaceService) AddFaceByBae64(faceSetName string, imageBase64 string) (*result.AddFaceResult, error)
func (*FaceService) AddFaceByBae64Full ¶
func (faceService *FaceService) AddFaceByBae64Full(faceSetName string, externalImageId string, imageBase64 string, addExternalFields *param.AddExternalFields) (*result.AddFaceResult, error)
func (*FaceService) AddFaceByBae64WithExFields ¶
func (faceService *FaceService) AddFaceByBae64WithExFields(faceSetName string, imageBase64 string, addExternalFields *param.AddExternalFields) (*result.AddFaceResult, error)
func (*FaceService) AddFaceByBae64WithExImgId ¶
func (faceService *FaceService) AddFaceByBae64WithExImgId(faceSetName string, externalImageId string, imageBase64 string) (*result.AddFaceResult, error)
func (*FaceService) AddFaceByFile ¶
func (faceService *FaceService) AddFaceByFile(faceSetName string, imagePath string) (*result.AddFaceResult, error)
func (*FaceService) AddFaceByFileFull ¶
func (faceService *FaceService) AddFaceByFileFull(faceSetName string, externalImageId string, imagePath string, addExternalFields *param.AddExternalFields) (*result.AddFaceResult, error)
func (*FaceService) AddFaceByFileWithExFields ¶
func (faceService *FaceService) AddFaceByFileWithExFields(faceSetName string, imagePath string, addExternalFields *param.AddExternalFields) (*result.AddFaceResult, error)
func (*FaceService) AddFaceByFileWithExImgId ¶
func (faceService *FaceService) AddFaceByFileWithExImgId(faceSetName string, externalImageId string, imagePath string) (*result.AddFaceResult, error)
func (*FaceService) AddFaceByObsUrl ¶
func (faceService *FaceService) AddFaceByObsUrl(faceSetName string, imageUrl string) (*result.AddFaceResult, error)
func (*FaceService) AddFaceByObsUrlFull ¶
func (faceService *FaceService) AddFaceByObsUrlFull(faceSetName string, externalImageId string, imageUrl string, addExternalFields *param.AddExternalFields) (*result.AddFaceResult, error)
func (*FaceService) AddFaceByObsUrlWithExFields ¶
func (faceService *FaceService) AddFaceByObsUrlWithExFields(faceSetName string, imageUrl string, addExternalFields *param.AddExternalFields) (*result.AddFaceResult, error)
func (*FaceService) AddFaceByObsUrlWithExImgId ¶
func (faceService *FaceService) AddFaceByObsUrlWithExImgId(faceSetName string, externalImageId string, imageUrl string) (*result.AddFaceResult, error)
func (*FaceService) DeleteFaceByExternalImageId ¶
func (faceService *FaceService) DeleteFaceByExternalImageId(faceSetName string, externalImageId string) (*result.DeleteFaceResult, error)
func (*FaceService) DeleteFaceByFaceId ¶
func (faceService *FaceService) DeleteFaceByFaceId(faceSetName string, faceId string) (*result.DeleteFaceResult, error)
func (*FaceService) DeleteFaceByFieldId ¶
func (faceService *FaceService) DeleteFaceByFieldId(faceSetName string, fieldId string, fieldValue string) (*result.DeleteFaceResult, error)
func (*FaceService) DeleteFaceByFilter ¶
func (faceService *FaceService) DeleteFaceByFilter(faceSetName string, filter string) (*result.DeleteFaceResult, error)
func (*FaceService) GetFace ¶
func (faceService *FaceService) GetFace(faceSetName string, faceId string) (*result.GetFaceResult, error)
func (*FaceService) GetFaces ¶
func (faceService *FaceService) GetFaces(faceSetName string, offset int, limit int) (*result.GetFaceResult, error)
type FaceSetService ¶
type FaceSetService struct {
// contains filtered or unexported fields
}
func (*FaceSetService) CreateFaceSet ¶
func (faceSetService *FaceSetService) CreateFaceSet(faceSetName string) (*result.CreateFaceSetResult, error)
func (*FaceSetService) CreateFaceSetWithCapacity ¶
func (faceSetService *FaceSetService) CreateFaceSetWithCapacity(faceSetName string, faceSetCapacity int) (*result.CreateFaceSetResult, error)
func (*FaceSetService) CreateFaceSetWithExtFields ¶
func (faceSetService *FaceSetService) CreateFaceSetWithExtFields(faceSetName string, faceSetCapacity int, createExtrnalFields *param.CreateExternalFields) (*result.CreateFaceSetResult, error)
func (*FaceSetService) DeleteFaceSet ¶
func (faceSetService *FaceSetService) DeleteFaceSet(faceSetName string) (*result.DeleteFaceSetResult, error)
func (*FaceSetService) GetAllFaceSets ¶
func (faceSetService *FaceSetService) GetAllFaceSets() (*result.GetAllFaceSetsResult, error)
func (*FaceSetService) GetFaceSet ¶
func (faceSetService *FaceSetService) GetFaceSet(faceSetName string) (*result.GetFaceSetResult, error)
type FrsClient ¶
type FrsClient struct {
// contains filtered or unexported fields
}
func NewFrsClientWithProxy ¶
func (*FrsClient) GetCompareService ¶
func (frsClient *FrsClient) GetCompareService() *CompareService
func (*FrsClient) GetDetectService ¶
func (frsClient *FrsClient) GetDetectService() *DetectService
func (*FrsClient) GetFaceService ¶
func (frsClient *FrsClient) GetFaceService() *FaceService
func (*FrsClient) GetFaceSetService ¶
func (frsClient *FrsClient) GetFaceSetService() *FaceSetService
func (*FrsClient) GetLiveDetectService ¶
func (frsClient *FrsClient) GetLiveDetectService() *LiveDetectService
func (*FrsClient) GetQualityService ¶
func (frsClient *FrsClient) GetQualityService() *QualityService
func (*FrsClient) GetSearchService ¶
func (frsClient *FrsClient) GetSearchService() *SearchService
func (*FrsClient) GetV2 ¶
func (frsClient *FrsClient) GetV2() *v2.ApiCollectionV2
type LiveDetectService ¶
type LiveDetectService struct {
// contains filtered or unexported fields
}
func (*LiveDetectService) LiveDetectByBase64 ¶
func (liveDetectService *LiveDetectService) LiveDetectByBase64(videoBase64 string, actions string) (*result.LiveDetectResult, error)
func (*LiveDetectService) LiveDetectByBase64WithActTime ¶
func (liveDetectService *LiveDetectService) LiveDetectByBase64WithActTime(videoBase64 string, actions string, actionTime string) (*result.LiveDetectResult, error)
func (*LiveDetectService) LiveDetectByFile ¶
func (liveDetectService *LiveDetectService) LiveDetectByFile(videoPath string, actions string) (*result.LiveDetectResult, error)
func (*LiveDetectService) LiveDetectByFileWithActTime ¶
func (liveDetectService *LiveDetectService) LiveDetectByFileWithActTime(videoPath string, actions string, actionTime string) (*result.LiveDetectResult, error)
func (*LiveDetectService) LiveDetectByObsUrl ¶
func (liveDetectService *LiveDetectService) LiveDetectByObsUrl(videoUrl string, actions string) (*result.LiveDetectResult, error)
func (*LiveDetectService) LiveDetectByObsUrlWithActTime ¶
func (liveDetectService *LiveDetectService) LiveDetectByObsUrlWithActTime(videoUrl string, actions string, actionTime string) (*result.LiveDetectResult, error)
type QualityService ¶
type QualityService struct {
// contains filtered or unexported fields
}
func (*QualityService) BlurClassifyByBase64 ¶
func (qualityService *QualityService) BlurClassifyByBase64(imageBase64 string) (*result.BlurClassifyResult, error)
func (*QualityService) BlurClassifyByFile ¶
func (qualityService *QualityService) BlurClassifyByFile(imagePath string) (*result.BlurClassifyResult, error)
func (*QualityService) BlurClassifyByObsUrl ¶
func (qualityService *QualityService) BlurClassifyByObsUrl(imageUrl string) (*result.BlurClassifyResult, error)
func (*QualityService) FaceQualityByBase64 ¶
func (qualityService *QualityService) FaceQualityByBase64(imageBase64 string) (*result.FaceQualityResult, error)
func (*QualityService) FaceQualityByFile ¶
func (qualityService *QualityService) FaceQualityByFile(imagePath string) (*result.FaceQualityResult, error)
func (*QualityService) FaceQualityByObsUrl ¶
func (qualityService *QualityService) FaceQualityByObsUrl(imageUrl string) (*result.FaceQualityResult, error)
func (*QualityService) HeadPoseEstimateByBase64 ¶
func (qualityService *QualityService) HeadPoseEstimateByBase64(imageBase64 string) (*result.HeadPoseEstimateResult, error)
func (*QualityService) HeadPoseEstimateByFile ¶
func (qualityService *QualityService) HeadPoseEstimateByFile(imagePath string) (*result.HeadPoseEstimateResult, error)
func (*QualityService) HeadPoseEstimateByObsUrl ¶
func (qualityService *QualityService) HeadPoseEstimateByObsUrl(imageUrl string) (*result.HeadPoseEstimateResult, error)
type SearchService ¶
type SearchService struct {
// contains filtered or unexported fields
}
func (*SearchService) SearchFaceByBase64 ¶
func (searchService *SearchService) SearchFaceByBase64(faceSetName string, imageBase64 string) (*result.SearchFaceResult, error)
func (*SearchService) SearchFaceByBase64Ext ¶
func (searchService *SearchService) SearchFaceByBase64Ext(faceSetName string, imageBase64 string, topN int, threshold float64) (*result.SearchFaceResult, error)
func (*SearchService) SearchFaceByBase64Full ¶
func (searchService *SearchService) SearchFaceByBase64Full(faceSetName string, imageBase64 string, topN int, threshold float64, searchSort *param.SearchSort, searchReturnFields *param.SearchReturnFields, filter string) (*result.SearchFaceResult, error)
base64
func (*SearchService) SearchFaceByFaceId ¶
func (searchService *SearchService) SearchFaceByFaceId(faceSetName string, faceId string) (*result.SearchFaceResult, error)
func (*SearchService) SearchFaceByFaceIdExt ¶
func (searchService *SearchService) SearchFaceByFaceIdExt(faceSetName string, faceId string, topN int, threshold float64) (*result.SearchFaceResult, error)
func (*SearchService) SearchFaceByFaceIdFull ¶
func (searchService *SearchService) SearchFaceByFaceIdFull(faceSetName string, faceId string, topN int, threshold float64, searchSort *param.SearchSort, searchReturnFields *param.SearchReturnFields, filter string) (*result.SearchFaceResult, error)
face id
func (*SearchService) SearchFaceByFile ¶
func (searchService *SearchService) SearchFaceByFile(faceSetName string, imagePath string) (*result.SearchFaceResult, error)
func (*SearchService) SearchFaceByFileExt ¶
func (searchService *SearchService) SearchFaceByFileExt(faceSetName string, imagePath string, topN int, threshold float64) (*result.SearchFaceResult, error)
func (*SearchService) SearchFaceByFileFull ¶
func (searchService *SearchService) SearchFaceByFileFull(faceSetName string, imagePath string, topN int, threshold float64, searchSort *param.SearchSort, searchReturnFields *param.SearchReturnFields, filter string) (*result.SearchFaceResult, error)
file
func (*SearchService) SearchFaceByObsUrl ¶
func (searchService *SearchService) SearchFaceByObsUrl(faceSetName string, imageUrl string) (*result.SearchFaceResult, error)
func (*SearchService) SearchFaceByObsUrlExt ¶
func (searchService *SearchService) SearchFaceByObsUrlExt(faceSetName string, imageUrl string, topN int, threshold float64) (*result.SearchFaceResult, error)
func (*SearchService) SearchFaceByObsUrlFull ¶
func (searchService *SearchService) SearchFaceByObsUrlFull(faceSetName string, imageUrl string, topN int, threshold float64, searchSort *param.SearchSort, searchReturnFields *param.SearchReturnFields, filter string) (*result.SearchFaceResult, error)
obs url
Source Files ¶
Click to show internal directories.
Click to hide internal directories.