Azure form recognizer

Azure Form Recognizer

Sadisha Dilmin Samarasinghe
MS Club of SLIIT

--

Hello everybody, here i am talking about Form Recognizer service which is provided by Microsoft Azure.

What is Azure?

As an idea, Azure is a one of the service in Microsoft. It uses cloud computing services and Microsoft-managed data centers. This platform aim many businesses and organizational challenges. People can use this platform 4 different way (infrastructure as a service(IaaS), platform as a service(PaaS), software as a service (SaaS) and serverless).

How does Microsoft Azure work ?

People can subscribe to Azure and they can access the services which are in the Azure portal. They can use that services to implement their cloud-based resources.

In addition Microsoft provides five different customer support options for azure.

  • Basic
  • Developer
  • Standard
  • Professional Direct
  • Premier

-Let’s go with Form Recognizer-

What is The Form Recognizer

Form Recognizer is cloud-based Azure Applied AI service that uses machine-learning models to extract and analyze form fields, text, and tables from your documents. This application analyze your forms and documents, extracts text and data.

Why are we using form recognizer API

We can just use out of the box to scan the sheets. get that data and process it and save it anywhere which are data source. It has pre build custom models for documents. you don’t have to train any models for anything. So lets jump on and create the form in API resource.

Before we start creating let’s have a quick look at the demo of the solution.

Let’s see how we can use pre-built model. I hope to see you later with create a custom model as well .

Fist of all you can go and check documentation portal for Azure form recognizer.

  1. In the very first you have to logged into your azure account and lets create resource first. Search form recognizer and create. give details as below and click on review and create.

2. Validation is successful. Now you should click on create again.

3. Now it’s deploying the resource so it will take some time. So it has created this cognitive service. Now you should go to resources.

4. Now you are in overview page. you should click on this key and endpoint. You need this endpoint key and anyone of other two keys.

5. This is Azure website (https://fott-preview.azurewebsites.net/prebuilts-analyze) for creating custom model or if you want to use a pre-built. Now i go with pre built model to get data.

6. This is the interface of pre-built model to get data. And here mention in below API key and endpoint. So i will mention this endpoint and i will go back to form recognizer

7. After that i will copy endpoint key

8. Past that key in to the form recognizer service endpoint.

9. Then copy 1 key from them as previously.

10. Paste it on the API key field.

11. So here we have form type option. so either we can select invoice except business card and id. Now i go through invoice first.

12. Then you have to browse for a file. let’s select this one.

13. Just click on run analysis.

14. Here we got the output. You can check each field one by one. you can see the invoice data, address, amounts etc.. details likewise. And other hand you can see the confidence level of those data.

15. If you want to download this report in json as well as csv format.

16. Let’s download csv first. So here we have two files. you can open one of them.

17. Here we can see keyname, value, confidence score, particular page number and then bounding box. Now we can check the other csv file.

18. If we check this table we can see some data but is is filled like line items. Not like table. Now we can move to the other format that is in json.

19. After you open this file you can check now whether you have a table line item or not. you can search key values and get item names.

Any comments and suggestions will be appreciated.

Connect with me on Linkedin.

--

--