Skip to content

Commit 1419013

Browse files
committed
fix instructions
1 parent dac9abf commit 1419013

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
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

0 commit comments

Comments
 (0)