Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR cognitiveservices/data-plane/ComputerVision] Update CognitiveService ComputerVision API to V2 #2046

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions profiles/preview/cognitiveservices/computervision/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

package computervision

import original "github.com/Azure/azure-sdk-for-go/services/cognitiveservices/v1.0/computervision"
import original "github.com/Azure/azure-sdk-for-go/services/cognitiveservices/v2.0/computervision"

type BaseClient = original.BaseClient
type AzureRegions = original.AzureRegions
Expand Down Expand Up @@ -112,6 +112,13 @@ const (
Succeeded TextOperationStatusCodes = original.Succeeded
)

type TextRecognitionMode = original.TextRecognitionMode

const (
Handwritten TextRecognitionMode = original.Handwritten
Printed TextRecognitionMode = original.Printed
)

type VisualFeatureTypes = original.VisualFeatureTypes

const (
Expand Down Expand Up @@ -143,7 +150,7 @@ type ImageTag = original.ImageTag
type ImageType = original.ImageType
type ImageURL = original.ImageURL
type LandmarkResults = original.LandmarkResults
type LandmarkResultsLandmarksItem = original.LandmarkResultsLandmarksItem
type LandmarksModel = original.LandmarksModel
type Line = original.Line
type ListModelsResult = original.ListModelsResult
type ModelDescription = original.ModelDescription
Expand Down Expand Up @@ -181,6 +188,9 @@ func PossibleOcrLanguagesValues() []OcrLanguages {
func PossibleTextOperationStatusCodesValues() []TextOperationStatusCodes {
return original.PossibleTextOperationStatusCodesValues()
}
func PossibleTextRecognitionModeValues() []TextRecognitionMode {
return original.PossibleTextRecognitionModeValues()
}
func PossibleVisualFeatureTypesValues() []VisualFeatureTypes {
return original.PossibleVisualFeatureTypesValues()
}
Expand Down
Loading