Select Page

This Azure AI Vision article will show you how to create a .NET app that reads handwritten text using Azure AI Vision.

Microsoft Azure AI Services offers several AI services that can help streamline business processes or create in-house applications that can replace SaaS apps.

Azure AI Vision allows us to work with objects through images and videos. One of the services’ capabilities is the ability to read text in the form of an image or handwriting.

In this post, we pass the following image to a .NET C# application and read the text. The result will be the output of the text to the console.

Reading Handwriting with Azure AI Vision and .NET C#

Create Azure AI Vision Service

Before starting, we need to create an Azure AI Vision service. In our case, we are using Azure Bicep to provision the service using the following code. The code will also output the endpoint and key, which we will need to authenticate to the services later on.

Once the service is provided, create a console application using Dotnet CLI or Visual Studio.

Reading Handwriting with Azure AI Vision and .NET C#

After creating the console application, the first thing we need to do is use appsettings.json to save the login credentials for the AI Vision service. In our case, we are using the following file (add your key and endpoint to the file).

Below, you can see the structure of the application.

The images directory is used to store the handwriting images.

Program.cs

The application code is shown below.

The results are also saved to the root directory and will highlight the detected text.

If you need assistance developing AI-based applications using Azure AI Services, please use the form below to contact us.

Read More AI Articles