ivision

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EndpointMap map[string]string

EndpointMap Endpoint Data

View Source
var EndpointType = "regional"

EndpointType regional or central

Functions

func GetEndpointMap

func GetEndpointMap() map[string]string

GetEndpointMap Get Endpoint Data Map

func GetEndpointType

func GetEndpointType() string

GetEndpointType Get Endpoint Type Value

func SetClientProperty

func SetClientProperty(client *Client, propertyName string, propertyValue interface{})

SetClientProperty Set Property by Reflect

func SetEndpointDataToClient

func SetEndpointDataToClient(client *Client)

SetEndpointDataToClient Set EndpointMap and ENdpointType

Types

type Client

type Client struct {
	sdk.Client
}

Client is the sdk client struct, each func corresponds to an OpenAPI

func NewClient

func NewClient() (client *Client, err error)

NewClient creates a sdk client with environment variables

func NewClientWithAccessKey

func NewClientWithAccessKey(regionId, accessKeyId, accessKeySecret string) (client *Client, err error)

NewClientWithAccessKey is a shortcut to create sdk client with accesskey usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md

func NewClientWithEcsRamRole

func NewClientWithEcsRamRole(regionId string, roleName string) (client *Client, err error)

NewClientWithEcsRamRole is a shortcut to create sdk client with ecs ram role usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md

func NewClientWithOptions

func NewClientWithOptions(regionId string, config *sdk.Config, credential auth.Credential) (client *Client, err error)

NewClientWithOptions creates a sdk client with regionId/sdkConfig/credential this is the common api to create a sdk client

func NewClientWithProvider

func NewClientWithProvider(regionId string, providers ...provider.Provider) (client *Client, err error)

NewClientWithProvider creates a sdk client with providers usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md

func NewClientWithRamRoleArn

func NewClientWithRamRoleArn(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName string) (client *Client, err error)

NewClientWithRamRoleArn is a shortcut to create sdk client with ram roleArn usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md

func NewClientWithRamRoleArnAndPolicy

func NewClientWithRamRoleArnAndPolicy(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName, policy string) (client *Client, err error)

NewClientWithRamRoleArn is a shortcut to create sdk client with ram roleArn and policy usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md

func NewClientWithRsaKeyPair

func NewClientWithRsaKeyPair(regionId string, publicKeyId, privateKey string, sessionExpiration int) (client *Client, err error)

NewClientWithRsaKeyPair is a shortcut to create sdk client with rsa key pair usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md

func NewClientWithStsToken

func NewClientWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken string) (client *Client, err error)

NewClientWithStsToken is a shortcut to create sdk client with sts token usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md

func (*Client) CreateFaceGroup

func (client *Client) CreateFaceGroup(request *CreateFaceGroupRequest) (response *CreateFaceGroupResponse, err error)

CreateFaceGroup invokes the ivision.CreateFaceGroup API synchronously

func (*Client) CreateFaceGroupWithCallback

func (client *Client) CreateFaceGroupWithCallback(request *CreateFaceGroupRequest, callback func(response *CreateFaceGroupResponse, err error)) <-chan int

CreateFaceGroupWithCallback invokes the ivision.CreateFaceGroup API asynchronously

func (*Client) CreateFaceGroupWithChan

func (client *Client) CreateFaceGroupWithChan(request *CreateFaceGroupRequest) (<-chan *CreateFaceGroupResponse, <-chan error)

CreateFaceGroupWithChan invokes the ivision.CreateFaceGroup API asynchronously

func (*Client) CreateStreamPredict

func (client *Client) CreateStreamPredict(request *CreateStreamPredictRequest) (response *CreateStreamPredictResponse, err error)

CreateStreamPredict invokes the ivision.CreateStreamPredict API synchronously

func (*Client) CreateStreamPredictWithCallback

func (client *Client) CreateStreamPredictWithCallback(request *CreateStreamPredictRequest, callback func(response *CreateStreamPredictResponse, err error)) <-chan int

CreateStreamPredictWithCallback invokes the ivision.CreateStreamPredict API asynchronously

func (*Client) CreateStreamPredictWithChan

func (client *Client) CreateStreamPredictWithChan(request *CreateStreamPredictRequest) (<-chan *CreateStreamPredictResponse, <-chan error)

CreateStreamPredictWithChan invokes the ivision.CreateStreamPredict API asynchronously

func (*Client) DeleteFaceGroup

func (client *Client) DeleteFaceGroup(request *DeleteFaceGroupRequest) (response *DeleteFaceGroupResponse, err error)

