Skip to content

Commit 7187b25

Browse files
Merge pull request #252577 from PatrickFarley/minor-updates
[ai-svcs] Minor updates
2 parents 19a72d7 + de989c4 commit 7187b25

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

articles/ai-services/computer-vision/includes/how-to-guides/analyze-image-40-python.md

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,20 +34,14 @@ Start by creating a [VisionServiceOptions](/python/api/azure-ai-vision/azure.ai.
3434

3535
You can select an image by providing a publicly accessible image URL, a local image file name, or by copying the image into the SDK's input buffer. See [Image requirements](../../overview-image-analysis.md?tabs=4-0#image-requirements) for supported image formats.
3636

37-
## Image URL
37+
### Image URL
3838

3939
In your script, create a new [VisionSource](/python/api/azure-ai-vision/azure.ai.vision.visionsource) object from the URL of the image you want to analyze.
4040

4141
[!code-python[](~/azure-ai-vision-sdk/docs/learn.microsoft.com/python/image-analysis/how-to/main.py?name=vision_source)]
4242

4343
### Image file
4444

45-
In your script, create a new [VisionSource](/python/api/azure-ai-vision/azure.ai.vision.visionsource) object from the local image file you want to analyze.
46-
47-
[!code-python[](~/azure-ai-vision-sdk/docs/learn.microsoft.com/python/image-analysis/how-to/main.py?name=vision_source)]
48-
49-
### Image buffer
50-
5145
In your script, first create an **image_source_buffer**. Get its **image_writer** and call the **write** method to copy the image data into the writer. Then create a new [vision_source](/python/api/azure-ai-vision/azure.ai.vision.visionsource) object from your **image_source_buffer**. In the following code example, `image_buffer` is a variable of type `bytes` containing the image data.
5246

5347
```python

articles/ai-services/computer-vision/includes/setup-sdk/python-requirements.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ You must install the [Microsoft Visual C++ Redistributable for Visual Studio 201
1919
2020
# [Linux](#tab/linux)
2121

22-
The Vision SDK for C# only supports **Ubuntu 18.04/20.04/22.04** and **Debian 9/10/11** on the x64 architecture when used with Linux.
22+
The Vision SDK for Python only supports **Ubuntu 18.04/20.04/22.04** and **Debian 9/10/11** on the x64 architecture when used with Linux.
2323

2424
[!INCLUDE [Linux distributions](linux-distributions.md)]
2525

0 commit comments

Comments
 (0)