diff --git a/specification/cognitiveservices/data-plane/ComputerVision/stable/v1.0/ComputerVision.json b/specification/cognitiveservices/data-plane/ComputerVision/stable/v1.0/ComputerVision.json index 823aa264008c..aef44e399512 100644 --- a/specification/cognitiveservices/data-plane/ComputerVision/stable/v1.0/ComputerVision.json +++ b/specification/cognitiveservices/data-plane/ComputerVision/stable/v1.0/ComputerVision.json @@ -326,16 +326,10 @@ "in": "path", "description": "The domain-specific content to recognize.", "required": true, - "type": "string", - "x-nullable": false, - "x-ms-enum": { - "name": "DomainModels", - "modelAsString": false - }, - "enum": [ - "Celebrities", - "Landmarks" - ] + "type": "string" + }, + { + "$ref": "#/parameters/ServiceLanguage" }, { "$ref": "../../../Common/Parameters.json#/parameters/ImageUrl" @@ -663,6 +657,9 @@ "application/json" ], "parameters": [ + { + "$ref": "#/parameters/ServiceLanguage" + }, { "$ref": "../../../Common/Parameters.json#/parameters/ImageStream" } @@ -707,6 +704,9 @@ "required": true, "type": "string" }, + { + "$ref": "#/parameters/ServiceLanguage" + }, { "$ref": "../../../Common/Parameters.json#/parameters/ImageStream" } @@ -895,7 +895,8 @@ "type": "object", "properties": { "language": { - "$ref": "#/definitions/OcrResult" + "type": "string", + "description": "The BCP-47 language code of the text in the image." }, "textAngle": { "type": "number", @@ -997,7 +998,8 @@ "properties": { "result": { "x-ms-client-flatten": true, - "$ref": "#/definitions/DomainModelResult" + "type": "object", + "description": "Model-specific response" }, "requestId": { "type": "string", @@ -1008,15 +1010,53 @@ } } }, - "DomainModelResult": { + "CelebrityResults": { "type": "object", + "description": "List of celebrities recognized in the image.", "properties": { "celebrities": { "type": "array", - "description": "An array of possible celebritied identified in the image.", "items": { "$ref": "#/definitions/CelebritiesModel" } + }, + "requestId": { + "type": "string", + "description": "Id of the REST API request." + }, + "metadata": { + "$ref": "#/definitions/ImageMetadata" + } + } + }, + "LandmarkResults": { + "type": "object", + "description": "List of landmarks recognized in the image.", + "properties": { + "landmarks": { + "type": "array", + "items": { + "type": "object", + "description": "A landmark recognized in the image", + "properties": { + "name": { + "type": "string", + "description": "Name of the landmark." + }, + "confidence": { + "type": "number", + "format": "double", + "description": "Confidence level for the landmark recognition." + } + } + } + }, + "requestId": { + "type": "string", + "description": "Id of the REST API request." + }, + "metadata": { + "$ref": "#/definitions/ImageMetadata" } } },