DeleteFaceGroup invokes the ivision.DeleteFaceGroup API synchronously

func (*Client) DeleteFaceGroupWithCallback

func (client *Client) DeleteFaceGroupWithCallback(request *DeleteFaceGroupRequest, callback func(response *DeleteFaceGroupResponse, err error)) <-chan int

DeleteFaceGroupWithCallback invokes the ivision.DeleteFaceGroup API asynchronously

func (*Client) DeleteFaceGroupWithChan

func (client *Client) DeleteFaceGroupWithChan(request *DeleteFaceGroupRequest) (<-chan *DeleteFaceGroupResponse, <-chan error)

DeleteFaceGroupWithChan invokes the ivision.DeleteFaceGroup API asynchronously

func (*Client) DeleteStreamPredict

func (client *Client) DeleteStreamPredict(request *DeleteStreamPredictRequest) (response *DeleteStreamPredictResponse, err error)

DeleteStreamPredict invokes the ivision.DeleteStreamPredict API synchronously

func (*Client) DeleteStreamPredictWithCallback

func (client *Client) DeleteStreamPredictWithCallback(request *DeleteStreamPredictRequest, callback func(response *DeleteStreamPredictResponse, err error)) <-chan int

DeleteStreamPredictWithCallback invokes the ivision.DeleteStreamPredict API asynchronously

func (*Client) DeleteStreamPredictWithChan

func (client *Client) DeleteStreamPredictWithChan(request *DeleteStreamPredictRequest) (<-chan *DeleteStreamPredictResponse, <-chan error)

DeleteStreamPredictWithChan invokes the ivision.DeleteStreamPredict API asynchronously

func (*Client) DescribeFaceGroups

func (client *Client) DescribeFaceGroups(request *DescribeFaceGroupsRequest) (response *DescribeFaceGroupsResponse, err error)

DescribeFaceGroups invokes the ivision.DescribeFaceGroups API synchronously

func (*Client) DescribeFaceGroupsWithCallback

func (client *Client) DescribeFaceGroupsWithCallback(request *DescribeFaceGroupsRequest, callback func(response *DescribeFaceGroupsResponse, err error)) <-chan int

DescribeFaceGroupsWithCallback invokes the ivision.DescribeFaceGroups API asynchronously

func (*Client) DescribeFaceGroupsWithChan

func (client *Client) DescribeFaceGroupsWithChan(request *DescribeFaceGroupsRequest) (<-chan *DescribeFaceGroupsResponse, <-chan error)

DescribeFaceGroupsWithChan invokes the ivision.DescribeFaceGroups API asynchronously

func (*Client) DescribeStreamPredictResult

func (client *Client) DescribeStreamPredictResult(request *DescribeStreamPredictResultRequest) (response *DescribeStreamPredictResultResponse, err error)

DescribeStreamPredictResult invokes the ivision.DescribeStreamPredictResult API synchronously

func (*Client) DescribeStreamPredictResultWithCallback

func (client *Client) DescribeStreamPredictResultWithCallback(request *DescribeStreamPredictResultRequest, callback func(response *DescribeStreamPredictResultResponse, err error)) <-chan int

DescribeStreamPredictResultWithCallback invokes the ivision.DescribeStreamPredictResult API asynchronously

func (*Client) DescribeStreamPredictResultWithChan

func (client *Client) DescribeStreamPredictResultWithChan(request *DescribeStreamPredictResultRequest) (<-chan *DescribeStreamPredictResultResponse, <-chan error)

DescribeStreamPredictResultWithChan invokes the ivision.DescribeStreamPredictResult API asynchronously

func (*Client) DescribeStreamPredicts

func (client *Client) DescribeStreamPredicts(request *DescribeStreamPredictsRequest) (response *DescribeStreamPredictsResponse, err error)

DescribeStreamPredicts invokes the ivision.DescribeStreamPredicts API synchronously

func (*Client) DescribeStreamPredictsWithCallback

func (client *Client) DescribeStreamPredictsWithCallback(request *DescribeStreamPredictsRequest, callback func(response *DescribeStreamPredictsResponse, err error)) <-chan int

DescribeStreamPredictsWithCallback invokes the ivision.DescribeStreamPredicts API asynchronously

func (*Client) DescribeStreamPredictsWithChan

func (client *Client) DescribeStreamPredictsWithChan(request *DescribeStreamPredictsRequest) (<-chan *DescribeStreamPredictsResponse, <-chan error)

DescribeStreamPredictsWithChan invokes the ivision.DescribeStreamPredicts API asynchronously

func (*Client) ImagePredict

