You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/cognitive-services/Computer-vision/includes/quickstarts-sdk/image-analysis-cpp-sdk-40.md
+8-10Lines changed: 8 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,20 +14,17 @@ ms.author: pafarley
14
14
15
15
<aname="HOLTop"></a>
16
16
17
-
Use the Image Analysis client library for C++ to analyze an image to read text and generate captions. This quickstart defines a method,`AnalyzeImage`, which uses the client object to analyze a remote image and print the results.
17
+
Use the Image Analysis client library for C++ to analyze an image to read text and generate an image caption. This quickstart defines a function`AnalyzeImage()`, which uses the client object to analyze a remote image and print the results to the console.
> You can also analyze a local image. See the [reference documentation](/cpp/cognitive-services/vision) for alternative **Analyze** methods. Or, see the sample code on [GitHub](https://github.com/Azure-Samples/azure-ai-vision-sdk/blob/main/samples/cpp/image-analysis/samples.cpp) for scenarios involving local images.
> The Analysis 4.0 API can do many different operations. See the [Analyze Image how-to guide](../../how-to/call-analyze-image-40.md) for examples that showcase all of the available features.
26
23
27
24
## Prerequisites
28
25
29
26
* An Azure subscription - [Create one for free](https://azure.microsoft.com/free/cognitive-services/)
30
-
* The [Visual Studio IDE](https://visualstudio.microsoft.com/vs/).
27
+
* The [Visual Studio IDE](https://visualstudio.microsoft.com/vs/) with workload **Desktop development with C++** enabled.
31
28
* Once you have your Azure subscription, <ahref="https://portal.azure.com/#create/Microsoft.CognitiveServicesComputerVision"title="Create a Computer Vision resource"target="_blank">create a Computer Vision resource</a> in the Azure portal. In order to use the captioning feature in this quickstart, you must create your resource in one of the following Azure regions: East US, France Central, Korea Central, North Europe, Southeast Asia, West Europe, West US. After it deploys, click **Go to resource**.
32
29
* You will need the key and endpoint from the resource you create to connect your application to the Computer Vision service.
33
30
* You can use the free pricing tier (`F0`) to try the service, and upgrade later to a paid tier for production.
@@ -41,9 +38,7 @@ Create a new C++ application.
41
38
42
39
#### [Windows](#tab/windows)
43
40
44
-
In Visual Studio, open the **File** menu and choose **New** -> **Project** to open the **Create a new Project** dialog. Create a new **C++ Console application** and then choose **Next**.
45
-
46
-
In the **Configure your new project** dialog, enter _ImageAnalysisQuickstart_ in the **Project name** edit box. Choose **Create** to create the project.
41
+
Open Visual Studio, and under **Get started** select **Create a new project**. Set the template filters to _C++/Windows/Console_. Select **Console App** and choose **Next**. Update the project name to _ImageAnalysisQuickstart_ and choose **Create** to create the project.
From the project directory, open the _ImageAnalysisQuickstart.cpp_ file that was created previously with [your new project](#set-up-application). Clear its contents and paste in the following code:
63
58
59
+
> [!TIP]
60
+
> You can also analyze a local image. See the [sample code](https://github.com/Azure-Samples/azure-ai-vision-sdk/blob/main/samples/cpp/image-analysis/samples.cpp) repository for scenarios involving local images.
Then, run the application by clicking the **Debug**button at the top of the IDE window.
65
+
Then, compile and run the application by selecting **Start Debugging** from the **Debug**menu at the top of the IDE window (or press **F5**). You should see output similar to the one below.
68
66
69
67
> [!div class="nextstepaction"]
70
68
> <ahref="https://microsoft.qualtrics.com/jfe/form/SV_0Cl5zkG3CnDjq6O?PLanguage=CPP&Pillar=Vision&Product=Image-analysis&Page=quickstart4&Section=Analyze-image"target="_target">I ran into an issue</a>
Copy file name to clipboardExpand all lines: articles/cognitive-services/Computer-vision/includes/quickstarts-sdk/image-analysis-csharp-sdk-40.md
+14-13Lines changed: 14 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,21 +14,18 @@ ms.author: pafarley
14
14
15
15
<aname="HOLTop"></a>
16
16
17
-
Use the Image Analysis client library for C# to analyze an image to read text and generate captions. This quickstart defines a method,`AnalyzeAsync`, which uses the client object to analyze a remote image and print the results.
17
+
Use the Image Analysis client library for C# to analyze an image to read text and generate an image caption. This quickstart defines a method `AnalyzeAsync()`, which uses the client object to analyze a remote image and print the results to the console.
> You can also analyze a local image. See the [reference documetation](/dotnet/api/azure.ai.vision.imageanalysis) for alternative **Analyze** methods. Or, see the sample code on [GitHub](https://github.com/Azure-Samples/azure-ai-vision-sdk/blob/main/samples/csharp/image-analysis/dotnetcore/Samples.cs) for scenarios involving local images.
> The Analysis 4.0 API can do many different operations. See the [Analyze Image how-to guide](../../how-to/call-analyze-image-40.md) for examples that showcase all of the available features.
27
24
28
25
## Prerequisites
29
26
30
27
* An Azure subscription - [Create one for free](https://azure.microsoft.com/free/cognitive-services/)
31
-
* The [Visual Studio IDE](https://visualstudio.microsoft.com/vs/)or current version of [.NET Core](https://dotnet.microsoft.com/download/dotnet-core).
28
+
* The [Visual Studio IDE](https://visualstudio.microsoft.com/vs/)with workload **.NET desktop development** enabled, or [.NET 6.0](https://dotnet.microsoft.com/download/dotnet-core) SDK (or above) installed.
32
29
* Once you have your Azure subscription, <ahref="https://portal.azure.com/#create/Microsoft.CognitiveServicesComputerVision"title="Create a Computer Vision resource"target="_blank">create a Computer Vision resource</a> in the Azure portal. In order to use the captioning feature in this quickstart, you must create your resource in one of the following Azure regions: East US, France Central, Korea Central, North Europe, Southeast Asia, West Europe, West US. After it deploys, click **Go to resource**.
33
30
* You will need the key and endpoint from the resource you create to connect your application to the Computer Vision service.
34
31
* You can use the free pricing tier (`F0`) to try the service, and upgrade later to a paid tier for production.
@@ -42,7 +39,7 @@ Create a new C# application.
42
39
43
40
#### [Visual Studio IDE](#tab/visual-studio)
44
41
45
-
Using Visual Studio, create a new **Console app (.NET Framework)** application.
42
+
Open Visual Studio, and under **Get started** select **Create a new project**. Set the template filters to _C#/All Platforms/Console_. Select **Console App** (command-line application that can run on .NET on Windows, Linux and macOS) and choose **Next**. Update the project name to _ImageAnalysisQuickstart_ and choose **Next**. Select **.NET 6.0** or above, and choose **Create** to create the project.
46
43
47
44
### Install the client library
48
45
@@ -52,13 +49,13 @@ Once you've created a new project, install the client library by right-clicking
52
49
53
50
In a console window (such as cmd, PowerShell, or Bash), use the `dotnet new` command to create a new console app with the name `image-analysis-quickstart`. This command creates a simple "Hello World" C# project with a single source file: *Program.cs*.
54
51
55
-
```console
52
+
```dotnet
56
53
dotnet new console -n image-analysis-quickstart
57
54
```
58
55
59
56
Change your directory to the newly created app folder. You can build the application with:
60
57
61
-
```console
58
+
```dotnet
62
59
dotnet build
63
60
```
64
61
@@ -76,7 +73,7 @@ Build succeeded.
76
73
77
74
Within the application directory, install the Computer Vision client library for .NET with the following command:
From the project directory, open the *Program.cs* file that was created previously with [your new project](#set-up-application). Paste in the following code:
90
87
88
+
> [!TIP]
89
+
> You can also analyze a local image. See the [sample code](https://github.com/Azure-Samples/azure-ai-vision-sdk/blob/main/samples/csharp/image-analysis/dotnetcore/Samples.cs) repository for scenarios involving local images.
> You can also analyze a local image. See the [reference documentation](/python/api/azure-ai-vision) for alternative **Analyze** methods. Or, see the sample code on [GitHub](https://github.com/Azure-Samples/azure-ai-vision-sdk/blob/main/samples/python/image-analysis/samples.py) for scenarios involving local images.
23
-
24
21
> [!TIP]
25
22
> The Analysis 4.0 API can do many different operations. See the [Analyze Image how-to guide](../../how-to/call-analyze-image-40.md) for examples that showcase all of the available features.
26
23
@@ -50,7 +47,10 @@ Use the Image Analysis client library for Python to analyze a remote image to re
> You can also analyze a local image. See the [sample code](https://github.com/Azure-Samples/azure-ai-vision-sdk/blob/main/samples/python/image-analysis/samples.py) repository for scenarios involving local images.
Copy file name to clipboardExpand all lines: articles/cognitive-services/Computer-vision/quickstarts-sdk/image-analysis-client-library-40.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,7 +18,7 @@ keywords: computer vision, computer vision service
18
18
19
19
# Quickstart: Image Analysis 4.0
20
20
21
-
Get started with the Image Analysis 4.0 REST API or client libraries to set up a basic image analysis script. The Analyze Image service provides you with AI algorithms for processing images and returning information on their visual features. Follow these steps to install a package to your application and try out the sample code.
21
+
Get started with the Image Analysis 4.0 REST API or client libraries to set up a basic image analysis application. The Image Analysis service provides you with AI algorithms for processing images and returning information on their visual features. Follow these steps to install a package to your application and try out the sample code.
0 commit comments