azure-sdk-for-go: github.com/Azure/azure-sdk-for-go/services/cognitiveservices/v1.1/customvision/prediction Index | Files | Directories

package prediction

import "github.com/Azure/azure-sdk-for-go/services/cognitiveservices/v1.1/customvision/prediction"

Package prediction implements the Azure ARM Prediction service API version 2.0.

Index

Package Files

client.go models.go version.go

func UserAgent Uses

func UserAgent() string

UserAgent returns the UserAgent string to use when sending http.Requests.

func Version Uses

func Version() string

Version returns the semantic version (see http://semver.org) of the client.

type BaseClient Uses

type BaseClient struct {
    autorest.Client
    APIKey   string
    Endpoint string
}

BaseClient is the base client for Prediction.

func New Uses

func New(aPIKey string, endpoint string) BaseClient

New creates an instance of the BaseClient client.

func NewWithoutDefaults Uses

func NewWithoutDefaults(aPIKey string, endpoint string) BaseClient

NewWithoutDefaults creates an instance of the BaseClient client.

func (BaseClient) PredictImage Uses

func (client BaseClient) PredictImage(ctx context.Context, projectID uuid.UUID, imageData io.ReadCloser, iterationID *uuid.UUID, application string) (result ImagePrediction, err error)

PredictImage sends the predict image request. Parameters: projectID - the project id iterationID - optional. Specifies the id of a particular iteration to evaluate against. The default iteration for the project will be used when not specified application - optional. Specifies the name of application using the endpoint

func (BaseClient) PredictImagePreparer Uses

func (client BaseClient) PredictImagePreparer(ctx context.Context, projectID uuid.UUID, imageData io.ReadCloser, iterationID *uuid.UUID, application string) (*http.Request, error)

PredictImagePreparer prepares the PredictImage request.

func (BaseClient) PredictImageResponder Uses

func (client BaseClient) PredictImageResponder(resp *http.Response) (result ImagePrediction, err error)

PredictImageResponder handles the response to the PredictImage request. The method always closes the http.Response Body.

func (BaseClient) PredictImageSender Uses

func (client BaseClient) PredictImageSender(req *http.Request) (*http.Response, error)

PredictImageSender sends the PredictImage request. The method will close the http.Response Body if it receives an error.

func (BaseClient) PredictImageURL Uses

func (client BaseClient) PredictImageURL(ctx context.Context, projectID uuid.UUID, imageURL ImageURL, iterationID *uuid.UUID, application string) (result ImagePrediction, err error)

PredictImageURL sends the predict image url request. Parameters: projectID - the project id imageURL - an {Iris.Web.Api.Models.ImageUrl} that contains the url of the image to be evaluated iterationID - optional. Specifies the id of a particular iteration to evaluate against. The default iteration for the project will be used when not specified application - optional. Specifies the name of application using the endpoint

func (BaseClient) PredictImageURLPreparer Uses

func (client BaseClient) PredictImageURLPreparer(ctx context.Context, projectID uuid.UUID, imageURL ImageURL, iterationID *uuid.UUID, application string) (*http.Request, error)

PredictImageURLPreparer prepares the PredictImageURL request.

func (BaseClient) PredictImageURLResponder Uses

func (client BaseClient) PredictImageURLResponder(resp *http.Response) (result ImagePrediction, err error)

PredictImageURLResponder handles the response to the PredictImageURL request. The method always closes the http.Response Body.

func (BaseClient) PredictImageURLSender Uses

func (client BaseClient) PredictImageURLSender(req *http.Request) (*http.Response, error)

PredictImageURLSender sends the PredictImageURL request. The method will close the http.Response Body if it receives an error.

func (BaseClient) PredictImageURLWithNoStore Uses

func (client BaseClient) PredictImageURLWithNoStore(ctx context.Context, projectID uuid.UUID, imageURL ImageURL, iterationID *uuid.UUID, application string) (result ImagePrediction, err error)

PredictImageURLWithNoStore sends the predict image url with no store request. Parameters: projectID - the project id imageURL - an {Iris.Web.Api.Models.ImageUrl} that contains the url of the image to be evaluated iterationID - optional. Specifies the id of a particular iteration to evaluate against. The default iteration for the project will be used when not specified application - optional. Specifies the name of application using the endpoint

func (BaseClient) PredictImageURLWithNoStorePreparer Uses

func (client BaseClient) PredictImageURLWithNoStorePreparer(ctx context.Context, projectID uuid.UUID, imageURL ImageURL, iterationID *uuid.UUID, application string) (*http.Request, error)

PredictImageURLWithNoStorePreparer prepares the PredictImageURLWithNoStore request.

func (BaseClient) PredictImageURLWithNoStoreResponder Uses

func (client BaseClient) PredictImageURLWithNoStoreResponder(resp *http.Response) (result ImagePrediction, err error)

PredictImageURLWithNoStoreResponder handles the response to the PredictImageURLWithNoStore request. The method always closes the http.Response Body.

func (BaseClient) PredictImageURLWithNoStoreSender Uses

func (client BaseClient) PredictImageURLWithNoStoreSender(req *http.Request) (*http.Response, error)

PredictImageURLWithNoStoreSender sends the PredictImageURLWithNoStore request. The method will close the http.Response Body if it receives an error.

func (BaseClient) PredictImageWithNoStore Uses

func (client BaseClient) PredictImageWithNoStore(ctx context.Context, projectID uuid.UUID, imageData io.ReadCloser, iterationID *uuid.UUID, application string) (result ImagePrediction, err error)

PredictImageWithNoStore sends the predict image with no store request. Parameters: projectID - the project id iterationID - optional. Specifies the id of a particular iteration to evaluate against. The default iteration for the project will be used when not specified application - optional. Specifies the name of application using the endpoint

func (BaseClient) PredictImageWithNoStorePreparer Uses

func (client BaseClient) PredictImageWithNoStorePreparer(ctx context.Context, projectID uuid.UUID, imageData io.ReadCloser, iterationID *uuid.UUID, application string) (*http.Request, error)

PredictImageWithNoStorePreparer prepares the PredictImageWithNoStore request.

func (BaseClient) PredictImageWithNoStoreResponder Uses

func (client BaseClient) PredictImageWithNoStoreResponder(resp *http.Response) (result ImagePrediction, err error)

PredictImageWithNoStoreResponder handles the response to the PredictImageWithNoStore request. The method always closes the http.Response Body.

func (BaseClient) PredictImageWithNoStoreSender Uses

func (client BaseClient) PredictImageWithNoStoreSender(req *http.Request) (*http.Response, error)

PredictImageWithNoStoreSender sends the PredictImageWithNoStore request. The method will close the http.Response Body if it receives an error.

type BoundingBox Uses

type BoundingBox struct {
    Left   *float64 `json:"left,omitempty"`
    Top    *float64 `json:"top,omitempty"`
    Width  *float64 `json:"width,omitempty"`
    Height *float64 `json:"height,omitempty"`
}

BoundingBox ...

type ImagePrediction Uses

type ImagePrediction struct {
    autorest.Response `json:"-"`
    // ID - READ-ONLY
    ID  *uuid.UUID `json:"id,omitempty"`
    // Project - READ-ONLY
    Project *uuid.UUID `json:"project,omitempty"`
    // Iteration - READ-ONLY
    Iteration *uuid.UUID `json:"iteration,omitempty"`
    // Created - READ-ONLY
    Created *date.Time `json:"created,omitempty"`
    // Predictions - READ-ONLY
    Predictions *[]Model `json:"predictions,omitempty"`
}

ImagePrediction ...

type ImageURL Uses

type ImageURL struct {
    URL *string `json:"url,omitempty"`
}

ImageURL ...

type Model Uses

type Model struct {
    // Probability - READ-ONLY
    Probability *float64 `json:"probability,omitempty"`
    // TagID - READ-ONLY
    TagID *uuid.UUID `json:"tagId,omitempty"`
    // TagName - READ-ONLY
    TagName *string `json:"tagName,omitempty"`
    // BoundingBox - READ-ONLY
    BoundingBox *BoundingBox `json:"boundingBox,omitempty"`
}

Model ...

Directories

PathSynopsis
predictionapi

Package prediction imports 9 packages (graph) and is imported by 4 packages. Updated 2019-07-30. Refresh now. Tools for package owners.