func (client *Client) ImagePredict(request *ImagePredictRequest) (response *ImagePredictResponse, err error)

ImagePredict invokes the ivision.ImagePredict API synchronously

func (*Client) ImagePredictWithCallback

func (client *Client) ImagePredictWithCallback(request *ImagePredictRequest, callback func(response *ImagePredictResponse, err error)) <-chan int

ImagePredictWithCallback invokes the ivision.ImagePredict API asynchronously

func (*Client) ImagePredictWithChan

func (client *Client) ImagePredictWithChan(request *ImagePredictRequest) (<-chan *ImagePredictResponse, <-chan error)

ImagePredictWithChan invokes the ivision.ImagePredict API asynchronously

func (*Client) RegisterFace

func (client *Client) RegisterFace(request *RegisterFaceRequest) (response *RegisterFaceResponse, err error)

RegisterFace invokes the ivision.RegisterFace API synchronously

func (*Client) RegisterFaceWithCallback

func (client *Client) RegisterFaceWithCallback(request *RegisterFaceRequest, callback func(response *RegisterFaceResponse, err error)) <-chan int

RegisterFaceWithCallback invokes the ivision.RegisterFace API asynchronously

func (*Client) RegisterFaceWithChan

func (client *Client) RegisterFaceWithChan(request *RegisterFaceRequest) (<-chan *RegisterFaceResponse, <-chan error)

RegisterFaceWithChan invokes the ivision.RegisterFace API asynchronously

func (*Client) SearchFace

func (client *Client) SearchFace(request *SearchFaceRequest) (response *SearchFaceResponse, err error)

SearchFace invokes the ivision.SearchFace API synchronously

func (*Client) SearchFaceWithCallback

func (client *Client) SearchFaceWithCallback(request *SearchFaceRequest, callback func(response *SearchFaceResponse, err error)) <-chan int

SearchFaceWithCallback invokes the ivision.SearchFace API asynchronously

func (*Client) SearchFaceWithChan

func (client *Client) SearchFaceWithChan(request *SearchFaceRequest) (<-chan *SearchFaceResponse, <-chan error)

SearchFaceWithChan invokes the ivision.SearchFace API asynchronously

func (*Client) StartStreamPredict

func (client *Client) StartStreamPredict(request *StartStreamPredictRequest) (response *StartStreamPredictResponse, err error)

StartStreamPredict invokes the ivision.StartStreamPredict API synchronously

func (*Client) StartStreamPredictWithCallback

func (client *Client) StartStreamPredictWithCallback(request *StartStreamPredictRequest, callback func(response *StartStreamPredictResponse, err error)) <-chan int

StartStreamPredictWithCallback invokes the ivision.StartStreamPredict API asynchronously

func (*Client) StartStreamPredictWithChan

func (client *Client) StartStreamPredictWithChan(request *StartStreamPredictRequest) (<-chan *StartStreamPredictResponse, <-chan error)

StartStreamPredictWithChan invokes the ivision.StartStreamPredict API asynchronously

func (*Client) StopStreamPredict

func (client *Client) StopStreamPredict(request *StopStreamPredictRequest) (response *StopStreamPredictResponse, err error)

StopStreamPredict invokes the ivision.StopStreamPredict API synchronously

func (*Client) StopStreamPredictWithCallback

func (client *Client) StopStreamPredictWithCallback(request *StopStreamPredictRequest, callback func(response *StopStreamPredictResponse, err error)) <-chan int

StopStreamPredictWithCallback invokes the ivision.StopStreamPredict API asynchronously

func (*Client) StopStreamPredictWithChan

func (client *Client) StopStreamPredictWithChan(request *StopStreamPredictRequest) (<-chan *StopStreamPredictResponse, <-chan error)

StopStreamPredictWithChan invokes the ivision.StopStreamPredict API asynchronously

func (*Client) UnregisterFace

func (client *Client) UnregisterFace(request *UnregisterFaceRequest) (response *UnregisterFaceResponse, err error)

UnregisterFace invokes the ivision.UnregisterFace API synchronously

func (*Client) UnregisterFaceWithCallback

func (client *Client) UnregisterFaceWithCallback(request *UnregisterFaceRequest, callback func(response *UnregisterFaceResponse, err error)) <-chan int

UnregisterFaceWithCallback invokes the ivision.UnregisterFace API asynchronously

func (*Client) UnregisterFaceWithChan

func (client *Client) UnregisterFaceWithChan(request *UnregisterFaceRequest) (<-chan *UnregisterFaceResponse, <-chan error)

