Skip to content

Commit 3017961

Browse files
authored
Update python-sdk.md
1 parent a7e9d19 commit 3017961

File tree

1 file changed

+7
-0
lines changed
  • articles/cognitive-services/Computer-vision/includes/quickstarts-sdk

1 file changed

+7
-0
lines changed

articles/cognitive-services/Computer-vision/includes/quickstarts-sdk/python-sdk.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,13 @@ First, use the following code to call the **read** method for the given image. T
9898

9999
[!code-python[](~/cognitive-services-quickstart-code/python/ComputerVision/ComputerVisionQuickstart.py?name=snippet_read_call)]
100100

101+
As an optional step, see [How to specify the model version](../../Vision-API-How-to-Topics/call-read-api.md#determine-how-to-process-the-data-optional). The most recent model includes any enhancements to the previous GA and preview models. For example, to use the model version `2022-01-30-preview`, edit the `read` statement as shown:
102+
103+
```python
104+
# Call API with URL and raw response (allows you to get the operation location)
105+
read_response = computervision_client.read(read_image_url, raw=True, model_version="2022-01-30-preview")
106+
```
107+
101108
> [!TIP]
102109
> You can also read text from a local image. See the [ComputerVisionClientOperationsMixin](/python/api/azure-cognitiveservices-vision-computervision/azure.cognitiveservices.vision.computervision.operations.computervisionclientoperationsmixin) methods, such as **read_in_stream**. Or, see the sample code on [GitHub](https://github.com/Azure-Samples/cognitive-services-quickstart-code/blob/master/python/ComputerVision/ComputerVisionQuickstart.py) for scenarios involving local images.
103110

0 commit comments

Comments
 (0)