Documentation ¶
Overview ¶
Package visualrecognitionv4 : Operations and models for the VisualRecognitionV4 service
Index ¶
- Constants
- func GetServiceURLForRegion(region string) (string, error)
- func UnmarshalAnalyzeResponse(m map[string]json.RawMessage, result interface{}) (err error)
- func UnmarshalCollection(m map[string]json.RawMessage, result interface{}) (err error)
- func UnmarshalCollectionObjects(m map[string]json.RawMessage, result interface{}) (err error)
- func UnmarshalCollectionTrainingStatus(m map[string]json.RawMessage, result interface{}) (err error)
- func UnmarshalCollectionsList(m map[string]json.RawMessage, result interface{}) (err error)
- func UnmarshalDetectedObjects(m map[string]json.RawMessage, result interface{}) (err error)
- func UnmarshalError(m map[string]json.RawMessage, result interface{}) (err error)
- func UnmarshalErrorTarget(m map[string]json.RawMessage, result interface{}) (err error)
- func UnmarshalFileWithMetadata(m map[string]json.RawMessage, result interface{}) (err error)
- func UnmarshalImage(m map[string]json.RawMessage, result interface{}) (err error)
- func UnmarshalImageDetails(m map[string]json.RawMessage, result interface{}) (err error)
- func UnmarshalImageDetailsList(m map[string]json.RawMessage, result interface{}) (err error)
- func UnmarshalImageDimensions(m map[string]json.RawMessage, result interface{}) (err error)
- func UnmarshalImageSource(m map[string]json.RawMessage, result interface{}) (err error)
- func UnmarshalImageSummary(m map[string]json.RawMessage, result interface{}) (err error)
- func UnmarshalImageSummaryList(m map[string]json.RawMessage, result interface{}) (err error)
- func UnmarshalLocation(m map[string]json.RawMessage, result interface{}) (err error)
- func UnmarshalObjectDetail(m map[string]json.RawMessage, result interface{}) (err error)
- func UnmarshalObjectDetailLocation(m map[string]json.RawMessage, result interface{}) (err error)
- func UnmarshalObjectMetadata(m map[string]json.RawMessage, result interface{}) (err error)
- func UnmarshalObjectMetadataList(m map[string]json.RawMessage, result interface{}) (err error)
- func UnmarshalObjectTrainingStatus(m map[string]json.RawMessage, result interface{}) (err error)
- func UnmarshalTrainingDataObject(m map[string]json.RawMessage, result interface{}) (err error)
- func UnmarshalTrainingDataObjects(m map[string]json.RawMessage, result interface{}) (err error)
- func UnmarshalTrainingEvent(m map[string]json.RawMessage, result interface{}) (err error)
- func UnmarshalTrainingEvents(m map[string]json.RawMessage, result interface{}) (err error)
- func UnmarshalTrainingStatus(m map[string]json.RawMessage, result interface{}) (err error)
- func UnmarshalUpdateObjectMetadata(m map[string]json.RawMessage, result interface{}) (err error)
- func UnmarshalWarning(m map[string]json.RawMessage, result interface{}) (err error)
- type AddImageTrainingDataOptions
- func (_options *AddImageTrainingDataOptions) SetCollectionID(collectionID string) *AddImageTrainingDataOptions
- func (options *AddImageTrainingDataOptions) SetHeaders(param map[string]string) *AddImageTrainingDataOptions
- func (_options *AddImageTrainingDataOptions) SetImageID(imageID string) *AddImageTrainingDataOptions
- func (_options *AddImageTrainingDataOptions) SetObjects(objects []TrainingDataObject) *AddImageTrainingDataOptions
- type AddImagesOptions
- func (_options *AddImagesOptions) SetCollectionID(collectionID string) *AddImagesOptions
- func (options *AddImagesOptions) SetHeaders(param map[string]string) *AddImagesOptions
- func (_options *AddImagesOptions) SetImageURL(imageURL []string) *AddImagesOptions
- func (_options *AddImagesOptions) SetImagesFile(imagesFile []FileWithMetadata) *AddImagesOptions
- func (_options *AddImagesOptions) SetTrainingData(trainingData string) *AddImagesOptions
- type AnalyzeOptions
- func (_options *AnalyzeOptions) SetCollectionIds(collectionIds []string) *AnalyzeOptions
- func (_options *AnalyzeOptions) SetFeatures(features []string) *AnalyzeOptions
- func (options *AnalyzeOptions) SetHeaders(param map[string]string) *AnalyzeOptions
- func (_options *AnalyzeOptions) SetImageURL(imageURL []string) *AnalyzeOptions
- func (_options *AnalyzeOptions) SetImagesFile(imagesFile []FileWithMetadata) *AnalyzeOptions
- func (_options *AnalyzeOptions) SetThreshold(threshold float32) *AnalyzeOptions
- type AnalyzeResponse
- type Collection
- type CollectionObjects
- type CollectionTrainingStatus
- type CollectionsList
- type CreateCollectionOptions
- type DeleteCollectionOptions
- type DeleteImageOptions
- type DeleteObjectOptions
- type DeleteUserDataOptions
- type DetectedObjects
- type Error
- type ErrorTarget
- type FileWithMetadata
- type GetCollectionOptions
- type GetImageDetailsOptions
- type GetJpegImageOptions
- func (_options *GetJpegImageOptions) SetCollectionID(collectionID string) *GetJpegImageOptions
- func (options *GetJpegImageOptions) SetHeaders(param map[string]string) *GetJpegImageOptions
- func (_options *GetJpegImageOptions) SetImageID(imageID string) *GetJpegImageOptions
- func (_options *GetJpegImageOptions) SetSize(size string) *GetJpegImageOptions
- type GetModelFileOptions
- func (_options *GetModelFileOptions) SetCollectionID(collectionID string) *GetModelFileOptions
- func (_options *GetModelFileOptions) SetFeature(feature string) *GetModelFileOptions
- func (options *GetModelFileOptions) SetHeaders(param map[string]string) *GetModelFileOptions
- func (_options *GetModelFileOptions) SetModelFormat(modelFormat string) *GetModelFileOptions
- type GetObjectMetadataOptions
- func (_options *GetObjectMetadataOptions) SetCollectionID(collectionID string) *GetObjectMetadataOptions
- func (options *GetObjectMetadataOptions) SetHeaders(param map[string]string) *GetObjectMetadataOptions
- func (_options *GetObjectMetadataOptions) SetObject(object string) *GetObjectMetadataOptions
- type GetTrainingUsageOptions
- func (_options *GetTrainingUsageOptions) SetEndTime(endTime *strfmt.Date) *GetTrainingUsageOptions
- func (options *GetTrainingUsageOptions) SetHeaders(param map[string]string) *GetTrainingUsageOptions
- func (_options *GetTrainingUsageOptions) SetStartTime(startTime *strfmt.Date) *GetTrainingUsageOptions
- type Image
- type ImageDetails
- type ImageDetailsList
- type ImageDimensions
- type ImageSource
- type ImageSummary
- type ImageSummaryList
- type ListCollectionsOptions
- type ListImagesOptions
- type ListObjectMetadataOptions
- type Location
- type ObjectDetail
- type ObjectDetailLocation
- type ObjectMetadata
- type ObjectMetadataList
- type ObjectTrainingStatus
- type TrainOptions
- type TrainingDataObject
- type TrainingDataObjects
- type TrainingEvent
- type TrainingEvents
- type TrainingStatus
- type UpdateCollectionOptions
- func (_options *UpdateCollectionOptions) SetCollectionID(collectionID string) *UpdateCollectionOptions
- func (_options *UpdateCollectionOptions) SetDescription(description string) *UpdateCollectionOptions
- func (options *UpdateCollectionOptions) SetHeaders(param map[string]string) *UpdateCollectionOptions
- func (_options *UpdateCollectionOptions) SetName(name string) *UpdateCollectionOptions
- type UpdateObjectMetadata
- type UpdateObjectMetadataOptions
- func (_options *UpdateObjectMetadataOptions) SetCollectionID(collectionID string) *UpdateObjectMetadataOptions
- func (options *UpdateObjectMetadataOptions) SetHeaders(param map[string]string) *UpdateObjectMetadataOptions
- func (_options *UpdateObjectMetadataOptions) SetNewObject(newObject string) *UpdateObjectMetadataOptions
- func (_options *UpdateObjectMetadataOptions) SetObject(object string) *UpdateObjectMetadataOptions
- type VisualRecognitionV4
- func (visualRecognition *VisualRecognitionV4) AddImageTrainingData(addImageTrainingDataOptions *AddImageTrainingDataOptions) (result *TrainingDataObjects, response *core.DetailedResponse, err error)
- func (visualRecognition *VisualRecognitionV4) AddImageTrainingDataWithContext(ctx context.Context, addImageTrainingDataOptions *AddImageTrainingDataOptions) (result *TrainingDataObjects, response *core.DetailedResponse, err error)
- func (visualRecognition *VisualRecognitionV4) AddImages(addImagesOptions *AddImagesOptions) (result *ImageDetailsList, response *core.DetailedResponse, err error)
- func (visualRecognition *VisualRecognitionV4) AddImagesWithContext(ctx context.Context, addImagesOptions *AddImagesOptions) (result *ImageDetailsList, response *core.DetailedResponse, err error)
- func (visualRecognition *VisualRecognitionV4) Analyze(analyzeOptions *AnalyzeOptions) (result *AnalyzeResponse, response *core.DetailedResponse, err error)
- func (visualRecognition *VisualRecognitionV4) AnalyzeWithContext(ctx context.Context, analyzeOptions *AnalyzeOptions) (result *AnalyzeResponse, response *core.DetailedResponse, err error)
- func (visualRecognition *VisualRecognitionV4) Clone() *VisualRecognitionV4
- func (visualRecognition *VisualRecognitionV4) CreateCollection(createCollectionOptions *CreateCollectionOptions) (result *Collection, response *core.DetailedResponse, err error)
- func (visualRecognition *VisualRecognitionV4) CreateCollectionWithContext(ctx context.Context, createCollectionOptions *CreateCollectionOptions) (result *Collection, response *core.DetailedResponse, err error)
- func (visualRecognition *VisualRecognitionV4) DeleteCollection(deleteCollectionOptions *DeleteCollectionOptions) (response *core.DetailedResponse, err error)
- func (visualRecognition *VisualRecognitionV4) DeleteCollectionWithContext(ctx context.Context, deleteCollectionOptions *DeleteCollectionOptions) (response *core.DetailedResponse, err error)
- func (visualRecognition *VisualRecognitionV4) DeleteImage(deleteImageOptions *DeleteImageOptions) (response *core.DetailedResponse, err error)
- func (visualRecognition *VisualRecognitionV4) DeleteImageWithContext(ctx context.Context, deleteImageOptions *DeleteImageOptions) (response *core.DetailedResponse, err error)
- func (visualRecognition *VisualRecognitionV4) DeleteObject(deleteObjectOptions *DeleteObjectOptions) (response *core.DetailedResponse, err error)
- func (visualRecognition *VisualRecognitionV4) DeleteObjectWithContext(ctx context.Context, deleteObjectOptions *DeleteObjectOptions) (response *core.DetailedResponse, err error)
- func (visualRecognition *VisualRecognitionV4) DeleteUserData(deleteUserDataOptions *DeleteUserDataOptions) (response *core.DetailedResponse, err error)
- func (visualRecognition *VisualRecognitionV4) DeleteUserDataWithContext(ctx context.Context, deleteUserDataOptions *DeleteUserDataOptions) (response *core.DetailedResponse, err error)
- func (visualRecognition *VisualRecognitionV4) DisableRetries()
- func (visualRecognition *VisualRecognitionV4) DisableSSLVerification()
- func (visualRecognition *VisualRecognitionV4) EnableRetries(maxRetries int, maxRetryInterval time.Duration)
- func (visualRecognition *VisualRecognitionV4) GetCollection(getCollectionOptions *GetCollectionOptions) (result *Collection, response *core.DetailedResponse, err error)
- func (visualRecognition *VisualRecognitionV4) GetCollectionWithContext(ctx context.Context, getCollectionOptions *GetCollectionOptions) (result *Collection, response *core.DetailedResponse, err error)
- func (visualRecognition *VisualRecognitionV4) GetEnableGzipCompression() bool
- func (visualRecognition *VisualRecognitionV4) GetImageDetails(getImageDetailsOptions *GetImageDetailsOptions) (result *ImageDetails, response *core.DetailedResponse, err error)
- func (visualRecognition *VisualRecognitionV4) GetImageDetailsWithContext(ctx context.Context, getImageDetailsOptions *GetImageDetailsOptions) (result *ImageDetails, response *core.DetailedResponse, err error)
- func (visualRecognition *VisualRecognitionV4) GetJpegImage(getJpegImageOptions *GetJpegImageOptions) (result io.ReadCloser, response *core.DetailedResponse, err error)
- func (visualRecognition *VisualRecognitionV4) GetJpegImageWithContext(ctx context.Context, getJpegImageOptions *GetJpegImageOptions) (result io.ReadCloser, response *core.DetailedResponse, err error)
- func (visualRecognition *VisualRecognitionV4) GetModelFile(getModelFileOptions *GetModelFileOptions) (result io.ReadCloser, response *core.DetailedResponse, err error)
- func (visualRecognition *VisualRecognitionV4) GetModelFileWithContext(ctx context.Context, getModelFileOptions *GetModelFileOptions) (result io.ReadCloser, response *core.DetailedResponse, err error)
- func (visualRecognition *VisualRecognitionV4) GetObjectMetadata(getObjectMetadataOptions *GetObjectMetadataOptions) (result *ObjectMetadata, response *core.DetailedResponse, err error)
- func (visualRecognition *VisualRecognitionV4) GetObjectMetadataWithContext(ctx context.Context, getObjectMetadataOptions *GetObjectMetadataOptions) (result *ObjectMetadata, response *core.DetailedResponse, err error)
- func (visualRecognition *VisualRecognitionV4) GetServiceURL() string
- func (visualRecognition *VisualRecognitionV4) GetTrainingUsage(getTrainingUsageOptions *GetTrainingUsageOptions) (result *TrainingEvents, response *core.DetailedResponse, err error)
- func (visualRecognition *VisualRecognitionV4) GetTrainingUsageWithContext(ctx context.Context, getTrainingUsageOptions *GetTrainingUsageOptions) (result *TrainingEvents, response *core.DetailedResponse, err error)
- func (visualRecognition *VisualRecognitionV4) ListCollections(listCollectionsOptions *ListCollectionsOptions) (result *CollectionsList, response *core.DetailedResponse, err error)
- func (visualRecognition *VisualRecognitionV4) ListCollectionsWithContext(ctx context.Context, listCollectionsOptions *ListCollectionsOptions) (result *CollectionsList, response *core.DetailedResponse, err error)
- func (visualRecognition *VisualRecognitionV4) ListImages(listImagesOptions *ListImagesOptions) (result *ImageSummaryList, response *core.DetailedResponse, err error)
- func (visualRecognition *VisualRecognitionV4) ListImagesWithContext(ctx context.Context, listImagesOptions *ListImagesOptions) (result *ImageSummaryList, response *core.DetailedResponse, err error)
- func (visualRecognition *VisualRecognitionV4) ListObjectMetadata(listObjectMetadataOptions *ListObjectMetadataOptions) (result *ObjectMetadataList, response *core.DetailedResponse, err error)
- func (visualRecognition *VisualRecognitionV4) ListObjectMetadataWithContext(ctx context.Context, listObjectMetadataOptions *ListObjectMetadataOptions) (result *ObjectMetadataList, response *core.DetailedResponse, err error)
- func (*VisualRecognitionV4) NewAddImageTrainingDataOptions(collectionID string, imageID string) *AddImageTrainingDataOptions
- func (*VisualRecognitionV4) NewAddImagesOptions(collectionID string) *AddImagesOptions
- func (*VisualRecognitionV4) NewAnalyzeOptions(collectionIds []string, features []string) *AnalyzeOptions
- func (*VisualRecognitionV4) NewCreateCollectionOptions() *CreateCollectionOptions
- func (*VisualRecognitionV4) NewDeleteCollectionOptions(collectionID string) *DeleteCollectionOptions
- func (*VisualRecognitionV4) NewDeleteImageOptions(collectionID string, imageID string) *DeleteImageOptions
- func (*VisualRecognitionV4) NewDeleteObjectOptions(collectionID string, object string) *DeleteObjectOptions
- func (*VisualRecognitionV4) NewDeleteUserDataOptions(customerID string) *DeleteUserDataOptions
- func (*VisualRecognitionV4) NewFileWithMetadata(data io.ReadCloser) (_model *FileWithMetadata, err error)
- func (*VisualRecognitionV4) NewGetCollectionOptions(collectionID string) *GetCollectionOptions
- func (*VisualRecognitionV4) NewGetImageDetailsOptions(collectionID string, imageID string) *GetImageDetailsOptions
- func (*VisualRecognitionV4) NewGetJpegImageOptions(collectionID string, imageID string) *GetJpegImageOptions
- func (*VisualRecognitionV4) NewGetModelFileOptions(collectionID string, feature string, modelFormat string) *GetModelFileOptions
- func (*VisualRecognitionV4) NewGetObjectMetadataOptions(collectionID string, object string) *GetObjectMetadataOptions
- func (*VisualRecognitionV4) NewGetTrainingUsageOptions() *GetTrainingUsageOptions
- func (*VisualRecognitionV4) NewListCollectionsOptions() *ListCollectionsOptions
- func (*VisualRecognitionV4) NewListImagesOptions(collectionID string) *ListImagesOptions
- func (*VisualRecognitionV4) NewListObjectMetadataOptions(collectionID string) *ListObjectMetadataOptions
- func (*VisualRecognitionV4) NewLocation(top int64, left int64, width int64, height int64) (_model *Location, err error)
- func (*VisualRecognitionV4) NewObjectTrainingStatus(ready bool, inProgress bool, dataChanged bool, latestFailed bool, ...) (_model *ObjectTrainingStatus, err error)
- func (*VisualRecognitionV4) NewTrainOptions(collectionID string) *TrainOptions
- func (*VisualRecognitionV4) NewTrainingStatus(objects *ObjectTrainingStatus) (_model *TrainingStatus, err error)
- func (*VisualRecognitionV4) NewUpdateCollectionOptions(collectionID string) *UpdateCollectionOptions
- func (*VisualRecognitionV4) NewUpdateObjectMetadata(object string) (_model *UpdateObjectMetadata, err error)
- func (*VisualRecognitionV4) NewUpdateObjectMetadataOptions(collectionID string, object string, newObject string) *UpdateObjectMetadataOptions
- func (visualRecognition *VisualRecognitionV4) SetDefaultHeaders(headers http.Header)
- func (visualRecognition *VisualRecognitionV4) SetEnableGzipCompression(enableGzip bool)
- func (visualRecognition *VisualRecognitionV4) SetServiceURL(url string) error
- func (visualRecognition *VisualRecognitionV4) Train(trainOptions *TrainOptions) (result *Collection, response *core.DetailedResponse, err error)
- func (visualRecognition *VisualRecognitionV4) TrainWithContext(ctx context.Context, trainOptions *TrainOptions) (result *Collection, response *core.DetailedResponse, err error)
- func (visualRecognition *VisualRecognitionV4) UpdateCollection(updateCollectionOptions *UpdateCollectionOptions) (result *Collection, response *core.DetailedResponse, err error)
- func (visualRecognition *VisualRecognitionV4) UpdateCollectionWithContext(ctx context.Context, updateCollectionOptions *UpdateCollectionOptions) (result *Collection, response *core.DetailedResponse, err error)
- func (visualRecognition *VisualRecognitionV4) UpdateObjectMetadata(updateObjectMetadataOptions *UpdateObjectMetadataOptions) (result *UpdateObjectMetadata, response *core.DetailedResponse, err error)
- func (visualRecognition *VisualRecognitionV4) UpdateObjectMetadataWithContext(ctx context.Context, updateObjectMetadataOptions *UpdateObjectMetadataOptions) (result *UpdateObjectMetadata, response *core.DetailedResponse, err error)
- type VisualRecognitionV4Options
- type Warning
Constants ¶
const ( ErrorCodeInvalidFieldConst = "invalid_field" ErrorCodeInvalidHeaderConst = "invalid_header" ErrorCodeInvalidMethodConst = "invalid_method" ErrorCodeMissingFieldConst = "missing_field" ErrorCodeServerErrorConst = "server_error" )
Constants associated with the Error.Code property. Identifier of the problem.
const ( ErrorTargetTypeFieldConst = "field" ErrorTargetTypeHeaderConst = "header" ErrorTargetTypeParameterConst = "parameter" )
Constants associated with the ErrorTarget.Type property. The parameter or property that is the focus of the problem.
const ( GetJpegImageOptionsSizeFullConst = "full" GetJpegImageOptionsSizeThumbnailConst = "thumbnail" )
Constants associated with the GetJpegImageOptions.Size property. The image size. Specify `thumbnail` to return a version that maintains the original aspect ratio but is no larger than 200 pixels in the larger dimension. For example, an original 800 x 1000 image is resized to 160 x 200 pixels.
const ( ImageSourceTypeFileConst = "file" ImageSourceTypeURLConst = "url" )
Constants associated with the ImageSource.Type property. The source type of the image.
const ( TrainingEventStatusFailedConst = "failed" TrainingEventStatusSucceededConst = "succeeded" )
Constants associated with the TrainingEvent.Status property. Training status of the training event.
const ( WarningCodeInvalidFieldConst = "invalid_field" WarningCodeInvalidHeaderConst = "invalid_header" WarningCodeInvalidMethodConst = "invalid_method" WarningCodeMissingFieldConst = "missing_field" WarningCodeServerErrorConst = "server_error" )
Constants associated with the Warning.Code property. Identifier of the problem.
const (
AnalyzeOptionsFeaturesObjectsConst = "objects"
)
Constants associated with the AnalyzeOptions.Features property.
const DefaultServiceName = "watson_vision_combined"
DefaultServiceName is the default key used to find external configuration information.
const DefaultServiceURL = "https://api.us-south.visual-recognition.watson.cloud.ibm.com"
DefaultServiceURL is the default URL to make service requests to.
const (
GetModelFileOptionsFeatureObjectsConst = "objects"
)
Constants associated with the GetModelFileOptions.Feature property. The feature for the model.
const (
GetModelFileOptionsModelFormatRscnnConst = "rscnn"
)
Constants associated with the GetModelFileOptions.ModelFormat property. The format of the returned model.
const (
TrainingEventTypeObjectsConst = "objects"
)
Constants associated with the TrainingEvent.Type property. Trained object type. Only `objects` is currently supported.
Variables ¶
This section is empty.
Functions ¶
func GetServiceURLForRegion ¶
GetServiceURLForRegion returns the service URL to be used for the specified region
func UnmarshalAnalyzeResponse ¶
func UnmarshalAnalyzeResponse(m map[string]json.RawMessage, result interface{}) (err error)
UnmarshalAnalyzeResponse unmarshals an instance of AnalyzeResponse from the specified map of raw messages.
func UnmarshalCollection ¶
func UnmarshalCollection(m map[string]json.RawMessage, result interface{}) (err error)
UnmarshalCollection unmarshals an instance of Collection from the specified map of raw messages.
func UnmarshalCollectionObjects ¶
func UnmarshalCollectionObjects(m map[string]json.RawMessage, result interface{}) (err error)
UnmarshalCollectionObjects unmarshals an instance of CollectionObjects from the specified map of raw messages.
func UnmarshalCollectionTrainingStatus ¶
func UnmarshalCollectionTrainingStatus(m map[string]json.RawMessage, result interface{}) (err error)
UnmarshalCollectionTrainingStatus unmarshals an instance of CollectionTrainingStatus from the specified map of raw messages.
func UnmarshalCollectionsList ¶
func UnmarshalCollectionsList(m map[string]json.RawMessage, result interface{}) (err error)
UnmarshalCollectionsList unmarshals an instance of CollectionsList from the specified map of raw messages.
func UnmarshalDetectedObjects ¶
func UnmarshalDetectedObjects(m map[string]json.RawMessage, result interface{}) (err error)
UnmarshalDetectedObjects unmarshals an instance of DetectedObjects from the specified map of raw messages.
func UnmarshalError ¶
func UnmarshalError(m map[string]json.RawMessage, result interface{}) (err error)
UnmarshalError unmarshals an instance of Error from the specified map of raw messages.
func UnmarshalErrorTarget ¶
func UnmarshalErrorTarget(m map[string]json.RawMessage, result interface{}) (err error)
UnmarshalErrorTarget unmarshals an instance of ErrorTarget from the specified map of raw messages.
func UnmarshalFileWithMetadata ¶
func UnmarshalFileWithMetadata(m map[string]json.RawMessage, result interface{}) (err error)
UnmarshalFileWithMetadata unmarshals an instance of FileWithMetadata from the specified map of raw messages.
func UnmarshalImage ¶
func UnmarshalImage(m map[string]json.RawMessage, result interface{}) (err error)
UnmarshalImage unmarshals an instance of Image from the specified map of raw messages.
func UnmarshalImageDetails ¶
func UnmarshalImageDetails(m map[string]json.RawMessage, result interface{}) (err error)
UnmarshalImageDetails unmarshals an instance of ImageDetails from the specified map of raw messages.
func UnmarshalImageDetailsList ¶
func UnmarshalImageDetailsList(m map[string]json.RawMessage, result interface{}) (err error)
UnmarshalImageDetailsList unmarshals an instance of ImageDetailsList from the specified map of raw messages.
func UnmarshalImageDimensions ¶
func UnmarshalImageDimensions(m map[string]json.RawMessage, result interface{}) (err error)
UnmarshalImageDimensions unmarshals an instance of ImageDimensions from the specified map of raw messages.
func UnmarshalImageSource ¶
func UnmarshalImageSource(m map[string]json.RawMessage, result interface{}) (err error)
UnmarshalImageSource unmarshals an instance of ImageSource from the specified map of raw messages.
func UnmarshalImageSummary ¶
func UnmarshalImageSummary(m map[string]json.RawMessage, result interface{}) (err error)
UnmarshalImageSummary unmarshals an instance of ImageSummary from the specified map of raw messages.
func UnmarshalImageSummaryList ¶
func UnmarshalImageSummaryList(m map[string]json.RawMessage, result interface{}) (err error)
UnmarshalImageSummaryList unmarshals an instance of ImageSummaryList from the specified map of raw messages.
func UnmarshalLocation ¶
func UnmarshalLocation(m map[string]json.RawMessage, result interface{}) (err error)
UnmarshalLocation unmarshals an instance of Location from the specified map of raw messages.
func UnmarshalObjectDetail ¶
func UnmarshalObjectDetail(m map[string]json.RawMessage, result interface{}) (err error)
UnmarshalObjectDetail unmarshals an instance of ObjectDetail from the specified map of raw messages.
func UnmarshalObjectDetailLocation ¶
func UnmarshalObjectDetailLocation(m map[string]json.RawMessage, result interface{}) (err error)
UnmarshalObjectDetailLocation unmarshals an instance of ObjectDetailLocation from the specified map of raw messages.
func UnmarshalObjectMetadata ¶
func UnmarshalObjectMetadata(m map[string]json.RawMessage, result interface{}) (err error)
UnmarshalObjectMetadata unmarshals an instance of ObjectMetadata from the specified map of raw messages.
func UnmarshalObjectMetadataList ¶
func UnmarshalObjectMetadataList(m map[string]json.RawMessage, result interface{}) (err error)
UnmarshalObjectMetadataList unmarshals an instance of ObjectMetadataList from the specified map of raw messages.
func UnmarshalObjectTrainingStatus ¶
func UnmarshalObjectTrainingStatus(m map[string]json.RawMessage, result interface{}) (err error)
UnmarshalObjectTrainingStatus unmarshals an instance of ObjectTrainingStatus from the specified map of raw messages.
func UnmarshalTrainingDataObject ¶
func UnmarshalTrainingDataObject(m map[string]json.RawMessage, result interface{}) (err error)
UnmarshalTrainingDataObject unmarshals an instance of TrainingDataObject from the specified map of raw messages.
func UnmarshalTrainingDataObjects ¶
func UnmarshalTrainingDataObjects(m map[string]json.RawMessage, result interface{}) (err error)
UnmarshalTrainingDataObjects unmarshals an instance of TrainingDataObjects from the specified map of raw messages.
func UnmarshalTrainingEvent ¶
func UnmarshalTrainingEvent(m map[string]json.RawMessage, result interface{}) (err error)
UnmarshalTrainingEvent unmarshals an instance of TrainingEvent from the specified map of raw messages.
func UnmarshalTrainingEvents ¶
func UnmarshalTrainingEvents(m map[string]json.RawMessage, result interface{}) (err error)
UnmarshalTrainingEvents unmarshals an instance of TrainingEvents from the specified map of raw messages.
func UnmarshalTrainingStatus ¶
func UnmarshalTrainingStatus(m map[string]json.RawMessage, result interface{}) (err error)
UnmarshalTrainingStatus unmarshals an instance of TrainingStatus from the specified map of raw messages.
func UnmarshalUpdateObjectMetadata ¶
func UnmarshalUpdateObjectMetadata(m map[string]json.RawMessage, result interface{}) (err error)
UnmarshalUpdateObjectMetadata unmarshals an instance of UpdateObjectMetadata from the specified map of raw messages.
func UnmarshalWarning ¶
func UnmarshalWarning(m map[string]json.RawMessage, result interface{}) (err error)
UnmarshalWarning unmarshals an instance of Warning from the specified map of raw messages.
Types ¶
type AddImageTrainingDataOptions ¶
type AddImageTrainingDataOptions struct { // The identifier of the collection. CollectionID *string `json:"-" validate:"required,ne="` // The identifier of the image. ImageID *string `json:"-" validate:"required,ne="` // Training data for specific objects. Objects []TrainingDataObject `json:"objects,omitempty"` // Allows users to set headers on API requests Headers map[string]string }
AddImageTrainingDataOptions : The AddImageTrainingData options.
func (*AddImageTrainingDataOptions) SetCollectionID ¶
func (_options *AddImageTrainingDataOptions) SetCollectionID(collectionID string) *AddImageTrainingDataOptions
SetCollectionID : Allow user to set CollectionID
func (*AddImageTrainingDataOptions) SetHeaders ¶
func (options *AddImageTrainingDataOptions) SetHeaders(param map[string]string) *AddImageTrainingDataOptions
SetHeaders : Allow user to set Headers
func (*AddImageTrainingDataOptions) SetImageID ¶
func (_options *AddImageTrainingDataOptions) SetImageID(imageID string) *AddImageTrainingDataOptions
SetImageID : Allow user to set ImageID
func (*AddImageTrainingDataOptions) SetObjects ¶
func (_options *AddImageTrainingDataOptions) SetObjects(objects []TrainingDataObject) *AddImageTrainingDataOptions
SetObjects : Allow user to set Objects
type AddImagesOptions ¶
type AddImagesOptions struct { // The identifier of the collection. CollectionID *string `json:"-" validate:"required,ne="` // An array of image files (.jpg or .png) or .zip files with images. // - Include a maximum of 20 images in a request. // - Limit the .zip file to 100 MB. // - Limit each image file to 10 MB. // // You can also include an image with the **image_url** parameter. ImagesFile []FileWithMetadata `json:"-"` // The array of URLs of image files (.jpg or .png). // - Include a maximum of 20 images in a request. // - Limit each image file to 10 MB. // - Minimum width and height is 30 pixels, but the service tends to perform better with images that are at least 300 x // 300 pixels. Maximum is 5400 pixels for either height or width. // // You can also include images with the **images_file** parameter. ImageURL []string `json:"-"` // Training data for a single image. Include training data only if you add one image with the request. // // The `object` property can contain alphanumeric, underscore, hyphen, space, and dot characters. It cannot begin with // the reserved prefix `sys-` and must be no longer than 32 characters. TrainingData *string `json:"-"` // Allows users to set headers on API requests Headers map[string]string }
AddImagesOptions : The AddImages options.
func (*AddImagesOptions) SetCollectionID ¶
func (_options *AddImagesOptions) SetCollectionID(collectionID string) *AddImagesOptions
SetCollectionID : Allow user to set CollectionID
func (*AddImagesOptions) SetHeaders ¶
func (options *AddImagesOptions) SetHeaders(param map[string]string) *AddImagesOptions
SetHeaders : Allow user to set Headers
func (*AddImagesOptions) SetImageURL ¶
func (_options *AddImagesOptions) SetImageURL(imageURL []string) *AddImagesOptions
SetImageURL : Allow user to set ImageURL
func (*AddImagesOptions) SetImagesFile ¶
func (_options *AddImagesOptions) SetImagesFile(imagesFile []FileWithMetadata) *AddImagesOptions
SetImagesFile : Allow user to set ImagesFile
func (*AddImagesOptions) SetTrainingData ¶
func (_options *AddImagesOptions) SetTrainingData(trainingData string) *AddImagesOptions
SetTrainingData : Allow user to set TrainingData
type AnalyzeOptions ¶
type AnalyzeOptions struct { // The IDs of the collections to analyze. CollectionIds []string `json:"-" validate:"required"` // The features to analyze. Features []string `json:"-" validate:"required"` // An array of image files (.jpg or .png) or .zip files with images. // - Include a maximum of 20 images in a request. // - Limit the .zip file to 100 MB. // - Limit each image file to 10 MB. // // You can also include an image with the **image_url** parameter. ImagesFile []FileWithMetadata `json:"-"` // An array of URLs of image files (.jpg or .png). // - Include a maximum of 20 images in a request. // - Limit each image file to 10 MB. // - Minimum width and height is 30 pixels, but the service tends to perform better with images that are at least 300 x // 300 pixels. Maximum is 5400 pixels for either height or width. // // You can also include images with the **images_file** parameter. ImageURL []string `json:"-"` // The minimum score a feature must have to be returned. Threshold *float32 `json:"-"` // Allows users to set headers on API requests Headers map[string]string }
AnalyzeOptions : The Analyze options.
func (*AnalyzeOptions) SetCollectionIds ¶
func (_options *AnalyzeOptions) SetCollectionIds(collectionIds []string) *AnalyzeOptions
SetCollectionIds : Allow user to set CollectionIds
func (*AnalyzeOptions) SetFeatures ¶
func (_options *AnalyzeOptions) SetFeatures(features []string) *AnalyzeOptions
SetFeatures : Allow user to set Features
func (*AnalyzeOptions) SetHeaders ¶
func (options *AnalyzeOptions) SetHeaders(param map[string]string) *AnalyzeOptions
SetHeaders : Allow user to set Headers
func (*AnalyzeOptions) SetImageURL ¶
func (_options *AnalyzeOptions) SetImageURL(imageURL []string) *AnalyzeOptions
SetImageURL : Allow user to set ImageURL
func (*AnalyzeOptions) SetImagesFile ¶
func (_options *AnalyzeOptions) SetImagesFile(imagesFile []FileWithMetadata) *AnalyzeOptions
SetImagesFile : Allow user to set ImagesFile
func (*AnalyzeOptions) SetThreshold ¶
func (_options *AnalyzeOptions) SetThreshold(threshold float32) *AnalyzeOptions
SetThreshold : Allow user to set Threshold
type AnalyzeResponse ¶
type AnalyzeResponse struct { // Analyzed images. Images []Image `json:"images" validate:"required"` // Information about what might cause less than optimal output. Warnings []Warning `json:"warnings,omitempty"` // A unique identifier of the request. Included only when an error or warning is returned. Trace *string `json:"trace,omitempty"` }
AnalyzeResponse : Results for all images.
type Collection ¶
type Collection struct { // The identifier of the collection. CollectionID *string `json:"collection_id" validate:"required"` // The name of the collection. Name *string `json:"name" validate:"required"` // The description of the collection. Description *string `json:"description" validate:"required"` // Date and time in Coordinated Universal Time (UTC) that the collection was created. Created *strfmt.DateTime `json:"created" validate:"required"` // Date and time in Coordinated Universal Time (UTC) that the collection was most recently updated. Updated *strfmt.DateTime `json:"updated" validate:"required"` // Number of images in the collection. ImageCount *int64 `json:"image_count" validate:"required"` // Training status information for the collection. TrainingStatus *CollectionTrainingStatus `json:"training_status" validate:"required"` }
Collection : Details about a collection.
type CollectionObjects ¶
type CollectionObjects struct { // The identifier of the collection. CollectionID *string `json:"collection_id" validate:"required"` // The identified objects in a collection. Objects []ObjectDetail `json:"objects" validate:"required"` }
CollectionObjects : The objects in a collection that are detected in an image.
type CollectionTrainingStatus ¶
type CollectionTrainingStatus struct { // Training status for the objects in the collection. Objects *ObjectTrainingStatus `json:"objects" validate:"required"` }
CollectionTrainingStatus : Training status information for the collection.
type CollectionsList ¶
type CollectionsList struct { // The collections in this service instance. Collections []Collection `json:"collections" validate:"required"` }
CollectionsList : A container for the list of collections.
type CreateCollectionOptions ¶
type CreateCollectionOptions struct { // The name of the collection. The name can contain alphanumeric, underscore, hyphen, and dot characters. It cannot // begin with the reserved prefix `sys-`. Name *string `json:"name,omitempty"` // The description of the collection. Description *string `json:"description,omitempty"` // Allows users to set headers on API requests Headers map[string]string }
CreateCollectionOptions : The CreateCollection options.
func (*CreateCollectionOptions) SetDescription ¶
func (_options *CreateCollectionOptions) SetDescription(description string) *CreateCollectionOptions
SetDescription : Allow user to set Description
func (*CreateCollectionOptions) SetHeaders ¶
func (options *CreateCollectionOptions) SetHeaders(param map[string]string) *CreateCollectionOptions
SetHeaders : Allow user to set Headers
func (*CreateCollectionOptions) SetName ¶
func (_options *CreateCollectionOptions) SetName(name string) *CreateCollectionOptions
SetName : Allow user to set Name
type DeleteCollectionOptions ¶
type DeleteCollectionOptions struct { // The identifier of the collection. CollectionID *string `json:"-" validate:"required,ne="` // Allows users to set headers on API requests Headers map[string]string }
DeleteCollectionOptions : The DeleteCollection options.
func (*DeleteCollectionOptions) SetCollectionID ¶
func (_options *DeleteCollectionOptions) SetCollectionID(collectionID string) *DeleteCollectionOptions
SetCollectionID : Allow user to set CollectionID
func (*DeleteCollectionOptions) SetHeaders ¶
func (options *DeleteCollectionOptions) SetHeaders(param map[string]string) *DeleteCollectionOptions
SetHeaders : Allow user to set Headers
type DeleteImageOptions ¶
type DeleteImageOptions struct { // The identifier of the collection. CollectionID *string `json:"-" validate:"required,ne="` // The identifier of the image. ImageID *string `json:"-" validate:"required,ne="` // Allows users to set headers on API requests Headers map[string]string }
DeleteImageOptions : The DeleteImage options.
func (*DeleteImageOptions) SetCollectionID ¶
func (_options *DeleteImageOptions) SetCollectionID(collectionID string) *DeleteImageOptions
SetCollectionID : Allow user to set CollectionID
func (*DeleteImageOptions) SetHeaders ¶
func (options *DeleteImageOptions) SetHeaders(param map[string]string) *DeleteImageOptions
SetHeaders : Allow user to set Headers
func (*DeleteImageOptions) SetImageID ¶
func (_options *DeleteImageOptions) SetImageID(imageID string) *DeleteImageOptions
SetImageID : Allow user to set ImageID
type DeleteObjectOptions ¶
type DeleteObjectOptions struct { // The identifier of the collection. CollectionID *string `json:"-" validate:"required,ne="` // The name of the object. Object *string `json:"-" validate:"required,ne="` // Allows users to set headers on API requests Headers map[string]string }
DeleteObjectOptions : The DeleteObject options.
func (*DeleteObjectOptions) SetCollectionID ¶
func (_options *DeleteObjectOptions) SetCollectionID(collectionID string) *DeleteObjectOptions
SetCollectionID : Allow user to set CollectionID
func (*DeleteObjectOptions) SetHeaders ¶
func (options *DeleteObjectOptions) SetHeaders(param map[string]string) *DeleteObjectOptions
SetHeaders : Allow user to set Headers
func (*DeleteObjectOptions) SetObject ¶
func (_options *DeleteObjectOptions) SetObject(object string) *DeleteObjectOptions
SetObject : Allow user to set Object
type DeleteUserDataOptions ¶
type DeleteUserDataOptions struct { // The customer ID for which all data is to be deleted. CustomerID *string `json:"-" validate:"required"` // Allows users to set headers on API requests Headers map[string]string }
DeleteUserDataOptions : The DeleteUserData options.
func (*DeleteUserDataOptions) SetCustomerID ¶
func (_options *DeleteUserDataOptions) SetCustomerID(customerID string) *DeleteUserDataOptions
SetCustomerID : Allow user to set CustomerID
func (*DeleteUserDataOptions) SetHeaders ¶
func (options *DeleteUserDataOptions) SetHeaders(param map[string]string) *DeleteUserDataOptions
SetHeaders : Allow user to set Headers
type DetectedObjects ¶
type DetectedObjects struct { // The collections with identified objects. Collections []CollectionObjects `json:"collections,omitempty"` }
DetectedObjects : Container for the list of collections that have objects detected in an image.
type Error ¶
type Error struct { // Identifier of the problem. Code *string `json:"code" validate:"required"` // An explanation of the problem with possible solutions. Message *string `json:"message" validate:"required"` // A URL for more information about the solution. MoreInfo *string `json:"more_info,omitempty"` // Details about the specific area of the problem. Target *ErrorTarget `json:"target,omitempty"` }
Error : Details about an error.
type ErrorTarget ¶
type ErrorTarget struct { // The parameter or property that is the focus of the problem. Type *string `json:"type" validate:"required"` // The property that is identified with the problem. Name *string `json:"name" validate:"required"` }
ErrorTarget : Details about the specific area of the problem.
type FileWithMetadata ¶
type FileWithMetadata struct { // The data / content for the file. Data io.ReadCloser `json:"data" validate:"required"` // The filename of the file. Filename *string `json:"filename,omitempty"` // The content type of the file. ContentType *string `json:"content_type,omitempty"` }
FileWithMetadata : A file with its associated metadata.
type GetCollectionOptions ¶
type GetCollectionOptions struct { // The identifier of the collection. CollectionID *string `json:"-" validate:"required,ne="` // Allows users to set headers on API requests Headers map[string]string }
GetCollectionOptions : The GetCollection options.
func (*GetCollectionOptions) SetCollectionID ¶
func (_options *GetCollectionOptions) SetCollectionID(collectionID string) *GetCollectionOptions
SetCollectionID : Allow user to set CollectionID
func (*GetCollectionOptions) SetHeaders ¶
func (options *GetCollectionOptions) SetHeaders(param map[string]string) *GetCollectionOptions
SetHeaders : Allow user to set Headers
type GetImageDetailsOptions ¶
type GetImageDetailsOptions struct { // The identifier of the collection. CollectionID *string `json:"-" validate:"required,ne="` // The identifier of the image. ImageID *string `json:"-" validate:"required,ne="` // Allows users to set headers on API requests Headers map[string]string }
GetImageDetailsOptions : The GetImageDetails options.
func (*GetImageDetailsOptions) SetCollectionID ¶
func (_options *GetImageDetailsOptions) SetCollectionID(collectionID string) *GetImageDetailsOptions
SetCollectionID : Allow user to set CollectionID
func (*GetImageDetailsOptions) SetHeaders ¶
func (options *GetImageDetailsOptions) SetHeaders(param map[string]string) *GetImageDetailsOptions
SetHeaders : Allow user to set Headers
func (*GetImageDetailsOptions) SetImageID ¶
func (_options *GetImageDetailsOptions) SetImageID(imageID string) *GetImageDetailsOptions
SetImageID : Allow user to set ImageID
type GetJpegImageOptions ¶
type GetJpegImageOptions struct { // The identifier of the collection. CollectionID *string `json:"-" validate:"required,ne="` // The identifier of the image. ImageID *string `json:"-" validate:"required,ne="` // The image size. Specify `thumbnail` to return a version that maintains the original aspect ratio but is no larger // than 200 pixels in the larger dimension. For example, an original 800 x 1000 image is resized to 160 x 200 pixels. Size *string `json:"-"` // Allows users to set headers on API requests Headers map[string]string }
GetJpegImageOptions : The GetJpegImage options.
func (*GetJpegImageOptions) SetCollectionID ¶
func (_options *GetJpegImageOptions) SetCollectionID(collectionID string) *GetJpegImageOptions
SetCollectionID : Allow user to set CollectionID
func (*GetJpegImageOptions) SetHeaders ¶
func (options *GetJpegImageOptions) SetHeaders(param map[string]string) *GetJpegImageOptions
SetHeaders : Allow user to set Headers
func (*GetJpegImageOptions) SetImageID ¶
func (_options *GetJpegImageOptions) SetImageID(imageID string) *GetJpegImageOptions
SetImageID : Allow user to set ImageID
func (*GetJpegImageOptions) SetSize ¶
func (_options *GetJpegImageOptions) SetSize(size string) *GetJpegImageOptions
SetSize : Allow user to set Size
type GetModelFileOptions ¶
type GetModelFileOptions struct { // The identifier of the collection. CollectionID *string `json:"-" validate:"required,ne="` // The feature for the model. Feature *string `json:"-" validate:"required"` // The format of the returned model. ModelFormat *string `json:"-" validate:"required"` // Allows users to set headers on API requests Headers map[string]string }
GetModelFileOptions : The GetModelFile options.
func (*GetModelFileOptions) SetCollectionID ¶
func (_options *GetModelFileOptions) SetCollectionID(collectionID string) *GetModelFileOptions
SetCollectionID : Allow user to set CollectionID
func (*GetModelFileOptions) SetFeature ¶
func (_options *GetModelFileOptions) SetFeature(feature string) *GetModelFileOptions
SetFeature : Allow user to set Feature
func (*GetModelFileOptions) SetHeaders ¶
func (options *GetModelFileOptions) SetHeaders(param map[string]string) *GetModelFileOptions
SetHeaders : Allow user to set Headers
func (*GetModelFileOptions) SetModelFormat ¶
func (_options *GetModelFileOptions) SetModelFormat(modelFormat string) *GetModelFileOptions
SetModelFormat : Allow user to set ModelFormat
type GetObjectMetadataOptions ¶
type GetObjectMetadataOptions struct { // The identifier of the collection. CollectionID *string `json:"-" validate:"required,ne="` // The name of the object. Object *string `json:"-" validate:"required,ne="` // Allows users to set headers on API requests Headers map[string]string }
GetObjectMetadataOptions : The GetObjectMetadata options.
func (*GetObjectMetadataOptions) SetCollectionID ¶
func (_options *GetObjectMetadataOptions) SetCollectionID(collectionID string) *GetObjectMetadataOptions
SetCollectionID : Allow user to set CollectionID
func (*GetObjectMetadataOptions) SetHeaders ¶
func (options *GetObjectMetadataOptions) SetHeaders(param map[string]string) *GetObjectMetadataOptions
SetHeaders : Allow user to set Headers
func (*GetObjectMetadataOptions) SetObject ¶
func (_options *GetObjectMetadataOptions) SetObject(object string) *GetObjectMetadataOptions
SetObject : Allow user to set Object
type GetTrainingUsageOptions ¶
type GetTrainingUsageOptions struct { // The earliest day to include training events. Specify dates in YYYY-MM-DD format. If empty or not specified, the // earliest training event is included. StartTime *strfmt.Date `json:"-"` // The most recent day to include training events. Specify dates in YYYY-MM-DD format. All events for the day are // included. If empty or not specified, the current day is used. Specify the same value as `start_time` to request // events for a single day. EndTime *strfmt.Date `json:"-"` // Allows users to set headers on API requests Headers map[string]string }
GetTrainingUsageOptions : The GetTrainingUsage options.
func (*GetTrainingUsageOptions) SetEndTime ¶
func (_options *GetTrainingUsageOptions) SetEndTime(endTime *strfmt.Date) *GetTrainingUsageOptions
SetEndTime : Allow user to set EndTime
func (*GetTrainingUsageOptions) SetHeaders ¶
func (options *GetTrainingUsageOptions) SetHeaders(param map[string]string) *GetTrainingUsageOptions
SetHeaders : Allow user to set Headers
func (*GetTrainingUsageOptions) SetStartTime ¶
func (_options *GetTrainingUsageOptions) SetStartTime(startTime *strfmt.Date) *GetTrainingUsageOptions
SetStartTime : Allow user to set StartTime
type Image ¶
type Image struct { // The source type of the image. Source *ImageSource `json:"source" validate:"required"` // Height and width of an image. Dimensions *ImageDimensions `json:"dimensions" validate:"required"` // Container for the list of collections that have objects detected in an image. Objects *DetectedObjects `json:"objects" validate:"required"` // A container for the problems in the request. Errors []Error `json:"errors,omitempty"` }
Image : Details about an image.
type ImageDetails ¶
type ImageDetails struct { // The identifier of the image. ImageID *string `json:"image_id,omitempty"` // Date and time in Coordinated Universal Time (UTC) that the image was most recently updated. Updated *strfmt.DateTime `json:"updated,omitempty"` // Date and time in Coordinated Universal Time (UTC) that the image was created. Created *strfmt.DateTime `json:"created,omitempty"` // The source type of the image. Source *ImageSource `json:"source" validate:"required"` // Height and width of an image. Dimensions *ImageDimensions `json:"dimensions,omitempty"` // Details about the errors. Errors []Error `json:"errors,omitempty"` // Training data for all objects. TrainingData *TrainingDataObjects `json:"training_data,omitempty"` }
ImageDetails : Details about an image.
type ImageDetailsList ¶
type ImageDetailsList struct { // The images in the collection. Images []ImageDetails `json:"images,omitempty"` // Information about what might cause less than optimal output. Warnings []Warning `json:"warnings,omitempty"` // A unique identifier of the request. Included only when an error or warning is returned. Trace *string `json:"trace,omitempty"` }
ImageDetailsList : List of information about the images.
type ImageDimensions ¶
type ImageDimensions struct { // Height in pixels of the image. Height *int64 `json:"height,omitempty"` // Width in pixels of the image. Width *int64 `json:"width,omitempty"` }
ImageDimensions : Height and width of an image.
type ImageSource ¶
type ImageSource struct { // The source type of the image. Type *string `json:"type" validate:"required"` // Name of the image file if uploaded. Not returned when the image is passed by URL. Filename *string `json:"filename,omitempty"` // Name of the .zip file of images if uploaded. Not returned when the image is passed directly or by URL. ArchiveFilename *string `json:"archive_filename,omitempty"` // Source of the image before any redirects. Not returned when the image is uploaded. SourceURL *string `json:"source_url,omitempty"` // Fully resolved URL of the image after redirects are followed. Not returned when the image is uploaded. ResolvedURL *string `json:"resolved_url,omitempty"` }
ImageSource : The source type of the image.
type ImageSummary ¶
type ImageSummary struct { // The identifier of the image. ImageID *string `json:"image_id,omitempty"` // Date and time in Coordinated Universal Time (UTC) that the image was most recently updated. Updated *strfmt.DateTime `json:"updated,omitempty"` }
ImageSummary : Basic information about an image.
type ImageSummaryList ¶
type ImageSummaryList struct { // The images in the collection. Images []ImageSummary `json:"images" validate:"required"` }
ImageSummaryList : List of images.
type ListCollectionsOptions ¶
type ListCollectionsOptions struct { // Allows users to set headers on API requests Headers map[string]string }
ListCollectionsOptions : The ListCollections options.
func (*ListCollectionsOptions) SetHeaders ¶
func (options *ListCollectionsOptions) SetHeaders(param map[string]string) *ListCollectionsOptions
SetHeaders : Allow user to set Headers
type ListImagesOptions ¶
type ListImagesOptions struct { // The identifier of the collection. CollectionID *string `json:"-" validate:"required,ne="` // Allows users to set headers on API requests Headers map[string]string }
ListImagesOptions : The ListImages options.
func (*ListImagesOptions) SetCollectionID ¶
func (_options *ListImagesOptions) SetCollectionID(collectionID string) *ListImagesOptions
SetCollectionID : Allow user to set CollectionID
func (*ListImagesOptions) SetHeaders ¶
func (options *ListImagesOptions) SetHeaders(param map[string]string) *ListImagesOptions
SetHeaders : Allow user to set Headers
type ListObjectMetadataOptions ¶
type ListObjectMetadataOptions struct { // The identifier of the collection. CollectionID *string `json:"-" validate:"required,ne="` // Allows users to set headers on API requests Headers map[string]string }
ListObjectMetadataOptions : The ListObjectMetadata options.
func (*ListObjectMetadataOptions) SetCollectionID ¶
func (_options *ListObjectMetadataOptions) SetCollectionID(collectionID string) *ListObjectMetadataOptions
SetCollectionID : Allow user to set CollectionID
func (*ListObjectMetadataOptions) SetHeaders ¶
func (options *ListObjectMetadataOptions) SetHeaders(param map[string]string) *ListObjectMetadataOptions
SetHeaders : Allow user to set Headers
type Location ¶
type Location struct { // Y-position of top-left pixel of the bounding box. Top *int64 `json:"top" validate:"required"` // X-position of top-left pixel of the bounding box. Left *int64 `json:"left" validate:"required"` // Width in pixels of of the bounding box. Width *int64 `json:"width" validate:"required"` // Height in pixels of the bounding box. Height *int64 `json:"height" validate:"required"` }
Location : Defines the location of the bounding box around the object.
type ObjectDetail ¶
type ObjectDetail struct { // The label for the object. Object *string `json:"object" validate:"required"` // Defines the location of the bounding box around the object. Location *ObjectDetailLocation `json:"location" validate:"required"` // Confidence score for the object in the range of 0 to 1. A higher score indicates greater likelihood that the object // is depicted at this location in the image. Score *float32 `json:"score" validate:"required"` }
ObjectDetail : Details about an object in the collection.
type ObjectDetailLocation ¶
type ObjectDetailLocation struct { // Y-position of top-left pixel of the bounding box. Top *int64 `json:"top" validate:"required"` // X-position of top-left pixel of the bounding box. Left *int64 `json:"left" validate:"required"` // Width in pixels of of the bounding box. Width *int64 `json:"width" validate:"required"` // Height in pixels of the bounding box. Height *int64 `json:"height" validate:"required"` }
ObjectDetailLocation : Defines the location of the bounding box around the object.
type ObjectMetadata ¶
type ObjectMetadata struct { // The name of the object. Object *string `json:"object,omitempty"` // Number of bounding boxes with this object name in the collection. Count *int64 `json:"count,omitempty"` }
ObjectMetadata : Basic information about an object.
type ObjectMetadataList ¶
type ObjectMetadataList struct { // Number of unique named objects in the collection. ObjectCount *int64 `json:"object_count" validate:"required"` // The objects in the collection. Objects []ObjectMetadata `json:"objects,omitempty"` }
ObjectMetadataList : List of objects.
type ObjectTrainingStatus ¶
type ObjectTrainingStatus struct { // Whether you can analyze images in the collection with the **objects** feature. Ready *bool `json:"ready" validate:"required"` // Whether training is in progress. InProgress *bool `json:"in_progress" validate:"required"` // Whether there are changes to the training data since the most recent training. DataChanged *bool `json:"data_changed" validate:"required"` // Whether the most recent training failed. LatestFailed *bool `json:"latest_failed" validate:"required"` // Whether the model can be downloaded after the training status is `ready`. RscnnReady *bool `json:"rscnn_ready" validate:"required"` // Details about the training. If training is in progress, includes information about the status. If training is not in // progress, includes a success message or information about why training failed. Description *string `json:"description" validate:"required"` }
ObjectTrainingStatus : Training status for the objects in the collection.
type TrainOptions ¶
type TrainOptions struct { // The identifier of the collection. CollectionID *string `json:"-" validate:"required,ne="` // Allows users to set headers on API requests Headers map[string]string }
TrainOptions : The Train options.
func (*TrainOptions) SetCollectionID ¶
func (_options *TrainOptions) SetCollectionID(collectionID string) *TrainOptions
SetCollectionID : Allow user to set CollectionID
func (*TrainOptions) SetHeaders ¶
func (options *TrainOptions) SetHeaders(param map[string]string) *TrainOptions
SetHeaders : Allow user to set Headers
type TrainingDataObject ¶
type TrainingDataObject struct { // The name of the object. Object *string `json:"object,omitempty"` // Defines the location of the bounding box around the object. Location *Location `json:"location,omitempty"` }
TrainingDataObject : Details about the training data.
type TrainingDataObjects ¶
type TrainingDataObjects struct { // Training data for specific objects. Objects []TrainingDataObject `json:"objects,omitempty"` }
TrainingDataObjects : Training data for all objects.
type TrainingEvent ¶
type TrainingEvent struct { // Trained object type. Only `objects` is currently supported. Type *string `json:"type,omitempty"` // Identifier of the trained collection. CollectionID *string `json:"collection_id,omitempty"` // Date and time in Coordinated Universal Time (UTC) that training on the collection finished. CompletionTime *strfmt.DateTime `json:"completion_time,omitempty"` // Training status of the training event. Status *string `json:"status,omitempty"` // The total number of images that were used in training for this training event. ImageCount *int64 `json:"image_count,omitempty"` }
TrainingEvent : Details about the training event.
type TrainingEvents ¶
type TrainingEvents struct { // The starting day for the returned training events in Coordinated Universal Time (UTC). If not specified in the // request, it identifies the earliest training event. StartTime *strfmt.DateTime `json:"start_time,omitempty"` // The ending day for the returned training events in Coordinated Universal Time (UTC). If not specified in the // request, it lists the current time. EndTime *strfmt.DateTime `json:"end_time,omitempty"` // The total number of training events in the response for the start and end times. CompletedEvents *int64 `json:"completed_events,omitempty"` // The total number of images that were used in training for the start and end times. TrainedImages *int64 `json:"trained_images,omitempty"` // The completed training events for the start and end time. Events []TrainingEvent `json:"events,omitempty"` }
TrainingEvents : Details about the training events.
type TrainingStatus ¶
type TrainingStatus struct { // Training status for the objects in the collection. Objects *ObjectTrainingStatus `json:"objects" validate:"required"` }
TrainingStatus : Training status information for the collection.
type UpdateCollectionOptions ¶
type UpdateCollectionOptions struct { // The identifier of the collection. CollectionID *string `json:"-" validate:"required,ne="` // The name of the collection. The name can contain alphanumeric, underscore, hyphen, and dot characters. It cannot // begin with the reserved prefix `sys-`. Name *string `json:"name,omitempty"` // The description of the collection. Description *string `json:"description,omitempty"` // Allows users to set headers on API requests Headers map[string]string }
UpdateCollectionOptions : The UpdateCollection options.
func (*UpdateCollectionOptions) SetCollectionID ¶
func (_options *UpdateCollectionOptions) SetCollectionID(collectionID string) *UpdateCollectionOptions
SetCollectionID : Allow user to set CollectionID
func (*UpdateCollectionOptions) SetDescription ¶
func (_options *UpdateCollectionOptions) SetDescription(description string) *UpdateCollectionOptions
SetDescription : Allow user to set Description
func (*UpdateCollectionOptions) SetHeaders ¶
func (options *UpdateCollectionOptions) SetHeaders(param map[string]string) *UpdateCollectionOptions
SetHeaders : Allow user to set Headers
func (*UpdateCollectionOptions) SetName ¶
func (_options *UpdateCollectionOptions) SetName(name string) *UpdateCollectionOptions
SetName : Allow user to set Name
type UpdateObjectMetadata ¶
type UpdateObjectMetadata struct { // The updated name of the object. The name can contain alphanumeric, underscore, hyphen, space, and dot characters. It // cannot begin with the reserved prefix `sys-`. Object *string `json:"object" validate:"required"` // Number of bounding boxes in the collection with the updated object name. Count *int64 `json:"count,omitempty"` }
UpdateObjectMetadata : Basic information about an updated object.
type UpdateObjectMetadataOptions ¶
type UpdateObjectMetadataOptions struct { // The identifier of the collection. CollectionID *string `json:"-" validate:"required,ne="` // The name of the object. Object *string `json:"-" validate:"required,ne="` // The updated name of the object. The name can contain alphanumeric, underscore, hyphen, space, and dot characters. It // cannot begin with the reserved prefix `sys-`. NewObject *string `json:"object" validate:"required"` // Allows users to set headers on API requests Headers map[string]string }
UpdateObjectMetadataOptions : The UpdateObjectMetadata options.
func (*UpdateObjectMetadataOptions) SetCollectionID ¶
func (_options *UpdateObjectMetadataOptions) SetCollectionID(collectionID string) *UpdateObjectMetadataOptions
SetCollectionID : Allow user to set CollectionID
func (*UpdateObjectMetadataOptions) SetHeaders ¶
func (options *UpdateObjectMetadataOptions) SetHeaders(param map[string]string) *UpdateObjectMetadataOptions
SetHeaders : Allow user to set Headers
func (*UpdateObjectMetadataOptions) SetNewObject ¶
func (_options *UpdateObjectMetadataOptions) SetNewObject(newObject string) *UpdateObjectMetadataOptions
SetNewObject : Allow user to set NewObject
func (*UpdateObjectMetadataOptions) SetObject ¶
func (_options *UpdateObjectMetadataOptions) SetObject(object string) *UpdateObjectMetadataOptions
SetObject : Allow user to set Object
type VisualRecognitionV4 ¶
type VisualRecognitionV4 struct { Service *core.BaseService // Release date of the API version you want to use. Specify dates in YYYY-MM-DD format. The current version is // `2019-02-11`. Version *string }
VisualRecognitionV4 : IBM Watson™ Visual Recognition is discontinued. Existing instances are supported until 1 December 2021, but as of 7 January 2021, you can't create instances. Any instance that is provisioned on 1 December 2021 will be deleted. {: deprecated}
Provide images to the IBM Watson Visual Recognition service for analysis. The service detects objects based on a set of images with training data.
API Version: 4.0 See: https://cloud.ibm.com/docs/visual-recognition?topic=visual-recognition-object-detection-overview
func NewVisualRecognitionV4 ¶
func NewVisualRecognitionV4(options *VisualRecognitionV4Options) (service *VisualRecognitionV4, err error)
NewVisualRecognitionV4 : constructs an instance of VisualRecognitionV4 with passed in options.
func (*VisualRecognitionV4) AddImageTrainingData ¶
func (visualRecognition *VisualRecognitionV4) AddImageTrainingData(addImageTrainingDataOptions *AddImageTrainingDataOptions) (result *TrainingDataObjects, response *core.DetailedResponse, err error)
AddImageTrainingData : Add training data to an image Add, update, or delete training data for an image. Encode the object name in UTF-8 if it contains non-ASCII characters. The service assumes UTF-8 encoding if it encounters non-ASCII characters.
Elements in the request replace the existing elements.
- To update the training data, provide both the unchanged and the new or changed values.
- To delete the training data, provide an empty value for the training data.
func (*VisualRecognitionV4) AddImageTrainingDataWithContext ¶
func (visualRecognition *VisualRecognitionV4) AddImageTrainingDataWithContext(ctx context.Context, addImageTrainingDataOptions *AddImageTrainingDataOptions) (result *TrainingDataObjects, response *core.DetailedResponse, err error)
AddImageTrainingDataWithContext is an alternate form of the AddImageTrainingData method which supports a Context parameter
func (*VisualRecognitionV4) AddImages ¶
func (visualRecognition *VisualRecognitionV4) AddImages(addImagesOptions *AddImagesOptions) (result *ImageDetailsList, response *core.DetailedResponse, err error)
AddImages : Add images Add images to a collection by URL, by file, or both.
Encode the image and .zip file names in UTF-8 if they contain non-ASCII characters. The service assumes UTF-8 encoding if it encounters non-ASCII characters.
func (*VisualRecognitionV4) AddImagesWithContext ¶
func (visualRecognition *VisualRecognitionV4) AddImagesWithContext(ctx context.Context, addImagesOptions *AddImagesOptions) (result *ImageDetailsList, response *core.DetailedResponse, err error)
AddImagesWithContext is an alternate form of the AddImages method which supports a Context parameter
func (*VisualRecognitionV4) Analyze ¶
func (visualRecognition *VisualRecognitionV4) Analyze(analyzeOptions *AnalyzeOptions) (result *AnalyzeResponse, response *core.DetailedResponse, err error)
Analyze : Analyze images Analyze images by URL, by file, or both against your own collection. Make sure that **training_status.objects.ready** is `true` for the feature before you use a collection to analyze images.
Encode the image and .zip file names in UTF-8 if they contain non-ASCII characters. The service assumes UTF-8 encoding if it encounters non-ASCII characters.
func (*VisualRecognitionV4) AnalyzeWithContext ¶
func (visualRecognition *VisualRecognitionV4) AnalyzeWithContext(ctx context.Context, analyzeOptions *AnalyzeOptions) (result *AnalyzeResponse, response *core.DetailedResponse, err error)
AnalyzeWithContext is an alternate form of the Analyze method which supports a Context parameter
func (*VisualRecognitionV4) Clone ¶
func (visualRecognition *VisualRecognitionV4) Clone() *VisualRecognitionV4
Clone makes a copy of "visualRecognition" suitable for processing requests.
func (*VisualRecognitionV4) CreateCollection ¶
func (visualRecognition *VisualRecognitionV4) CreateCollection(createCollectionOptions *CreateCollectionOptions) (result *Collection, response *core.DetailedResponse, err error)
CreateCollection : Create a collection Create a collection that can be used to store images.
To create a collection without specifying a name and description, include an empty JSON object in the request body.
Encode the name and description in UTF-8 if they contain non-ASCII characters. The service assumes UTF-8 encoding if it encounters non-ASCII characters.
func (*VisualRecognitionV4) CreateCollectionWithContext ¶
func (visualRecognition *VisualRecognitionV4) CreateCollectionWithContext(ctx context.Context, createCollectionOptions *CreateCollectionOptions) (result *Collection, response *core.DetailedResponse, err error)
CreateCollectionWithContext is an alternate form of the CreateCollection method which supports a Context parameter
func (*VisualRecognitionV4) DeleteCollection ¶
func (visualRecognition *VisualRecognitionV4) DeleteCollection(deleteCollectionOptions *DeleteCollectionOptions) (response *core.DetailedResponse, err error)
DeleteCollection : Delete a collection Delete a collection from the service instance.
func (*VisualRecognitionV4) DeleteCollectionWithContext ¶
func (visualRecognition *VisualRecognitionV4) DeleteCollectionWithContext(ctx context.Context, deleteCollectionOptions *DeleteCollectionOptions) (response *core.DetailedResponse, err error)
DeleteCollectionWithContext is an alternate form of the DeleteCollection method which supports a Context parameter
func (*VisualRecognitionV4) DeleteImage ¶
func (visualRecognition *VisualRecognitionV4) DeleteImage(deleteImageOptions *DeleteImageOptions) (response *core.DetailedResponse, err error)
DeleteImage : Delete an image Delete one image from a collection.
func (*VisualRecognitionV4) DeleteImageWithContext ¶
func (visualRecognition *VisualRecognitionV4) DeleteImageWithContext(ctx context.Context, deleteImageOptions *DeleteImageOptions) (response *core.DetailedResponse, err error)
DeleteImageWithContext is an alternate form of the DeleteImage method which supports a Context parameter
func (*VisualRecognitionV4) DeleteObject ¶
func (visualRecognition *VisualRecognitionV4) DeleteObject(deleteObjectOptions *DeleteObjectOptions) (response *core.DetailedResponse, err error)
DeleteObject : Delete an object Delete one object from a collection. A successful request deletes the training data from all images that use the object.
func (*VisualRecognitionV4) DeleteObjectWithContext ¶
func (visualRecognition *VisualRecognitionV4) DeleteObjectWithContext(ctx context.Context, deleteObjectOptions *DeleteObjectOptions) (response *core.DetailedResponse, err error)
DeleteObjectWithContext is an alternate form of the DeleteObject method which supports a Context parameter
func (*VisualRecognitionV4) DeleteUserData ¶
func (visualRecognition *VisualRecognitionV4) DeleteUserData(deleteUserDataOptions *DeleteUserDataOptions) (response *core.DetailedResponse, err error)
DeleteUserData : Delete labeled data Deletes all data associated with a specified customer ID. The method has no effect if no data is associated with the customer ID.
You associate a customer ID with data by passing the `X-Watson-Metadata` header with a request that passes data. For more information about personal data and customer IDs, see [Information security](https://cloud.ibm.com/docs/visual-recognition?topic=visual-recognition-information-security).
func (*VisualRecognitionV4) DeleteUserDataWithContext ¶
func (visualRecognition *VisualRecognitionV4) DeleteUserDataWithContext(ctx context.Context, deleteUserDataOptions *DeleteUserDataOptions) (response *core.DetailedResponse, err error)
DeleteUserDataWithContext is an alternate form of the DeleteUserData method which supports a Context parameter
func (*VisualRecognitionV4) DisableRetries ¶
func (visualRecognition *VisualRecognitionV4) DisableRetries()
DisableRetries disables automatic retries for requests invoked for this service instance.
func (*VisualRecognitionV4) DisableSSLVerification ¶
func (visualRecognition *VisualRecognitionV4) DisableSSLVerification()
DisableSSLVerification bypasses verification of the server's SSL certificate
func (*VisualRecognitionV4) EnableRetries ¶
func (visualRecognition *VisualRecognitionV4) EnableRetries(maxRetries int, maxRetryInterval time.Duration)
EnableRetries enables automatic retries for requests invoked for this service instance. If either parameter is specified as 0, then a default value is used instead.
func (*VisualRecognitionV4) GetCollection ¶
func (visualRecognition *VisualRecognitionV4) GetCollection(getCollectionOptions *GetCollectionOptions) (result *Collection, response *core.DetailedResponse, err error)
GetCollection : Get collection details Get details of one collection.
func (*VisualRecognitionV4) GetCollectionWithContext ¶
func (visualRecognition *VisualRecognitionV4) GetCollectionWithContext(ctx context.Context, getCollectionOptions *GetCollectionOptions) (result *Collection, response *core.DetailedResponse, err error)
GetCollectionWithContext is an alternate form of the GetCollection method which supports a Context parameter
func (*VisualRecognitionV4) GetEnableGzipCompression ¶
func (visualRecognition *VisualRecognitionV4) GetEnableGzipCompression() bool
GetEnableGzipCompression returns the service's EnableGzipCompression field
func (*VisualRecognitionV4) GetImageDetails ¶
func (visualRecognition *VisualRecognitionV4) GetImageDetails(getImageDetailsOptions *GetImageDetailsOptions) (result *ImageDetails, response *core.DetailedResponse, err error)
GetImageDetails : Get image details Get the details of an image in a collection.
func (*VisualRecognitionV4) GetImageDetailsWithContext ¶
func (visualRecognition *VisualRecognitionV4) GetImageDetailsWithContext(ctx context.Context, getImageDetailsOptions *GetImageDetailsOptions) (result *ImageDetails, response *core.DetailedResponse, err error)
GetImageDetailsWithContext is an alternate form of the GetImageDetails method which supports a Context parameter
func (*VisualRecognitionV4) GetJpegImage ¶
func (visualRecognition *VisualRecognitionV4) GetJpegImage(getJpegImageOptions *GetJpegImageOptions) (result io.ReadCloser, response *core.DetailedResponse, err error)
GetJpegImage : Get a JPEG file of an image Download a JPEG representation of an image.
func (*VisualRecognitionV4) GetJpegImageWithContext ¶
func (visualRecognition *VisualRecognitionV4) GetJpegImageWithContext(ctx context.Context, getJpegImageOptions *GetJpegImageOptions) (result io.ReadCloser, response *core.DetailedResponse, err error)
GetJpegImageWithContext is an alternate form of the GetJpegImage method which supports a Context parameter
func (*VisualRecognitionV4) GetModelFile ¶
func (visualRecognition *VisualRecognitionV4) GetModelFile(getModelFileOptions *GetModelFileOptions) (result io.ReadCloser, response *core.DetailedResponse, err error)
GetModelFile : Get a model Download a model that you can deploy to detect objects in images. The collection must include a generated model, which is indicated in the response for the collection details as `"rscnn_ready": true`. If the value is `false`, train or retrain the collection to generate the model.
Currently, the model format is specific to Android apps. For more information about how to deploy the model to your app, see the [Watson Visual Recognition on Android](https://github.com/matt-ny/rscnn) project in GitHub.
func (*VisualRecognitionV4) GetModelFileWithContext ¶
func (visualRecognition *VisualRecognitionV4) GetModelFileWithContext(ctx context.Context, getModelFileOptions *GetModelFileOptions) (result io.ReadCloser, response *core.DetailedResponse, err error)
GetModelFileWithContext is an alternate form of the GetModelFile method which supports a Context parameter
func (*VisualRecognitionV4) GetObjectMetadata ¶
func (visualRecognition *VisualRecognitionV4) GetObjectMetadata(getObjectMetadataOptions *GetObjectMetadataOptions) (result *ObjectMetadata, response *core.DetailedResponse, err error)
GetObjectMetadata : Get object metadata Get the number of bounding boxes for a single object in a collection.
func (*VisualRecognitionV4) GetObjectMetadataWithContext ¶
func (visualRecognition *VisualRecognitionV4) GetObjectMetadataWithContext(ctx context.Context, getObjectMetadataOptions *GetObjectMetadataOptions) (result *ObjectMetadata, response *core.DetailedResponse, err error)
GetObjectMetadataWithContext is an alternate form of the GetObjectMetadata method which supports a Context parameter
func (*VisualRecognitionV4) GetServiceURL ¶
func (visualRecognition *VisualRecognitionV4) GetServiceURL() string
GetServiceURL returns the service URL
func (*VisualRecognitionV4) GetTrainingUsage ¶
func (visualRecognition *VisualRecognitionV4) GetTrainingUsage(getTrainingUsageOptions *GetTrainingUsageOptions) (result *TrainingEvents, response *core.DetailedResponse, err error)
GetTrainingUsage : Get training usage Information about the completed training events. You can use this information to determine how close you are to the training limits for the month.
func (*VisualRecognitionV4) GetTrainingUsageWithContext ¶
func (visualRecognition *VisualRecognitionV4) GetTrainingUsageWithContext(ctx context.Context, getTrainingUsageOptions *GetTrainingUsageOptions) (result *TrainingEvents, response *core.DetailedResponse, err error)
GetTrainingUsageWithContext is an alternate form of the GetTrainingUsage method which supports a Context parameter
func (*VisualRecognitionV4) ListCollections ¶
func (visualRecognition *VisualRecognitionV4) ListCollections(listCollectionsOptions *ListCollectionsOptions) (result *CollectionsList, response *core.DetailedResponse, err error)
ListCollections : List collections Retrieves a list of collections for the service instance.
func (*VisualRecognitionV4) ListCollectionsWithContext ¶
func (visualRecognition *VisualRecognitionV4) ListCollectionsWithContext(ctx context.Context, listCollectionsOptions *ListCollectionsOptions) (result *CollectionsList, response *core.DetailedResponse, err error)
ListCollectionsWithContext is an alternate form of the ListCollections method which supports a Context parameter
func (*VisualRecognitionV4) ListImages ¶
func (visualRecognition *VisualRecognitionV4) ListImages(listImagesOptions *ListImagesOptions) (result *ImageSummaryList, response *core.DetailedResponse, err error)
ListImages : List images Retrieves a list of images in a collection.
func (*VisualRecognitionV4) ListImagesWithContext ¶
func (visualRecognition *VisualRecognitionV4) ListImagesWithContext(ctx context.Context, listImagesOptions *ListImagesOptions) (result *ImageSummaryList, response *core.DetailedResponse, err error)
ListImagesWithContext is an alternate form of the ListImages method which supports a Context parameter
func (*VisualRecognitionV4) ListObjectMetadata ¶
func (visualRecognition *VisualRecognitionV4) ListObjectMetadata(listObjectMetadataOptions *ListObjectMetadataOptions) (result *ObjectMetadataList, response *core.DetailedResponse, err error)
ListObjectMetadata : List object metadata Retrieves a list of object names in a collection.
func (*VisualRecognitionV4) ListObjectMetadataWithContext ¶
func (visualRecognition *VisualRecognitionV4) ListObjectMetadataWithContext(ctx context.Context, listObjectMetadataOptions *ListObjectMetadataOptions) (result *ObjectMetadataList, response *core.DetailedResponse, err error)
ListObjectMetadataWithContext is an alternate form of the ListObjectMetadata method which supports a Context parameter
func (*VisualRecognitionV4) NewAddImageTrainingDataOptions ¶
func (*VisualRecognitionV4) NewAddImageTrainingDataOptions(collectionID string, imageID string) *AddImageTrainingDataOptions
NewAddImageTrainingDataOptions : Instantiate AddImageTrainingDataOptions
func (*VisualRecognitionV4) NewAddImagesOptions ¶
func (*VisualRecognitionV4) NewAddImagesOptions(collectionID string) *AddImagesOptions
NewAddImagesOptions : Instantiate AddImagesOptions
func (*VisualRecognitionV4) NewAnalyzeOptions ¶
func (*VisualRecognitionV4) NewAnalyzeOptions(collectionIds []string, features []string) *AnalyzeOptions
NewAnalyzeOptions : Instantiate AnalyzeOptions
func (*VisualRecognitionV4) NewCreateCollectionOptions ¶
func (*VisualRecognitionV4) NewCreateCollectionOptions() *CreateCollectionOptions
NewCreateCollectionOptions : Instantiate CreateCollectionOptions
func (*VisualRecognitionV4) NewDeleteCollectionOptions ¶
func (*VisualRecognitionV4) NewDeleteCollectionOptions(collectionID string) *DeleteCollectionOptions
NewDeleteCollectionOptions : Instantiate DeleteCollectionOptions
func (*VisualRecognitionV4) NewDeleteImageOptions ¶
func (*VisualRecognitionV4) NewDeleteImageOptions(collectionID string, imageID string) *DeleteImageOptions
NewDeleteImageOptions : Instantiate DeleteImageOptions
func (*VisualRecognitionV4) NewDeleteObjectOptions ¶
func (*VisualRecognitionV4) NewDeleteObjectOptions(collectionID string, object string) *DeleteObjectOptions
NewDeleteObjectOptions : Instantiate DeleteObjectOptions
func (*VisualRecognitionV4) NewDeleteUserDataOptions ¶
func (*VisualRecognitionV4) NewDeleteUserDataOptions(customerID string) *DeleteUserDataOptions
NewDeleteUserDataOptions : Instantiate DeleteUserDataOptions
func (*VisualRecognitionV4) NewFileWithMetadata ¶
func (*VisualRecognitionV4) NewFileWithMetadata(data io.ReadCloser) (_model *FileWithMetadata, err error)
NewFileWithMetadata : Instantiate FileWithMetadata (Generic Model Constructor)
func (*VisualRecognitionV4) NewGetCollectionOptions ¶
func (*VisualRecognitionV4) NewGetCollectionOptions(collectionID string) *GetCollectionOptions
NewGetCollectionOptions : Instantiate GetCollectionOptions
func (*VisualRecognitionV4) NewGetImageDetailsOptions ¶
func (*VisualRecognitionV4) NewGetImageDetailsOptions(collectionID string, imageID string) *GetImageDetailsOptions
NewGetImageDetailsOptions : Instantiate GetImageDetailsOptions
func (*VisualRecognitionV4) NewGetJpegImageOptions ¶
func (*VisualRecognitionV4) NewGetJpegImageOptions(collectionID string, imageID string) *GetJpegImageOptions
NewGetJpegImageOptions : Instantiate GetJpegImageOptions
func (*VisualRecognitionV4) NewGetModelFileOptions ¶
func (*VisualRecognitionV4) NewGetModelFileOptions(collectionID string, feature string, modelFormat string) *GetModelFileOptions
NewGetModelFileOptions : Instantiate GetModelFileOptions
func (*VisualRecognitionV4) NewGetObjectMetadataOptions ¶
func (*VisualRecognitionV4) NewGetObjectMetadataOptions(collectionID string, object string) *GetObjectMetadataOptions
NewGetObjectMetadataOptions : Instantiate GetObjectMetadataOptions
func (*VisualRecognitionV4) NewGetTrainingUsageOptions ¶
func (*VisualRecognitionV4) NewGetTrainingUsageOptions() *GetTrainingUsageOptions
NewGetTrainingUsageOptions : Instantiate GetTrainingUsageOptions
func (*VisualRecognitionV4) NewListCollectionsOptions ¶
func (*VisualRecognitionV4) NewListCollectionsOptions() *ListCollectionsOptions
NewListCollectionsOptions : Instantiate ListCollectionsOptions
func (*VisualRecognitionV4) NewListImagesOptions ¶
func (*VisualRecognitionV4) NewListImagesOptions(collectionID string) *ListImagesOptions
NewListImagesOptions : Instantiate ListImagesOptions
func (*VisualRecognitionV4) NewListObjectMetadataOptions ¶
func (*VisualRecognitionV4) NewListObjectMetadataOptions(collectionID string) *ListObjectMetadataOptions
NewListObjectMetadataOptions : Instantiate ListObjectMetadataOptions
func (*VisualRecognitionV4) NewLocation ¶
func (*VisualRecognitionV4) NewLocation(top int64, left int64, width int64, height int64) (_model *Location, err error)
NewLocation : Instantiate Location (Generic Model Constructor)
func (*VisualRecognitionV4) NewObjectTrainingStatus ¶
func (*VisualRecognitionV4) NewObjectTrainingStatus(ready bool, inProgress bool, dataChanged bool, latestFailed bool, rscnnReady bool, description string) (_model *ObjectTrainingStatus, err error)
NewObjectTrainingStatus : Instantiate ObjectTrainingStatus (Generic Model Constructor)
func (*VisualRecognitionV4) NewTrainOptions ¶
func (*VisualRecognitionV4) NewTrainOptions(collectionID string) *TrainOptions
NewTrainOptions : Instantiate TrainOptions
func (*VisualRecognitionV4) NewTrainingStatus ¶
func (*VisualRecognitionV4) NewTrainingStatus(objects *ObjectTrainingStatus) (_model *TrainingStatus, err error)
NewTrainingStatus : Instantiate TrainingStatus (Generic Model Constructor)
func (*VisualRecognitionV4) NewUpdateCollectionOptions ¶
func (*VisualRecognitionV4) NewUpdateCollectionOptions(collectionID string) *UpdateCollectionOptions
NewUpdateCollectionOptions : Instantiate UpdateCollectionOptions
func (*VisualRecognitionV4) NewUpdateObjectMetadata ¶
func (*VisualRecognitionV4) NewUpdateObjectMetadata(object string) (_model *UpdateObjectMetadata, err error)
NewUpdateObjectMetadata : Instantiate UpdateObjectMetadata (Generic Model Constructor)
func (*VisualRecognitionV4) NewUpdateObjectMetadataOptions ¶
func (*VisualRecognitionV4) NewUpdateObjectMetadataOptions(collectionID string, object string, newObject string) *UpdateObjectMetadataOptions
NewUpdateObjectMetadataOptions : Instantiate UpdateObjectMetadataOptions
func (*VisualRecognitionV4) SetDefaultHeaders ¶
func (visualRecognition *VisualRecognitionV4) SetDefaultHeaders(headers http.Header)
SetDefaultHeaders sets HTTP headers to be sent in every request
func (*VisualRecognitionV4) SetEnableGzipCompression ¶
func (visualRecognition *VisualRecognitionV4) SetEnableGzipCompression(enableGzip bool)
SetEnableGzipCompression sets the service's EnableGzipCompression field
func (*VisualRecognitionV4) SetServiceURL ¶
func (visualRecognition *VisualRecognitionV4) SetServiceURL(url string) error
SetServiceURL sets the service URL
func (*VisualRecognitionV4) Train ¶
func (visualRecognition *VisualRecognitionV4) Train(trainOptions *TrainOptions) (result *Collection, response *core.DetailedResponse, err error)
Train : Train a collection Start training on images in a collection. The collection must have enough training data and untrained data (the **training_status.objects.data_changed** is `true`). If training is in progress, the request queues the next training job.
func (*VisualRecognitionV4) TrainWithContext ¶
func (visualRecognition *VisualRecognitionV4) TrainWithContext(ctx context.Context, trainOptions *TrainOptions) (result *Collection, response *core.DetailedResponse, err error)
TrainWithContext is an alternate form of the Train method which supports a Context parameter
func (*VisualRecognitionV4) UpdateCollection ¶
func (visualRecognition *VisualRecognitionV4) UpdateCollection(updateCollectionOptions *UpdateCollectionOptions) (result *Collection, response *core.DetailedResponse, err error)
UpdateCollection : Update a collection Update the name or description of a collection.
Encode the name and description in UTF-8 if they contain non-ASCII characters. The service assumes UTF-8 encoding if it encounters non-ASCII characters.
func (*VisualRecognitionV4) UpdateCollectionWithContext ¶
func (visualRecognition *VisualRecognitionV4) UpdateCollectionWithContext(ctx context.Context, updateCollectionOptions *UpdateCollectionOptions) (result *Collection, response *core.DetailedResponse, err error)
UpdateCollectionWithContext is an alternate form of the UpdateCollection method which supports a Context parameter
func (*VisualRecognitionV4) UpdateObjectMetadata ¶
func (visualRecognition *VisualRecognitionV4) UpdateObjectMetadata(updateObjectMetadataOptions *UpdateObjectMetadataOptions) (result *UpdateObjectMetadata, response *core.DetailedResponse, err error)
UpdateObjectMetadata : Update an object name Update the name of an object. A successful request updates the training data for all images that use the object.
func (*VisualRecognitionV4) UpdateObjectMetadataWithContext ¶
func (visualRecognition *VisualRecognitionV4) UpdateObjectMetadataWithContext(ctx context.Context, updateObjectMetadataOptions *UpdateObjectMetadataOptions) (result *UpdateObjectMetadata, response *core.DetailedResponse, err error)
UpdateObjectMetadataWithContext is an alternate form of the UpdateObjectMetadata method which supports a Context parameter
type VisualRecognitionV4Options ¶
type VisualRecognitionV4Options struct { ServiceName string URL string Authenticator core.Authenticator // Release date of the API version you want to use. Specify dates in YYYY-MM-DD format. The current version is // `2019-02-11`. Version *string `validate:"required"` }
VisualRecognitionV4Options : Service options
type Warning ¶
type Warning struct { // Identifier of the problem. Code *string `json:"code" validate:"required"` // An explanation of the problem with possible solutions. Message *string `json:"message" validate:"required"` // A URL for more information about the solution. MoreInfo *string `json:"more_info,omitempty"` }
Warning : Details about a problem.