UnregisterFaceWithChan invokes the ivision.UnregisterFace API asynchronously

type CreateFaceGroupRequest

type CreateFaceGroupRequest struct {
	*requests.RpcRequest
	ShowLog string           `position:"Query" name:"ShowLog"`
	OwnerId requests.Integer `position:"Query" name:"OwnerId"`
	Name    string           `position:"Query" name:"Name"`
}

CreateFaceGroupRequest is the request struct for api CreateFaceGroup

func CreateCreateFaceGroupRequest

func CreateCreateFaceGroupRequest() (request *CreateFaceGroupRequest)

CreateCreateFaceGroupRequest creates a request to invoke CreateFaceGroup API

type CreateFaceGroupResponse

type CreateFaceGroupResponse struct {
	*responses.BaseResponse
	RequestId string `json:"RequestId" xml:"RequestId"`
	GroupId   string `json:"GroupId" xml:"GroupId"`
}

CreateFaceGroupResponse is the response struct for api CreateFaceGroup

func CreateCreateFaceGroupResponse

func CreateCreateFaceGroupResponse() (response *CreateFaceGroupResponse)

CreateCreateFaceGroupResponse creates a response to parse from CreateFaceGroup response

type CreateStreamPredictRequest

type CreateStreamPredictRequest struct {
	*requests.RpcRequest
	ClientToken           string           `position:"Query" name:"ClientToken"`
	AutoStart             string           `position:"Query" name:"AutoStart"`
	Notify                string           `position:"Query" name:"Notify"`
	Output                string           `position:"Query" name:"Output"`
	ShowLog               string           `position:"Query" name:"ShowLog"`
	StreamType            string           `position:"Query" name:"StreamType"`
	FaceGroupId           string           `position:"Query" name:"FaceGroupId"`
	StreamId              string           `position:"Query" name:"StreamId"`
	PredictTemplateId     string           `position:"Query" name:"PredictTemplateId"`
	DetectIntervals       string           `position:"Query" name:"DetectIntervals"`
	OwnerId               requests.Integer `position:"Query" name:"OwnerId"`
	ProbabilityThresholds string           `position:"Query" name:"ProbabilityThresholds"`
	ModelIds              string           `position:"Query" name:"ModelIds"`
	ModelUserData         string           `position:"Query" name:"ModelUserData"`
}

CreateStreamPredictRequest is the request struct for api CreateStreamPredict

func CreateCreateStreamPredictRequest

func CreateCreateStreamPredictRequest() (request *CreateStreamPredictRequest)

CreateCreateStreamPredictRequest creates a request to invoke CreateStreamPredict API

type CreateStreamPredictResponse

type CreateStreamPredictResponse struct {
	*responses.BaseResponse
	RequestId string `json:"RequestId" xml:"RequestId"`
	PredictId string `json:"PredictId" xml:"PredictId"`
}

CreateStreamPredictResponse is the response struct for api CreateStreamPredict

func CreateCreateStreamPredictResponse

func CreateCreateStreamPredictResponse() (response *CreateStreamPredictResponse)

CreateCreateStreamPredictResponse creates a response to parse from CreateStreamPredict response

type DeleteFaceGroupRequest

type DeleteFaceGroupRequest struct {
	*requests.RpcRequest
	ShowLog string           `position:"Query" name:"ShowLog"`
	GroupId string           `position:"Query" name:"GroupId"`
	OwnerId requests.Integer `position:"Query" name:"OwnerId"`
}

DeleteFaceGroupRequest is the request struct for api DeleteFaceGroup

func CreateDeleteFaceGroupRequest

func CreateDeleteFaceGroupRequest() (request *DeleteFaceGroupRequest)

CreateDeleteFaceGroupRequest creates a request to invoke DeleteFaceGroup API

type DeleteFaceGroupResponse

type DeleteFaceGroupResponse struct {
	*responses.BaseResponse
	RequestId string `json:"RequestId" xml:"RequestId"`
	GroupId   string `json:"GroupId" xml:"GroupId"`
}

DeleteFaceGroupResponse is the response struct for api DeleteFaceGroup

func CreateDeleteFaceGroupResponse

func CreateDeleteFaceGroupResponse() (response *DeleteFaceGroupResponse)

CreateDeleteFaceGroupResponse creates a response to parse from DeleteFaceGroup response

type DeleteStreamPredictRequest

type DeleteStreamPredictRequest struct {
	*requests.RpcRequest
	PredictId string           `position:"Query" name:"PredictId"`
	ShowLog   string           `position:"Query" name:"ShowLog"`
	OwnerId   requests.Integer `position:"Query" name:"OwnerId"`
}

