Documentation ¶
Index ¶
- Constants
- type ApiCollectionV2
- func (api *ApiCollectionV2) GetCompareService() *CompareServiceV2
- func (api *ApiCollectionV2) GetDetectService() *DetectServiceV2
- func (api *ApiCollectionV2) GetFaceService() *FaceServiceV2
- func (api *ApiCollectionV2) GetFaceSetService() *FaceSetServiceV2
- func (api *ApiCollectionV2) GetLiveDetectService() *LiveDetectServiceV2
- func (api *ApiCollectionV2) GetSearchService() *SearchServiceV2
- type CompareServiceV2
- func (compareService *CompareServiceV2) CompareFaceByBase64(image1Base64 string, image2Base64 string) (*result.CompareFaceResult, error)
- func (compareService *CompareServiceV2) CompareFaceByFile(image1Path string, image2Path string) (*result.CompareFaceResult, error)
- func (compareService *CompareServiceV2) CompareFaceByObsUrl(image1Url string, image2Url string) (*result.CompareFaceResult, error)
- type DetectServiceV2
- func (detectService *DetectServiceV2) DetectFaceByBase64(imageBase64 string) (*result.DetectFaceResult, error)
- func (detectService *DetectServiceV2) DetectFaceByFile(imagePath string) (*result.DetectFaceResult, error)
- func (detectService *DetectServiceV2) DetectFaceByObsUrl(obsUrl string) (*result.DetectFaceResult, error)
- type FaceServiceV2
- func (faceService *FaceServiceV2) AddFaceByBae64(faceSetName string, imageBase64 string) (*result.AddFaceResult, error)
- func (faceService *FaceServiceV2) AddFaceByBae64Full(faceSetName string, externalImageId string, imageBase64 string, ...) (*result.AddFaceResult, error)
- func (faceService *FaceServiceV2) AddFaceByBae64WithExFields(faceSetName string, imageBase64 string, ...) (*result.AddFaceResult, error)
- func (faceService *FaceServiceV2) AddFaceByBae64WithExImgId(faceSetName string, externalImageId string, imageBase64 string) (*result.AddFaceResult, error)
- func (faceService *FaceServiceV2) AddFaceByFile(faceSetName string, imagePath string) (*result.AddFaceResult, error)
- func (faceService *FaceServiceV2) AddFaceByFileFull(faceSetName string, externalImageId string, imagePath string, ...) (*result.AddFaceResult, error)
- func (faceService *FaceServiceV2) AddFaceByFileWithExFields(faceSetName string, imagePath string, ...) (*result.AddFaceResult, error)
- func (faceService *FaceServiceV2) AddFaceByFileWithExImgId(faceSetName string, externalImageId string, imagePath string) (*result.AddFaceResult, error)
- func (faceService *FaceServiceV2) AddFaceByObsUrl(faceSetName string, imageUrl string) (*result.AddFaceResult, error)
- func (faceService *FaceServiceV2) AddFaceByObsUrlFull(faceSetName string, externalImageId string, imageUrl string, ...) (*result.AddFaceResult, error)
- func (faceService *FaceServiceV2) AddFaceByObsUrlWithExFields(faceSetName string, imageUrl string, ...) (*result.AddFaceResult, error)
- func (faceService *FaceServiceV2) AddFaceByObsUrlWithExImgId(faceSetName string, externalImageId string, imageUrl string) (*result.AddFaceResult, error)
- func (faceService *FaceServiceV2) DeleteFaceByExternalImageId(faceSetName string, externalImageId string) (*result.DeleteFaceResult, error)
- func (faceService *FaceServiceV2) DeleteFaceByFaceId(faceSetName string, faceId string) (*result.DeleteFaceResult, error)
- func (faceService *FaceServiceV2) DeleteFaceByFieldId(faceSetName string, fieldId string, fieldValue string) (*result.DeleteFaceResult, error)
- func (faceService *FaceServiceV2) DeleteFaceByFilter(faceSetName string, filter string) (*result.DeleteFaceResult, error)
- func (faceService *FaceServiceV2) GetFace(faceSetName string, faceId string) (*result.GetFaceResult, error)
- func (faceService *FaceServiceV2) GetFaces(faceSetName string, offset int, limit int) (*result.GetFaceResult, error)
- type FaceSetServiceV2
- func (faceSetService *FaceSetServiceV2) CreateFaceSet(faceSetName string) (*result.CreateFaceSetResult, error)
- func (faceSetService *FaceSetServiceV2) CreateFaceSetWithCapacity(faceSetName string, faceSetCapacity int) (*result.CreateFaceSetResult, error)
- func (faceSetService *FaceSetServiceV2) CreateFaceSetWithExtFields(faceSetName string, faceSetCapacity int, ...) (*result.CreateFaceSetResult, error)
- func (faceSetService *FaceSetServiceV2) DeleteFaceSet(faceSetName string) (*result.DeleteFaceSetResult, error)
- func (faceSetService *FaceSetServiceV2) GetAllFaceSets() (*result.GetAllFaceSetsResult, error)
- func (faceSetService *FaceSetServiceV2) GetFaceSet(faceSetName string) (*result.GetFaceSetResult, error)
- type LiveDetectServiceV2
- func (liveDetectService *LiveDetectServiceV2) LiveDetectByBase64(videoBase64 string, actions string) (*result.LiveDetectResult, error)
- func (liveDetectService *LiveDetectServiceV2) LiveDetectByBase64WithActTime(videoBase64 string, actions string, actionTime string) (*result.LiveDetectResult, error)
- func (liveDetectService *LiveDetectServiceV2) LiveDetectByFile(videoPath string, actions string) (*result.LiveDetectResult, error)
- func (liveDetectService *LiveDetectServiceV2) LiveDetectByFileWithActTime(videoPath string, actions string, actionTime string) (*result.LiveDetectResult, error)
- func (liveDetectService *LiveDetectServiceV2) LiveDetectByObsUrl(videoUrl string, actions string) (*result.LiveDetectResult, error)
- func (liveDetectService *LiveDetectServiceV2) LiveDetectByObsUrlWithActTime(videoUrl string, actions string, actionTime string) (*result.LiveDetectResult, error)
- type SearchServiceV2
- func (searchService *SearchServiceV2) SearchFaceByBase64(faceSetName string, imageBase64 string) (*result.SearchFaceResult, error)
- func (searchService *SearchServiceV2) SearchFaceByBase64Ext(faceSetName string, imageBase64 string, topN int, threshold float64) (*result.SearchFaceResult, error)
- func (searchService *SearchServiceV2) SearchFaceByBase64Full(faceSetName string, imageBase64 string, topN int, threshold float64, ...) (*result.SearchFaceResult, error)
- func (searchService *SearchServiceV2) SearchFaceByFaceId(faceSetName string, faceId string) (*result.SearchFaceResult, error)
- func (searchService *SearchServiceV2) SearchFaceByFaceIdExt(faceSetName string, faceId string, topN int, threshold float64) (*result.SearchFaceResult, error)
- func (searchService *SearchServiceV2) SearchFaceByFaceIdFull(faceSetName string, faceId string, topN int, threshold float64, ...) (*result.SearchFaceResult, error)
- func (searchService *SearchServiceV2) SearchFaceByFile(faceSetName string, imagePath string) (*result.SearchFaceResult, error)
- func (searchService *SearchServiceV2) SearchFaceByFileExt(faceSetName string, imagePath string, topN int, threshold float64) (*result.SearchFaceResult, error)
- func (searchService *SearchServiceV2) SearchFaceByFileFull(faceSetName string, imagePath string, topN int, threshold float64, ...) (*result.SearchFaceResult, error)
- func (searchService *SearchServiceV2) SearchFaceByObsUrl(faceSetName string, imageUrl string) (*result.SearchFaceResult, error)
- func (searchService *SearchServiceV2) SearchFaceByObsUrlExt(faceSetName string, imageUrl string, topN int, threshold float64) (*result.SearchFaceResult, error)
- func (searchService *SearchServiceV2) 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 ApiCollectionV2 ¶
type ApiCollectionV2 struct {
// contains filtered or unexported fields
}
func NewApiCollectionV2 ¶
func NewApiCollectionV2(accessService *access.AccessService, projectId string) *ApiCollectionV2
func (*ApiCollectionV2) GetCompareService ¶
func (api *ApiCollectionV2) GetCompareService() *CompareServiceV2
func (*ApiCollectionV2) GetDetectService ¶
func (api *ApiCollectionV2) GetDetectService() *DetectServiceV2
func (*ApiCollectionV2) GetFaceService ¶
func (api *ApiCollectionV2) GetFaceService() *FaceServiceV2
func (*ApiCollectionV2) GetFaceSetService ¶
func (api *ApiCollectionV2) GetFaceSetService() *FaceSetServiceV2
func (*ApiCollectionV2) GetLiveDetectService ¶
func (api *ApiCollectionV2) GetLiveDetectService() *LiveDetectServiceV2
func (*ApiCollectionV2) GetSearchService ¶
func (api *ApiCollectionV2) GetSearchService() *SearchServiceV2
type CompareServiceV2 ¶
type CompareServiceV2 struct {
// contains filtered or unexported fields
}
func (*CompareServiceV2) CompareFaceByBase64 ¶
func (compareService *CompareServiceV2) CompareFaceByBase64(image1Base64 string, image2Base64 string) (*result.CompareFaceResult, error)
func (*CompareServiceV2) CompareFaceByFile ¶
func (compareService *CompareServiceV2) CompareFaceByFile(image1Path string, image2Path string) (*result.CompareFaceResult, error)
func (*CompareServiceV2) CompareFaceByObsUrl ¶
func (compareService *CompareServiceV2) CompareFaceByObsUrl(image1Url string, image2Url string) (*result.CompareFaceResult, error)
type DetectServiceV2 ¶
type DetectServiceV2 struct {
// contains filtered or unexported fields
}
func (*DetectServiceV2) DetectFaceByBase64 ¶
func (detectService *DetectServiceV2) DetectFaceByBase64(imageBase64 string) (*result.DetectFaceResult, error)
func (*DetectServiceV2) DetectFaceByFile ¶
func (detectService *DetectServiceV2) DetectFaceByFile(imagePath string) (*result.DetectFaceResult, error)
func (*DetectServiceV2) DetectFaceByObsUrl ¶
func (detectService *DetectServiceV2) DetectFaceByObsUrl(obsUrl string) (*result.DetectFaceResult, error)
type FaceServiceV2 ¶
type FaceServiceV2 struct {
// contains filtered or unexported fields
}
func (*FaceServiceV2) AddFaceByBae64 ¶
func (faceService *FaceServiceV2) AddFaceByBae64(faceSetName string, imageBase64 string) (*result.AddFaceResult, error)
func (*FaceServiceV2) AddFaceByBae64Full ¶
func (faceService *FaceServiceV2) AddFaceByBae64Full(faceSetName string, externalImageId string, imageBase64 string, addExternalFields *param.AddExternalFields) (*result.AddFaceResult, error)
func (*FaceServiceV2) AddFaceByBae64WithExFields ¶
func (faceService *FaceServiceV2) AddFaceByBae64WithExFields(faceSetName string, imageBase64 string, addExternalFields *param.AddExternalFields) (*result.AddFaceResult, error)
func (*FaceServiceV2) AddFaceByBae64WithExImgId ¶
func (faceService *FaceServiceV2) AddFaceByBae64WithExImgId(faceSetName string, externalImageId string, imageBase64 string) (*result.AddFaceResult, error)
func (*FaceServiceV2) AddFaceByFile ¶
func (faceService *FaceServiceV2) AddFaceByFile(faceSetName string, imagePath string) (*result.AddFaceResult, error)
func (*FaceServiceV2) AddFaceByFileFull ¶
func (faceService *FaceServiceV2) AddFaceByFileFull(faceSetName string, externalImageId string, imagePath string, addExternalFields *param.AddExternalFields) (*result.AddFaceResult, error)
func (*FaceServiceV2) AddFaceByFileWithExFields ¶
func (faceService *FaceServiceV2) AddFaceByFileWithExFields(faceSetName string, imagePath string, addExternalFields *param.AddExternalFields) (*result.AddFaceResult, error)
func (*FaceServiceV2) AddFaceByFileWithExImgId ¶
func (faceService *FaceServiceV2) AddFaceByFileWithExImgId(faceSetName string, externalImageId string, imagePath string) (*result.AddFaceResult, error)
func (*FaceServiceV2) AddFaceByObsUrl ¶
func (faceService *FaceServiceV2) AddFaceByObsUrl(faceSetName string, imageUrl string) (*result.AddFaceResult, error)
func (*FaceServiceV2) AddFaceByObsUrlFull ¶
func (faceService *FaceServiceV2) AddFaceByObsUrlFull(faceSetName string, externalImageId string, imageUrl string, addExternalFields *param.AddExternalFields) (*result.AddFaceResult, error)
func (*FaceServiceV2) AddFaceByObsUrlWithExFields ¶
func (faceService *FaceServiceV2) AddFaceByObsUrlWithExFields(faceSetName string, imageUrl string, addExternalFields *param.AddExternalFields) (*result.AddFaceResult, error)
func (*FaceServiceV2) AddFaceByObsUrlWithExImgId ¶
func (faceService *FaceServiceV2) AddFaceByObsUrlWithExImgId(faceSetName string, externalImageId string, imageUrl string) (*result.AddFaceResult, error)
func (*FaceServiceV2) DeleteFaceByExternalImageId ¶
func (faceService *FaceServiceV2) DeleteFaceByExternalImageId(faceSetName string, externalImageId string) (*result.DeleteFaceResult, error)
func (*FaceServiceV2) DeleteFaceByFaceId ¶
func (faceService *FaceServiceV2) DeleteFaceByFaceId(faceSetName string, faceId string) (*result.DeleteFaceResult, error)
func (*FaceServiceV2) DeleteFaceByFieldId ¶
func (faceService *FaceServiceV2) DeleteFaceByFieldId(faceSetName string, fieldId string, fieldValue string) (*result.DeleteFaceResult, error)
func (*FaceServiceV2) DeleteFaceByFilter ¶
func (faceService *FaceServiceV2) DeleteFaceByFilter(faceSetName string, filter string) (*result.DeleteFaceResult, error)
func (*FaceServiceV2) GetFace ¶
func (faceService *FaceServiceV2) GetFace(faceSetName string, faceId string) (*result.GetFaceResult, error)
func (*FaceServiceV2) GetFaces ¶
func (faceService *FaceServiceV2) GetFaces(faceSetName string, offset int, limit int) (*result.GetFaceResult, error)
type FaceSetServiceV2 ¶
type FaceSetServiceV2 struct {
// contains filtered or unexported fields
}
func (*FaceSetServiceV2) CreateFaceSet ¶
func (faceSetService *FaceSetServiceV2) CreateFaceSet(faceSetName string) (*result.CreateFaceSetResult, error)
func (*FaceSetServiceV2) CreateFaceSetWithCapacity ¶
func (faceSetService *FaceSetServiceV2) CreateFaceSetWithCapacity(faceSetName string, faceSetCapacity int) (*result.CreateFaceSetResult, error)
func (*FaceSetServiceV2) CreateFaceSetWithExtFields ¶
func (faceSetService *FaceSetServiceV2) CreateFaceSetWithExtFields(faceSetName string, faceSetCapacity int, createExtrnalFields *param.CreateExternalFields) (*result.CreateFaceSetResult, error)
func (*FaceSetServiceV2) DeleteFaceSet ¶
func (faceSetService *FaceSetServiceV2) DeleteFaceSet(faceSetName string) (*result.DeleteFaceSetResult, error)
func (*FaceSetServiceV2) GetAllFaceSets ¶
func (faceSetService *FaceSetServiceV2) GetAllFaceSets() (*result.GetAllFaceSetsResult, error)
func (*FaceSetServiceV2) GetFaceSet ¶
func (faceSetService *FaceSetServiceV2) GetFaceSet(faceSetName string) (*result.GetFaceSetResult, error)
type LiveDetectServiceV2 ¶
type LiveDetectServiceV2 struct {
// contains filtered or unexported fields
}
func (*LiveDetectServiceV2) LiveDetectByBase64 ¶
func (liveDetectService *LiveDetectServiceV2) LiveDetectByBase64(videoBase64 string, actions string) (*result.LiveDetectResult, error)
func (*LiveDetectServiceV2) LiveDetectByBase64WithActTime ¶
func (liveDetectService *LiveDetectServiceV2) LiveDetectByBase64WithActTime(videoBase64 string, actions string, actionTime string) (*result.LiveDetectResult, error)
func (*LiveDetectServiceV2) LiveDetectByFile ¶
func (liveDetectService *LiveDetectServiceV2) LiveDetectByFile(videoPath string, actions string) (*result.LiveDetectResult, error)
func (*LiveDetectServiceV2) LiveDetectByFileWithActTime ¶
func (liveDetectService *LiveDetectServiceV2) LiveDetectByFileWithActTime(videoPath string, actions string, actionTime string) (*result.LiveDetectResult, error)
func (*LiveDetectServiceV2) LiveDetectByObsUrl ¶
func (liveDetectService *LiveDetectServiceV2) LiveDetectByObsUrl(videoUrl string, actions string) (*result.LiveDetectResult, error)
func (*LiveDetectServiceV2) LiveDetectByObsUrlWithActTime ¶
func (liveDetectService *LiveDetectServiceV2) LiveDetectByObsUrlWithActTime(videoUrl string, actions string, actionTime string) (*result.LiveDetectResult, error)
type SearchServiceV2 ¶
type SearchServiceV2 struct {
// contains filtered or unexported fields
}
func (*SearchServiceV2) SearchFaceByBase64 ¶
func (searchService *SearchServiceV2) SearchFaceByBase64(faceSetName string, imageBase64 string) (*result.SearchFaceResult, error)
func (*SearchServiceV2) SearchFaceByBase64Ext ¶
func (searchService *SearchServiceV2) SearchFaceByBase64Ext(faceSetName string, imageBase64 string, topN int, threshold float64) (*result.SearchFaceResult, error)
func (*SearchServiceV2) SearchFaceByBase64Full ¶
func (searchService *SearchServiceV2) SearchFaceByBase64Full(faceSetName string, imageBase64 string, topN int, threshold float64, searchSort *param.SearchSort, searchReturnFields *param.SearchReturnFields, filter string) (*result.SearchFaceResult, error)
base64
func (*SearchServiceV2) SearchFaceByFaceId ¶
func (searchService *SearchServiceV2) SearchFaceByFaceId(faceSetName string, faceId string) (*result.SearchFaceResult, error)
func (*SearchServiceV2) SearchFaceByFaceIdExt ¶
func (searchService *SearchServiceV2) SearchFaceByFaceIdExt(faceSetName string, faceId string, topN int, threshold float64) (*result.SearchFaceResult, error)
func (*SearchServiceV2) SearchFaceByFaceIdFull ¶
func (searchService *SearchServiceV2) SearchFaceByFaceIdFull(faceSetName string, faceId string, topN int, threshold float64, searchSort *param.SearchSort, searchReturnFields *param.SearchReturnFields, filter string) (*result.SearchFaceResult, error)
face id
func (*SearchServiceV2) SearchFaceByFile ¶
func (searchService *SearchServiceV2) SearchFaceByFile(faceSetName string, imagePath string) (*result.SearchFaceResult, error)
func (*SearchServiceV2) SearchFaceByFileExt ¶
func (searchService *SearchServiceV2) SearchFaceByFileExt(faceSetName string, imagePath string, topN int, threshold float64) (*result.SearchFaceResult, error)
func (*SearchServiceV2) SearchFaceByFileFull ¶
func (searchService *SearchServiceV2) SearchFaceByFileFull(faceSetName string, imagePath string, topN int, threshold float64, searchSort *param.SearchSort, searchReturnFields *param.SearchReturnFields, filter string) (*result.SearchFaceResult, error)
file
func (*SearchServiceV2) SearchFaceByObsUrl ¶
func (searchService *SearchServiceV2) SearchFaceByObsUrl(faceSetName string, imageUrl string) (*result.SearchFaceResult, error)
func (*SearchServiceV2) SearchFaceByObsUrlExt ¶
func (searchService *SearchServiceV2) SearchFaceByObsUrlExt(faceSetName string, imageUrl string, topN int, threshold float64) (*result.SearchFaceResult, error)
func (*SearchServiceV2) SearchFaceByObsUrlFull ¶
func (searchService *SearchServiceV2) SearchFaceByObsUrlFull(faceSetName string, imageUrl string, topN int, threshold float64, searchSort *param.SearchSort, searchReturnFields *param.SearchReturnFields, filter string) (*result.SearchFaceResult, error)
obs url
Click to show internal directories.
Click to hide internal directories.