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/csharp-sdk.md
+58-34Lines changed: 58 additions & 34 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,58 +29,55 @@ Use the OCR client library to read printed and handwritten text from a remote im
29
29
* You will need the key and endpoint from the resource you create to connect your application to the Computer Vision service. You'll paste your key and endpoint into the code below later in the quickstart.
30
30
* You can use the free pricing tier (`F0`) to try the service, and upgrade later to a paid tier for production.
31
31
32
-
## Setting up
32
+
## Read printed and handwritten text
33
33
34
-
###Create a new C# application
34
+
1. Create a new C# application
35
35
36
-
#### [Visual Studio IDE](#tab/visual-studio)
36
+
#### [Visual Studio IDE](#tab/visual-studio)
37
37
38
-
Using Visual Studio, create a new .NET Core application.
38
+
Using Visual Studio, create a new .NET Core application.
39
39
40
-
### Install the client library
40
+
### Install the client library
41
41
42
-
Once you've created a new project, install the client library by right-clicking on the project solution in the **Solution Explorer** and selecting **Manage NuGet Packages**. In the package manager that opens select **Browse**, check **Include prerelease**, and search for `Microsoft.Azure.CognitiveServices.Vision.ComputerVision`. Select version `7.0.0`, and then **Install**.
42
+
Once you've created a new project, install the client library by right-clicking on the project solution in the **Solution Explorer** and selecting **Manage NuGet Packages**. In the package manager that opens select **Browse**, check **Include prerelease**, and search for `Microsoft.Azure.CognitiveServices.Vision.ComputerVision`. Select version `7.0.0`, and then **Install**.
43
43
44
-
#### [CLI](#tab/cli)
44
+
#### [CLI](#tab/cli)
45
45
46
-
In a console window (such as cmd, PowerShell, or Bash), use the `dotnet new` command to create a new console app with the name `computer-vision-quickstart`. This command creates a simple "Hello World" C# project with a single source file: *Program.cs*.
46
+
In a console window (such as cmd, PowerShell, or Bash), use the `dotnet new` command to create a new console app with the name `computer-vision-quickstart`. This command creates a simple "Hello World" C# project with a single source file: *Program.cs*.
47
47
48
-
```console
49
-
dotnet new console -n computer-vision-quickstart
50
-
```
48
+
```console
49
+
dotnet new console -n computer-vision-quickstart
50
+
```
51
51
52
-
Change your directory to the newly created app folder. You can build the application with:
52
+
Change your directory to the newly created app folder. You can build the application with:
53
53
54
-
```console
55
-
dotnet build
56
-
```
57
-
58
-
The build output should contain no warnings or errors.
59
-
60
-
```console
61
-
...
62
-
Build succeeded.
63
-
0 Warning(s)
64
-
0 Error(s)
65
-
...
66
-
```
54
+
```console
55
+
dotnet build
56
+
```
67
57
68
-
### Install the client library
58
+
The build output should contain no warnings or errors.
69
59
70
-
Within the application directory, install the Computer Vision client library for .NET with the following command:
[!INCLUDE [find key and endpoint](../find-key.md)]
76
+
---
81
77
78
+
1. Find the subscription key and endpoint.
82
79
83
-
## Read printed and handwritten text
80
+
[!INCLUDE [find key and endpoint](../find-key.md)]
84
81
85
82
1. From the project directory, open the *Program.cs* file in your preferred editor or IDE. Replace the contents of *Program.cs* with the following code.
If you want to clean up and remove a Cognitive Services subscription, you can delete the resource or resource group. Deleting the resource group also deletes any other resources associated with it.
0 commit comments