DeleteStreamPredictRequest is the request struct for api DeleteStreamPredict

func CreateDeleteStreamPredictRequest

func CreateDeleteStreamPredictRequest() (request *DeleteStreamPredictRequest)

CreateDeleteStreamPredictRequest creates a request to invoke DeleteStreamPredict API

type DeleteStreamPredictResponse

type DeleteStreamPredictResponse struct {
	*responses.BaseResponse
	RequestId string `json:"RequestId" xml:"RequestId"`
	PredictId string `json:"PredictId" xml:"PredictId"`
}

DeleteStreamPredictResponse is the response struct for api DeleteStreamPredict

func CreateDeleteStreamPredictResponse

func CreateDeleteStreamPredictResponse() (response *DeleteStreamPredictResponse)

CreateDeleteStreamPredictResponse creates a response to parse from DeleteStreamPredict response

type DescribeFaceGroupsRequest

type DescribeFaceGroupsRequest struct {
	*requests.RpcRequest
	NextPageToken string           `position:"Query" name:"NextPageToken"`
	PageSize      requests.Integer `position:"Query" name:"PageSize"`
	ShowLog       string           `position:"Query" name:"ShowLog"`
	CurrentPage   requests.Integer `position:"Query" name:"CurrentPage"`
	OwnerId       requests.Integer `position:"Query" name:"OwnerId"`
}

DescribeFaceGroupsRequest is the request struct for api DescribeFaceGroups

func CreateDescribeFaceGroupsRequest

func CreateDescribeFaceGroupsRequest() (request *DescribeFaceGroupsRequest)

CreateDescribeFaceGroupsRequest creates a request to invoke DescribeFaceGroups API

type DescribeFaceGroupsResponse

type DescribeFaceGroupsResponse struct {
	*responses.BaseResponse
	RequestId     string  `json:"RequestId" xml:"RequestId"`
	CurrentPage   int64   `json:"CurrentPage" xml:"CurrentPage"`
	PageSize      int64   `json:"PageSize" xml:"PageSize"`
	NextPageToken string  `json:"NextPageToken" xml:"NextPageToken"`
	TotalNum      int64   `json:"TotalNum" xml:"TotalNum"`
	Groups        []Group `json:"Groups" xml:"Groups"`
}

DescribeFaceGroupsResponse is the response struct for api DescribeFaceGroups

func CreateDescribeFaceGroupsResponse

func CreateDescribeFaceGroupsResponse() (response *DescribeFaceGroupsResponse)

CreateDescribeFaceGroupsResponse creates a response to parse from DescribeFaceGroups response

type DescribeStreamPredictResultRequest

type DescribeStreamPredictResultRequest struct {
	*requests.RpcRequest
	NextPageToken        string           `position:"Query" name:"NextPageToken"`
	StartTime            string           `position:"Query" name:"StartTime"`
	PredictId            string           `position:"Query" name:"PredictId"`
	PageSize             requests.Integer `position:"Query" name:"PageSize"`
	ProbabilityThreshold string           `position:"Query" name:"ProbabilityThreshold"`
	ShowLog              string           `position:"Query" name:"ShowLog"`
	ModelId              string           `position:"Query" name:"ModelId"`
	EndTime              string           `position:"Query" name:"EndTime"`
	CurrentPage          requests.Integer `position:"Query" name:"CurrentPage"`
	OwnerId              requests.Integer `position:"Query" name:"OwnerId"`
}

DescribeStreamPredictResultRequest is the request struct for api DescribeStreamPredictResult

func CreateDescribeStreamPredictResultRequest

func CreateDescribeStreamPredictResultRequest() (request *DescribeStreamPredictResultRequest)

CreateDescribeStreamPredictResultRequest creates a request to invoke DescribeStreamPredictResult API

type DescribeStreamPredictResultResponse

type DescribeStreamPredictResultResponse struct {
	*responses.BaseResponse
	RequestId          string              `json:"RequestId" xml:"RequestId"`
	TotalNum           int64               `json:"TotalNum" xml:"TotalNum"`
	CurrentPage        int64               `json:"CurrentPage" xml:"CurrentPage"`
	PageSize           int64               `json:"PageSize" xml:"PageSize"`
	NextPageToken      string              `json:"NextPageToken" xml:"NextPageToken"`
	StreamPredictDatas []StreamPredictData `json:"StreamPredictDatas" xml:"StreamPredictDatas"`
}

DescribeStreamPredictResultResponse is the response struct for api DescribeStreamPredictResult

