Versions in this module Expand all Collapse all v48 v48.2.2 Nov 27, 2020 v48.2.1 Nov 27, 2020 v48.2.0 Nov 13, 2020 v48.1.0 Nov 7, 2020 v48.0.0 Oct 28, 2020 Changes in this version + func UserAgent() string + func Version() string + type AdultInfo struct + AdultScore *float64 + GoreScore *float64 + IsAdultContent *bool + IsGoryContent *bool + IsRacyContent *bool + RacyScore *float64 + type AnalyzeResults struct + ReadResults *[]ReadResult + Version *string + type AreaOfInterestResult struct + AreaOfInterest *BoundingRect + Metadata *ImageMetadata + RequestID *string + func (aoir AreaOfInterestResult) MarshalJSON() ([]byte, error) + type BaseClient struct + Endpoint string + func New(endpoint string) BaseClient + func NewWithoutDefaults(endpoint string) BaseClient + func (client BaseClient) AnalyzeImage(ctx context.Context, imageURL ImageURL, visualFeatures []VisualFeatureTypes, ...) (result ImageAnalysis, err error) + func (client BaseClient) AnalyzeImageByDomain(ctx context.Context, model string, imageURL ImageURL, language string) (result DomainModelResults, err error) + func (client BaseClient) AnalyzeImageByDomainInStream(ctx context.Context, model string, imageParameter io.ReadCloser, ...) (result DomainModelResults, err error) + func (client BaseClient) AnalyzeImageByDomainInStreamPreparer(ctx context.Context, model string, imageParameter io.ReadCloser, ...) (*http.Request, error) + func (client BaseClient) AnalyzeImageByDomainInStreamResponder(resp *http.Response) (result DomainModelResults, err error) + func (client BaseClient) AnalyzeImageByDomainInStreamSender(req *http.Request) (*http.Response, error) + func (client BaseClient) AnalyzeImageByDomainPreparer(ctx context.Context, model string, imageURL ImageURL, language string) (*http.Request, error) + func (client BaseClient) AnalyzeImageByDomainResponder(resp *http.Response) (result DomainModelResults, err error) + func (client BaseClient) AnalyzeImageByDomainSender(req *http.Request) (*http.Response, error) + func (client BaseClient) AnalyzeImageInStream(ctx context.Context, imageParameter io.ReadCloser, ...) (result ImageAnalysis, err error) + func (client BaseClient) AnalyzeImageInStreamPreparer(ctx context.Context, imageParameter io.ReadCloser, ...) (*http.Request, error) + func (client BaseClient) AnalyzeImageInStreamResponder(resp *http.Response) (result ImageAnalysis, err error) + func (client BaseClient) AnalyzeImageInStreamSender(req *http.Request) (*http.Response, error) + func (client BaseClient) AnalyzeImagePreparer(ctx context.Context, imageURL ImageURL, visualFeatures []VisualFeatureTypes, ...) (*http.Request, error) + func (client BaseClient) AnalyzeImageResponder(resp *http.Response) (result ImageAnalysis, err error) + func (client BaseClient) AnalyzeImageSender(req *http.Request) (*http.Response, error) + func (client BaseClient) DescribeImage(ctx context.Context, imageURL ImageURL, maxCandidates *int32, language string, ...) (result ImageDescription, err error) + func (client BaseClient) DescribeImageInStream(ctx context.Context, imageParameter io.ReadCloser, maxCandidates *int32, ...) (result ImageDescription, err error) + func (client BaseClient) DescribeImageInStreamPreparer(ctx context.Context, imageParameter io.ReadCloser, maxCandidates *int32, ...) (*http.Request, error) + func (client BaseClient) DescribeImageInStreamResponder(resp *http.Response) (result ImageDescription, err error) + func (client BaseClient) DescribeImageInStreamSender(req *http.Request) (*http.Response, error) + func (client BaseClient) DescribeImagePreparer(ctx context.Context, imageURL ImageURL, maxCandidates *int32, language string, ...) (*http.Request, error) + func (client BaseClient) DescribeImageResponder(resp *http.Response) (result ImageDescription, err error) + func (client BaseClient) DescribeImageSender(req *http.Request) (*http.Response, error) + func (client BaseClient) DetectObjects(ctx context.Context, imageURL ImageURL) (result DetectResult, err error) + func (client BaseClient) DetectObjectsInStream(ctx context.Context, imageParameter io.ReadCloser) (result DetectResult, err error) + func (client BaseClient) DetectObjectsInStreamPreparer(ctx context.Context, imageParameter io.ReadCloser) (*http.Request, error) + func (client BaseClient) DetectObjectsInStreamResponder(resp *http.Response) (result DetectResult, err error) + func (client BaseClient) DetectObjectsInStreamSender(req *http.Request) (*http.Response, error) + func (client BaseClient) DetectObjectsPreparer(ctx context.Context, imageURL ImageURL) (*http.Request, error) + func (client BaseClient) DetectObjectsResponder(resp *http.Response) (result DetectResult, err error) + func (client BaseClient) DetectObjectsSender(req *http.Request) (*http.Response, error) + func (client BaseClient) GenerateThumbnail(ctx context.Context, width int32, height int32, imageURL ImageURL, ...) (result ReadCloser, err error) + func (client BaseClient) GenerateThumbnailInStream(ctx context.Context, width int32, height int32, imageParameter io.ReadCloser, ...) (result ReadCloser, err error) + func (client BaseClient) GenerateThumbnailInStreamPreparer(ctx context.Context, width int32, height int32, imageParameter io.ReadCloser, ...) (*http.Request, error) + func (client BaseClient) GenerateThumbnailInStreamResponder(resp *http.Response) (result ReadCloser, err error) + func (client BaseClient) GenerateThumbnailInStreamSender(req *http.Request) (*http.Response, error) + func (client BaseClient) GenerateThumbnailPreparer(ctx context.Context, width int32, height int32, imageURL ImageURL, ...) (*http.Request, error) + func (client BaseClient) GenerateThumbnailResponder(resp *http.Response) (result ReadCloser, err error) + func (client BaseClient) GenerateThumbnailSender(req *http.Request) (*http.Response, error) + func (client BaseClient) GetAreaOfInterest(ctx context.Context, imageURL ImageURL) (result AreaOfInterestResult, err error) + func (client BaseClient) GetAreaOfInterestInStream(ctx context.Context, imageParameter io.ReadCloser) (result AreaOfInterestResult, err error) + func (client BaseClient) GetAreaOfInterestInStreamPreparer(ctx context.Context, imageParameter io.ReadCloser) (*http.Request, error) + func (client BaseClient) GetAreaOfInterestInStreamResponder(resp *http.Response) (result AreaOfInterestResult, err error) + func (client BaseClient) GetAreaOfInterestInStreamSender(req *http.Request) (*http.Response, error) + func (client BaseClient) GetAreaOfInterestPreparer(ctx context.Context, imageURL ImageURL) (*http.Request, error) + func (client BaseClient) GetAreaOfInterestResponder(resp *http.Response) (result AreaOfInterestResult, err error) + func (client BaseClient) GetAreaOfInterestSender(req *http.Request) (*http.Response, error) + func (client BaseClient) GetReadResult(ctx context.Context, operationID uuid.UUID) (result ReadOperationResult, err error) + func (client BaseClient) GetReadResultPreparer(ctx context.Context, operationID uuid.UUID) (*http.Request, error) + func (client BaseClient) GetReadResultResponder(resp *http.Response) (result ReadOperationResult, err error) + func (client BaseClient) GetReadResultSender(req *http.Request) (*http.Response, error) + func (client BaseClient) ListModels(ctx context.Context) (result ListModelsResult, err error) + func (client BaseClient) ListModelsPreparer(ctx context.Context) (*http.Request, error) + func (client BaseClient) ListModelsResponder(resp *http.Response) (result ListModelsResult, err error) + func (client BaseClient) ListModelsSender(req *http.Request) (*http.Response, error) + func (client BaseClient) Read(ctx context.Context, imageURL ImageURL, language OcrDetectionLanguage) (result autorest.Response, err error) + func (client BaseClient) ReadInStream(ctx context.Context, imageParameter io.ReadCloser, ...) (result autorest.Response, err error) + func (client BaseClient) ReadInStreamPreparer(ctx context.Context, imageParameter io.ReadCloser, ...) (*http.Request, error) + func (client BaseClient) ReadInStreamResponder(resp *http.Response) (result autorest.Response, err error) + func (client BaseClient) ReadInStreamSender(req *http.Request) (*http.Response, error) + func (client BaseClient) ReadPreparer(ctx context.Context, imageURL ImageURL, language OcrDetectionLanguage) (*http.Request, error) + func (client BaseClient) ReadResponder(resp *http.Response) (result autorest.Response, err error) + func (client BaseClient) ReadSender(req *http.Request) (*http.Response, error) + func (client BaseClient) RecognizePrintedText(ctx context.Context, detectOrientation bool, imageURL ImageURL, ...) (result OcrResult, err error) + func (client BaseClient) RecognizePrintedTextInStream(ctx context.Context, detectOrientation bool, imageParameter io.ReadCloser, ...) (result OcrResult, err error) + func (client BaseClient) RecognizePrintedTextInStreamPreparer(ctx context.Context, detectOrientation bool, imageParameter io.ReadCloser, ...) (*http.Request, error) + func (client BaseClient) RecognizePrintedTextInStreamResponder(resp *http.Response) (result OcrResult, err error) + func (client BaseClient) RecognizePrintedTextInStreamSender(req *http.Request) (*http.Response, error) + func (client BaseClient) RecognizePrintedTextPreparer(ctx context.Context, detectOrientation bool, imageURL ImageURL, ...) (*http.Request, error) + func (client BaseClient) RecognizePrintedTextResponder(resp *http.Response) (result OcrResult, err error) + func (client BaseClient) RecognizePrintedTextSender(req *http.Request) (*http.Response, error) + func (client BaseClient) TagImage(ctx context.Context, imageURL ImageURL, language string) (result TagResult, err error) + func (client BaseClient) TagImageInStream(ctx context.Context, imageParameter io.ReadCloser, language string) (result TagResult, err error) + func (client BaseClient) TagImageInStreamPreparer(ctx context.Context, imageParameter io.ReadCloser, language string) (*http.Request, error) + func (client BaseClient) TagImageInStreamResponder(resp *http.Response) (result TagResult, err error) + func (client BaseClient) TagImageInStreamSender(req *http.Request) (*http.Response, error) + func (client BaseClient) TagImagePreparer(ctx context.Context, imageURL ImageURL, language string) (*http.Request, error) + func (client BaseClient) TagImageResponder(resp *http.Response) (result TagResult, err error) + func (client BaseClient) TagImageSender(req *http.Request) (*http.Response, error) + type BoundingRect struct + H *int32 + W *int32 + X *int32 + Y *int32 + type Category struct + Detail *CategoryDetail + Name *string + Score *float64 + type CategoryDetail struct + Celebrities *[]CelebritiesModel + Landmarks *[]LandmarksModel + type CelebritiesModel struct + Confidence *float64 + FaceRectangle *FaceRectangle + Name *string + type CelebrityResults struct + Celebrities *[]CelebritiesModel + Metadata *ImageMetadata + RequestID *string + type ColorInfo struct + AccentColor *string + DominantColorBackground *string + DominantColorForeground *string + DominantColors *[]string + IsBWImg *bool + type DescriptionExclude string + const Celebrities + const Landmarks + func PossibleDescriptionExcludeValues() []DescriptionExclude + type Details string + const DetailsCelebrities + const DetailsLandmarks + func PossibleDetailsValues() []Details + type DetectResult struct + Metadata *ImageMetadata + Objects *[]DetectedObject + RequestID *string + func (dr DetectResult) MarshalJSON() ([]byte, error) + type DetectedBrand struct + Confidence *float64 + Name *string + Rectangle *BoundingRect + type DetectedObject struct + Confidence *float64 + Object *string + Parent *ObjectHierarchy + Rectangle *BoundingRect + func (do DetectedObject) MarshalJSON() ([]byte, error) + type DomainModelResults struct + Metadata *ImageMetadata + RequestID *string + Result interface{} + type Error struct + Code interface{} + Message *string + RequestID *string + type FaceDescription struct + Age *int32 + FaceRectangle *FaceRectangle + Gender Gender + type FaceRectangle struct + Height *int32 + Left *int32 + Top *int32 + Width *int32 + type Gender string + const Female + const Male + func PossibleGenderValues() []Gender + type ImageAnalysis struct + Adult *AdultInfo + Brands *[]DetectedBrand + Categories *[]Category + Color *ColorInfo + Description *ImageDescriptionDetails + Faces *[]FaceDescription + ImageType *ImageType + Metadata *ImageMetadata + Objects *[]DetectedObject + RequestID *string + Tags *[]ImageTag + type ImageCaption struct + Confidence *float64 + Text *string + type ImageDescription struct + Metadata *ImageMetadata + RequestID *string + func (ID *ImageDescription) UnmarshalJSON(body []byte) error + func (ID ImageDescription) MarshalJSON() ([]byte, error) + type ImageDescriptionDetails struct + Captions *[]ImageCaption + Tags *[]string + type ImageMetadata struct + Format *string + Height *int32 + Width *int32 + type ImageTag struct + Confidence *float64 + Hint *string + Name *string + type ImageType struct + ClipArtType *int32 + LineDrawingType *int32 + type ImageURL struct + URL *string + type LandmarkResults struct + Landmarks *[]LandmarksModel + Metadata *ImageMetadata + RequestID *string + type LandmarksModel struct + Confidence *float64 + Name *string + type Line struct + BoundingBox *[]float64 + Language *string + Text *string + Words *[]Word + type ListModelsResult struct + ModelsProperty *[]ModelDescription + type ModelDescription struct + Categories *[]string + Name *string + type ObjectHierarchy struct + Confidence *float64 + Object *string + Parent *ObjectHierarchy + type OcrDetectionLanguage string + const De + const En + const Es + const Fr + const It + const Nl + const Pt + func PossibleOcrDetectionLanguageValues() []OcrDetectionLanguage + type OcrLanguages string + const OcrLanguagesAr + const OcrLanguagesCs + const OcrLanguagesDa + const OcrLanguagesDe + const OcrLanguagesEl + const OcrLanguagesEn + const OcrLanguagesEs + const OcrLanguagesFi + const OcrLanguagesFr + const OcrLanguagesHu + const OcrLanguagesIt + const OcrLanguagesJa + const OcrLanguagesKo + const OcrLanguagesNb + const OcrLanguagesNl + const OcrLanguagesPl + const OcrLanguagesPt + const OcrLanguagesRo + const OcrLanguagesRu + const OcrLanguagesSk + const OcrLanguagesSrCyrl + const OcrLanguagesSrLatn + const OcrLanguagesSv + const OcrLanguagesTr + const OcrLanguagesUnk + const OcrLanguagesZhHans + const OcrLanguagesZhHant + func PossibleOcrLanguagesValues() []OcrLanguages + type OcrLine struct + BoundingBox *string + Words *[]OcrWord + type OcrRegion struct + BoundingBox *string + Lines *[]OcrLine + type OcrResult struct + Language *string + Orientation *string + Regions *[]OcrRegion + TextAngle *float64 + type OcrWord struct + BoundingBox *string + Text *string + type OperationStatusCodes string + const Failed + const NotStarted + const Running + const Succeeded + func PossibleOperationStatusCodesValues() []OperationStatusCodes + type ReadCloser struct + Value *io.ReadCloser + type ReadOperationResult struct + AnalyzeResult *AnalyzeResults + CreatedDateTime *string + LastUpdatedDateTime *string + Status OperationStatusCodes + type ReadResult struct + Angle *float64 + Height *float64 + Language *string + Lines *[]Line + Page *int32 + Unit TextRecognitionResultDimensionUnit + Width *float64 + type TagResult struct + Metadata *ImageMetadata + RequestID *string + Tags *[]ImageTag + type TextRecognitionResultDimensionUnit string + const Inch + const Pixel + func PossibleTextRecognitionResultDimensionUnitValues() []TextRecognitionResultDimensionUnit + type VisualFeatureTypes string + const VisualFeatureTypesAdult + const VisualFeatureTypesBrands + const VisualFeatureTypesCategories + const VisualFeatureTypesColor + const VisualFeatureTypesDescription + const VisualFeatureTypesFaces + const VisualFeatureTypesImageType + const VisualFeatureTypesObjects + const VisualFeatureTypesTags + func PossibleVisualFeatureTypesValues() []VisualFeatureTypes + type Word struct + BoundingBox *[]float64 + Confidence *float64 + Text *string Other modules containing this package gopkg.in/azure/azure-sdk-for-go.v43 gopkg.in/azure/azure-sdk-for-go.v44 gopkg.in/azure/azure-sdk-for-go.v45 gopkg.in/azure/azure-sdk-for-go.v46 gopkg.in/azure/azure-sdk-for-go.v47 gopkg.in/azure/azure-sdk-for-go.v49