func CreateDescribeStreamPredictResultResponse

func CreateDescribeStreamPredictResultResponse() (response *DescribeStreamPredictResultResponse)

CreateDescribeStreamPredictResultResponse creates a response to parse from DescribeStreamPredictResult response

type DescribeStreamPredictsRequest

type DescribeStreamPredictsRequest struct {
	*requests.RpcRequest
	NextPageToken string           `position:"Query" name:"NextPageToken"`
	PredictIds    string           `position:"Query" name:"PredictIds"`
	PageSize      requests.Integer `position:"Query" name:"PageSize"`
	ShowLog       string           `position:"Query" name:"ShowLog"`
	ModelId       string           `position:"Query" name:"ModelId"`
	CurrentPage   requests.Integer `position:"Query" name:"CurrentPage"`
	OwnerId       requests.Integer `position:"Query" name:"OwnerId"`
}

DescribeStreamPredictsRequest is the request struct for api DescribeStreamPredicts

func CreateDescribeStreamPredictsRequest

func CreateDescribeStreamPredictsRequest() (request *DescribeStreamPredictsRequest)

CreateDescribeStreamPredictsRequest creates a request to invoke DescribeStreamPredicts API

type DescribeStreamPredictsResponse

type DescribeStreamPredictsResponse struct {
	*responses.BaseResponse
	RequestId      string          `json:"RequestId" xml:"RequestId"`
	TotalNum       int64           `json:"TotalNum" xml:"TotalNum"`
	CurrentPage    int64           `json:"CurrentPage" xml:"CurrentPage"`
	PageSize       int64           `json:"PageSize" xml:"PageSize"`
	NextPageToken  string          `json:"NextPageToken" xml:"NextPageToken"`
	StreamPredicts []StreamPredict `json:"StreamPredicts" xml:"StreamPredicts"`
}

DescribeStreamPredictsResponse is the response struct for api DescribeStreamPredicts

func CreateDescribeStreamPredictsResponse

func CreateDescribeStreamPredictsResponse() (response *DescribeStreamPredictsResponse)

CreateDescribeStreamPredictsResponse creates a response to parse from DescribeStreamPredicts response

type Face

type Face struct {
	FaceToken string `json:"FaceToken" xml:"FaceToken"`
	Rect      Rect   `json:"Rect" xml:"Rect"`
}

Face is a nested struct in ivision response

type FaceResult

type FaceResult struct {
	FaceToken   string  `json:"FaceToken" xml:"FaceToken"`
	Probability float64 `json:"Probability" xml:"Probability"`
}

FaceResult is a nested struct in ivision response

type FaceResults

type FaceResults struct {
	FaceResult []FaceResult `json:"FaceResult" xml:"FaceResult"`
}

FaceResults is a nested struct in ivision response

type Faces

type Faces struct {
	Face []Face `json:"Face" xml:"Face"`
}

Faces is a nested struct in ivision response

type Group

type Group struct {
	GroupId      string `json:"GroupId" xml:"GroupId"`
	Name         string `json:"Name" xml:"Name"`
	CreationTime string `json:"CreationTime" xml:"CreationTime"`
}

Group is a nested struct in ivision response

type Groups

type Groups struct {
	Group []Group `json:"Group" xml:"Group"`
}

Groups is a nested struct in ivision response

type ImagePredict

type ImagePredict struct {
	PredictId     string `json:"PredictId" xml:"PredictId"`
	ModelId       string `json:"ModelId" xml:"ModelId"`
	DataUrl       string `json:"DataUrl" xml:"DataUrl"`
	PredictTime   string `json:"PredictTime" xml:"PredictTime"`
	Status        string `json:"Status" xml:"Status"`
	Code          string `json:"Code" xml:"Code"`
	Message       string `json:"Message" xml:"Message"`
	PredictResult string `json:"PredictResult" xml:"PredictResult"`
}

ImagePredict is a nested struct in ivision response

type ImagePredictRequest

type ImagePredictRequest struct {
	*requests.RpcRequest
	DataUrl string           `position:"Query" name:"DataUrl"`
	ShowLog string           `position:"Query" name:"ShowLog"`
	ModelId string           `position:"Query" name:"ModelId"`
	OwnerId requests.Integer `position:"Query" name:"OwnerId"`
}

ImagePredictRequest is the request struct for api ImagePredict

func CreateImagePredictRequest

func CreateImagePredictRequest() (request *ImagePredictRequest)

CreateImagePredictRequest creates a request to invoke ImagePredict API

type ImagePredictResponse

type ImagePredictResponse struct {
	*responses.BaseResponse
	RequestId    string       `json:"RequestId" xml:"RequestId"`
	ImagePredict ImagePredict `json:"ImagePredict" xml:"ImagePredict"`
}

ImagePredictResponse is the response struct for api ImagePredict

func CreateImagePredictResponse

func CreateImagePredictResponse() (response *ImagePredictResponse)

CreateImagePredictResponse creates a response to parse from ImagePredict response

type Rect

type Rect struct {
	Width  int `json:"Width" xml:"Width"`
	Height int `json:"Height" xml:"Height"`
	Top    int `json:"Top" xml:"Top"`
	Left   int `json:"Left" xml:"Left"`
}

Rect is a nested struct in ivision response

type RegisterFaceRequest

type RegisterFaceRequest struct {
	*requests.RpcRequest
	Content  string           `position:"Query" name:"Content"`
	DataType string           `position:"Query" name:"DataType"`
	ShowLog  string           `position:"Query" name:"ShowLog"`
	GroupId  string           `position:"Query" name:"GroupId"`
	OwnerId  requests.Integer `position:"Query" name:"OwnerId"`
}

RegisterFaceRequest is the request struct for api RegisterFace

func CreateRegisterFaceRequest

func CreateRegisterFaceRequest() (request *RegisterFaceRequest)

CreateRegisterFaceRequest creates a request to invoke RegisterFace API

type RegisterFaceResponse

type RegisterFaceResponse struct {
	*responses.BaseResponse
	RequestId string `json:"RequestId" xml:"RequestId"`
	GroupId   string `json:"GroupId" xml:"GroupId"`
	Faces     []Face `json:"Faces" xml:"Faces"`
}

RegisterFaceResponse is the response struct for api RegisterFace

func CreateRegisterFaceResponse

func CreateRegisterFaceResponse() (response *RegisterFaceResponse)

CreateRegisterFaceResponse creates a response to parse from RegisterFace response

type SearchFaceRequest

type SearchFaceRequest struct {
	*requests.RpcRequest
	Content              string           `position:"Query" name:"Content"`
	DataType             string           `position:"Query" name:"DataType"`
	ProbabilityThreshold requests.Float   `position:"Query" name:"ProbabilityThreshold"`
	ShowLog              string           `position:"Query" name:"ShowLog"`
	GroupId              string           `position:"Query" name:"GroupId"`
	Count                requests.Integer `position:"Query" name:"Count"`
	OwnerId              requests.Integer `position:"Query" name:"OwnerId"`
}

SearchFaceRequest is the request struct for api SearchFace

func CreateSearchFaceRequest

func CreateSearchFaceRequest() (request *SearchFaceRequest)

CreateSearchFaceRequest creates a request to invoke SearchFace API

type SearchFaceResponse

type SearchFaceResponse struct {
	*responses.BaseResponse
	RequestId   string       `json:"RequestId" xml:"RequestId"`
	GroupId     string       `json:"GroupId" xml:"GroupId"`
	Rect        Rect         `json:"Rect" xml:"Rect"`
	FaceResults []FaceResult `json:"FaceResults" xml:"FaceResults"`
}

SearchFaceResponse is the response struct for api SearchFace

func CreateSearchFaceResponse

func CreateSearchFaceResponse() (response *SearchFaceResponse)

CreateSearchFaceResponse creates a response to parse from SearchFace response

type StartStreamPredictRequest

type StartStreamPredictRequest struct {
	*requests.RpcRequest
	PredictId string           `position:"Query" name:"PredictId"`
	ShowLog   string           `position:"Query" name:"ShowLog"`
	OwnerId   requests.Integer `position:"Query" name:"OwnerId"`
}

StartStreamPredictRequest is the request struct for api StartStreamPredict

func CreateStartStreamPredictRequest

func CreateStartStreamPredictRequest() (request *StartStreamPredictRequest)

CreateStartStreamPredictRequest creates a request to invoke StartStreamPredict API

type StartStreamPredictResponse

type StartStreamPredictResponse struct {
	*responses.BaseResponse
	RequestId string `json:"RequestId" xml:"RequestId"`
	PredictId string `json:"PredictId" xml:"PredictId"`
}

StartStreamPredictResponse is the response struct for api StartStreamPredict

func CreateStartStreamPredictResponse

func CreateStartStreamPredictResponse() (response *StartStreamPredictResponse)

CreateStartStreamPredictResponse creates a response to parse from StartStreamPredict response

type StopStreamPredictRequest

type StopStreamPredictRequest struct {
	*requests.RpcRequest
	PredictId string           `position:"Query" name:"PredictId"`
	ShowLog   string           `position:"Query" name:"ShowLog"`
	OwnerId   requests.Integer `position:"Query" name:"OwnerId"`
}

StopStreamPredictRequest is the request struct for api StopStreamPredict

func CreateStopStreamPredictRequest

func CreateStopStreamPredictRequest() (request *StopStreamPredictRequest)

CreateStopStreamPredictRequest creates a request to invoke StopStreamPredict API

type StopStreamPredictResponse

type StopStreamPredictResponse struct {
	*responses.BaseResponse
	RequestId string `json:"RequestId" xml:"RequestId"`
	PredictId string `json:"PredictId" xml:"PredictId"`
}

StopStreamPredictResponse is the response struct for api StopStreamPredict

func CreateStopStreamPredictResponse

func CreateStopStreamPredictResponse() (response *StopStreamPredictResponse)

CreateStopStreamPredictResponse creates a response to parse from StopStreamPredict response

type StreamPredict

type StreamPredict struct {
	PredictId             string `json:"PredictId" xml:"PredictId"`
	PredictTemplateId     string `json:"PredictTemplateId" xml:"PredictTemplateId"`
	StreamType            string `json:"StreamType" xml:"StreamType"`
	StreamId              string `json:"StreamId" xml:"StreamId"`
	ModelIds              string `json:"ModelIds" xml:"ModelIds"`
	ProbabilityThresholds string `json:"ProbabilityThresholds" xml:"ProbabilityThresholds"`
	DetectIntervals       string `json:"DetectIntervals" xml:"DetectIntervals"`
	Output                string `json:"Output" xml:"Output"`
	Notify                string `json:"Notify" xml:"Notify"`
	UserData              string `json:"UserData" xml:"UserData"`
	FaceGroupId           string `json:"FaceGroupId" xml:"FaceGroupId"`
	ModelUserData         string `json:"ModelUserData" xml:"ModelUserData"`
	CreationTime          string `json:"CreationTime" xml:"CreationTime"`
	AutoStart             string `json:"AutoStart" xml:"AutoStart"`
	Status                string `json:"Status" xml:"Status"`
}

StreamPredict is a nested struct in ivision response

type StreamPredictData

type StreamPredictData struct {
	PredictId     string `json:"PredictId" xml:"PredictId"`
	ModelId       string `json:"ModelId" xml:"ModelId"`
	DataUrl       string `json:"DataUrl" xml:"DataUrl"`
	Timestamp     int64  `json:"Timestamp" xml:"Timestamp"`
	PredictTime   string `json:"PredictTime" xml:"PredictTime"`
	Status        string `json:"Status" xml:"Status"`
	PredictResult string `json:"PredictResult" xml:"PredictResult"`
}

StreamPredictData is a nested struct in ivision response

type StreamPredictDatas

type StreamPredictDatas struct {
	StreamPredictData []StreamPredictData `json:"StreamPredictData" xml:"StreamPredictData"`
}

StreamPredictDatas is a nested struct in ivision response

type StreamPredicts

type StreamPredicts struct {
	StreamPredict []StreamPredict `json:"StreamPredict" xml:"StreamPredict"`
}

StreamPredicts is a nested struct in ivision response

type UnregisterFaceRequest

type UnregisterFaceRequest struct {
	*requests.RpcRequest
	ShowLog   string           `position:"Query" name:"ShowLog"`
	GroupId   string           `position:"Query" name:"GroupId"`
	OwnerId   requests.Integer `position:"Query" name:"OwnerId"`
	FaceToken string           `position:"Query" name:"FaceToken"`
}

UnregisterFaceRequest is the request struct for api UnregisterFace

func CreateUnregisterFaceRequest

func CreateUnregisterFaceRequest() (request *UnregisterFaceRequest)

CreateUnregisterFaceRequest creates a request to invoke UnregisterFace API

type UnregisterFaceResponse

type UnregisterFaceResponse struct {
	*responses.BaseResponse
	RequestId string `json:"RequestId" xml:"RequestId"`
	GroupId   string `json:"GroupId" xml:"GroupId"`
	FaceToken string `json:"FaceToken" xml:"FaceToken"`
}

UnregisterFaceResponse is the response struct for api UnregisterFace

func CreateUnregisterFaceResponse

func CreateUnregisterFaceResponse() (response *UnregisterFaceResponse)

CreateUnregisterFaceResponse creates a response to parse from UnregisterFace response

Jump to

Keyboard shortcuts

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