Building a Vaccination Verification system using Azure Form Recognizer

Published Oct 14 2021 09:00 AM 1,273 Views

Introduction

As the COVID-19 pandemic continues, more and more organizations and venues are mandating vaccinations for individuals who choose to gather in large groups. In this context, one of the largest commercial real-estate companies approached me asking if I can help them scan vaccination cards of individuals, using Azure AI services. This put me on a journey to explore Azure Form Recognizer, part of Azure Applied AI Services, which uses AI to identify and extract key-value pairs and layout information like tables and selection marks from documents. My goal was to train a model to scan and validate vaccination cards with just a few samples in less than an hour. Form Recognizer is a great tool for such Robotic Process Automation (RPA) use cases where we need to automate the reading of physical documents without writing a lot of code or extensive data science expertise. Below are the steps I followed to build such a system.

 

1. Setup Process

In my effort to build a vaccination card reader, my first order of business was to procure some training data, i.e. pictures of vaccination cards. Thanks to my colleagues, friends, and the internet I was able to collect a few different vaccination cards from different states and with different brands of vaccines. Just for good measure I also took multiple pictures of some cards in different angles (including upside down) to ensure I built a robust model. Once I had about ten pictures, I uploaded them into an Azure Blob Storage Container to label them and train the model.

 

Pro-tip: To ensure we test the model with pictures the model hasn’t seen during the training process, do not upload all your pictures into the blob storage location for labeling and training, but set aside a few pictures on your local disk for testing purposes. 

 

My next task was to stand up a Form Recognizer service in Azure, and it was a pretty straightforward process as I followed the instructions given in the documentation. I chose the Free F0 Pricing tier as this was just a test. The rest of the settings other than name of the service, location and resource group were left as defaults.

 

Figure 1: Creation of Form Recognizer ServiceFigure 1: Creation of Form Recognizer Service

 

Once the service was created, I saved the Endpoint and Key which enable me to connect to the service and train the model.

 

Figure 2: Form Recognizer End Point and KeysFigure 2: Form Recognizer End Point and Keys

2. Labeling and Training

Now that I had the pictures and the AI service ready, I proceeded to label the pictures to show the system which portions of the card it needs to read and comprehend. For this I used the OCR (Optical Character Recognition) Form Labeling Tool, which is an open-source tool specifically built for this purpose available on GitHub. I found that the best way to use this tool locally on your windows machine is to install docker and run the docker container which hosts this application as described in the documentation. If you already have docker installed and running, you just need to run the below two commands and you can access the tool at the URL: http://localhost:3000.

 

 

 

docker pull mcr.microsoft.com/azure-cognitive-services/custom-form/labeltool:latest-2.1

docker run -it -p 3000:80 mcr.microsoft.com/azure-cognitive-services/custom-form/labeltool:latest-2.1 eula=accept

 

 

 

The labeling tool is also available at https://fott-2-1.azurewebsites.net/

 

Once I had the OCR tool up and running, I proceeded to create a project. To do so, I had to provide the following:

  1. The Form Recognizer service end point and key
  2. Create a connection to the Azure Blob Storage Container

Figure 3: OCR Tool Project CreationFigure 3: OCR Tool Project Creation

 

While step 1 was easy using the endpoint and key, step 2 was more complex. First, I had to ensure the Resource Sharing (CORS) setting was correctly set on the blob storage account, then I had to ensure I generated the SAS URL at the container level and not at the storage account level.

 

Figure 4: Azure Blob Storage CORS settingFigure 4: Azure Blob Storage CORS setting

 

Azure Blob Container Connection Settings were set as below

 

Figure 5: OCR Tool Azure Blob Storage Connection settingsFigure 5: OCR Tool Azure Blob Storage Connection settings

 

Once the connectivity to the Form Recognizer service and the Blob Storage container was established, the documents automatically showed up in the labeling area. The tool was also smart enough to create bounding boxes and highlighted all text in yellow. All I had to do was create a tag on the top right corner, click on the relevant text segment, and click on the tag again to assign that tag to the text segment. The tagging process was very simple and took less than five minutes to tag all the pictures.

 

Figure 6: OCR Labeling Tool before Tag creationFigure 6: OCR Labeling Tool before Tag creation

 

Figure 7: OCR Labeling Tool after Tag creation and assignmentFigure 7: OCR Labeling Tool after Tag creation and assignment

 

Once I had 5 documents labeled, I clicked on the Train icon and a model was created instantly. Given that I only had a few images to train on, the training process was only a few seconds.

 

Figure 8: Training resultsFigure 8: Training results

 

3. Testing and Deployment

Now it was time to test out my new model to see if it recognizes other vaccination cards. I had set aside a couple of images from the training process to validate the model. The OCR tool also helps with testing the model hosted on the Azure Form Recognizer service. All I had to do was click on the ‘Analyze’ menu item and upload an image from my local disk. The model performed amazingly well and was able to pick out the vaccine brand name even though certain parts of the card were hidden by a finger and the vaccine brand was handwritten instead of printed.

 

Figure 9: OCR Analyzes a new vaccination cardFigure 9: OCR Analyzes a new vaccination card

 

The model was spot-on so far, but I was curious to see if this model could identify a fake vaccination card, such as that of this recently reported case of a traveler to Hawaii? I put the model to the test, and the results were mixed. For one, this model was not able to pick up the CDC logo text and the vaccine brand name correctly as this card looks characteristically different from a standard vaccination card. In that sense, it was able to flag that this card looks different and needs to be examined further to confirm the veracity of the card.

 

Figure 10: Fake Vaccination cardFigure 10: Fake Vaccination card

 

Conclusion

The model performed incredibly well even though we built the model with less than ten images. One way to enhance the performance of the model would be train separate models for different kinds of vaccination cards (handwritten, printed stickers, non-USA etc.) and compose a hybrid model to handle all types of cards globally. Going back to the commercial real estate company that wanted to implement this solution: they tested out Azure Form Recognizer and found it to be better than an off the shelf RPA product they also tested. They are currently working on building a system to read vaccination cards of their employees to record their vaccination status. Overall, this was a quick and easy way to build a model to help organizations responsible for verifying vaccination status.

 

Do it yourself: Try out Azure Form Recognizer for your own organization’s unique use cases! Check out the quick start guide for a step by step guide.
%3CLINGO-SUB%20id%3D%22lingo-sub-2839701%22%20slang%3D%22en-US%22%3EBuilding%20a%20Vaccination%20Verification%20system%20using%20Azure%20Form%20Recognizer%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2839701%22%20slang%3D%22en-US%22%3E%3CH2%20id%3D%22toc-hId--325513236%22%20id%3D%22toc-hId--324678899%22%3E%3CFONT%20size%3D%224%22%3EIntroduction%3C%2FFONT%3E%3C%2FH2%3E%0A%3CP%3E%3CFONT%20size%3D%222%22%3EAs%20the%20COVID-19%20pandemic%20continues%2C%20more%20and%20more%20organizations%20and%20venues%20are%20mandating%20vaccinations%20for%20individuals%20who%20choose%20to%20gather%20in%20large%20groups.%20In%20this%20context%2C%20one%20of%20the%20largest%20commercial%20real-estate%20companies%20approached%20me%20asking%20if%20I%20can%20help%20them%20scan%20vaccination%20cards%20of%20individuals%2C%20using%20Azure%20AI%20services.%20This%20put%20me%20on%20a%20journey%20to%20explore%20Azure%20Form%20Recognizer%2C%20part%20of%20Azure%20Applied%20AI%20Services%2C%20which%20uses%20AI%20to%20identify%20and%20extract%20key-value%20pairs%20and%20layout%20information%20like%20tables%20and%20selection%20marks%20from%20documents.%20My%20goal%20was%20to%20train%20a%20model%20to%20scan%20and%20validate%20vaccination%20cards%20with%20just%20a%20few%20samples%20in%20less%20than%20an%20hour.%20Form%20Recognizer%20is%20a%20great%20tool%20for%20such%20Robotic%20Process%20Automation%20(RPA)%20use%20cases%20where%20we%20need%20to%20automate%20the%20reading%20of%20physical%20documents%20without%20writing%20a%20lot%20of%20code%20or%20extensive%20data%20science%20expertise.%20Below%20are%20the%20steps%20I%20followed%20to%20build%20such%20a%20system.%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH5%20id%3D%22toc-hId-1066112816%22%20id%3D%22toc-hId-1066947153%22%3E%3CFONT%20size%3D%224%22%3E1.%20Setup%20Process%3C%2FFONT%3E%3C%2FH5%3E%0A%3CP%3E%3CFONT%20size%3D%222%22%3EIn%20my%20effort%20to%20build%20a%20vaccination%20card%20reader%2C%20my%20first%20order%20of%20business%20was%20to%20procure%20some%20training%20data%2C%20i.e.%20pictures%20of%20vaccination%20cards.%20Thanks%20to%20my%20colleagues%2C%20friends%2C%20and%20the%20internet%20I%20was%20able%20to%20collect%20a%20few%20different%20vaccination%20cards%20from%20different%20states%20and%20with%20different%20brands%20of%20vaccines.%20Just%20for%20good%20measure%20I%20also%20took%20multiple%20pictures%20of%20some%20cards%20in%20different%20angles%20(including%20upside%20down)%20to%20ensure%20I%20built%20a%20robust%20model.%20Once%20I%20had%20about%20ten%20pictures%2C%20I%20uploaded%20them%20into%20an%20Azure%20Blob%20Storage%20Container%20to%20label%20them%20and%20train%20the%20model.%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CFONT%20size%3D%222%22%3E%3CSTRONG%3E%3CEM%3EPro-tip%3A%20%3C%2FEM%3E%3C%2FSTRONG%3ETo%20ensure%20we%20test%20the%20model%20with%20pictures%20the%20model%20hasn%E2%80%99t%20seen%20during%20the%20training%20process%2C%20do%20not%20upload%20all%20your%20pictures%20into%20the%20blob%20storage%20location%20for%20labeling%20and%20training%2C%20but%20set%20aside%20a%20few%20pictures%20on%20your%20local%20disk%20for%20testing%20purposes.%26nbsp%3B%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CFONT%20size%3D%222%22%3EMy%20next%20task%20was%20to%20stand%20up%20a%20Form%20Recognizer%20service%20in%20Azure%2C%20and%20it%20was%20a%20pretty%20straightforward%20process%20as%20I%20followed%20the%20instructions%20given%20in%20the%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fapplied-ai-services%2Fform-recognizer%2Flabel-tool%23create-a-form-recognizer-resource%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Edocumentation%3C%2FA%3E.%20I%20chose%20the%20Free%20F0%20Pricing%20tier%20as%20this%20was%20just%20a%20test.%20The%20rest%20of%20the%20settings%20other%20than%20name%20of%20the%20service%2C%20location%20and%20resource%20group%20were%20left%20as%20defaults.%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22pic01.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F316901iCE155AB43640F761%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22pic01.png%22%20alt%3D%22Figure%201%3A%20Creation%20of%20Form%20Recognizer%20Service%22%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3EFigure%201%3A%20Creation%20of%20Form%20Recognizer%20Service%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CFONT%20size%3D%222%22%3EOnce%20the%20service%20was%20created%2C%20I%20saved%20the%20Endpoint%20and%20Key%20which%20enable%20me%20to%20connect%20to%20the%20service%20and%20train%20the%20model.%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22pic02.png%22%20style%3D%22width%3A%20626px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F316902i2387A3C566DF5D51%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22pic02.png%22%20alt%3D%22Figure%202%3A%20Form%20Recognizer%20End%20Point%20and%20Keys%22%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3EFigure%202%3A%20Form%20Recognizer%20End%20Point%20and%20Keys%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId--1442406225%22%20id%3D%22toc-hId--1441571888%22%3E2.%20Labeling%20and%20Training%3C%2FH3%3E%0A%3CP%3E%3CFONT%20size%3D%222%22%3ENow%20that%20I%20had%20the%20pictures%20and%20the%20AI%20service%20ready%2C%20I%20proceeded%20to%20label%20the%20pictures%20to%20show%20the%20system%20which%20portions%20of%20the%20card%20it%20needs%20to%20read%20and%20comprehend.%20For%20this%20I%20used%20the%20OCR%20(Optical%20Character%20Recognition)%20Form%20Labeling%20Tool%2C%20which%20is%20an%20open-source%20tool%20specifically%20built%20for%20this%20purpose%20available%20on%20%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fmicrosoft%2FOCR-Form-Tools%2Fblob%2Fmaster%2FREADME.md%23run-as-web-application%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EGitHub%3C%2FA%3E.%20I%20found%20that%20the%20best%20way%20to%20use%20this%20tool%20locally%20on%20your%20windows%20machine%20is%20to%20install%20docker%20and%20run%20the%20docker%20container%20which%20hosts%20this%20application%20as%20described%20in%20the%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fapplied-ai-services%2Fform-recognizer%2Flabel-tool%23set-up-the-sample-labeling-tool%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Edocumentation%3C%2FA%3E.%20If%20you%20already%20have%20docker%20installed%20and%20running%2C%20you%20just%20need%20to%20run%20the%20below%20two%20commands%20and%20you%20can%20access%20the%20tool%20at%20the%20URL%3A%20%3CA%20href%3D%22http%3A%2F%2Flocalhost%3A3000%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Ehttp%3A%2F%2Flocalhost%3A3000%3C%2FA%3E.%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-powershell%22%3E%3CCODE%3Edocker%20pull%20mcr.microsoft.com%2Fazure-cognitive-services%2Fcustom-form%2Flabeltool%3Alatest-2.1%0A%0Adocker%20run%20-it%20-p%203000%3A80%20mcr.microsoft.com%2Fazure-cognitive-services%2Fcustom-form%2Flabeltool%3Alatest-2.1%20eula%3Daccept%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CFONT%20size%3D%222%22%3EThe%20labeling%20tool%20is%20also%20available%20at%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ffott-2-1.azurewebsites.net%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Ffott-2-1.azurewebsites.net%2F%3C%2FA%3E%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CFONT%20size%3D%222%22%3EOnce%20I%20had%20the%20OCR%20tool%20up%20and%20running%2C%20I%20proceeded%20to%20create%20a%20project.%20To%20do%20so%2C%20I%20had%20to%20provide%20the%20following%3A%3C%2FFONT%3E%3C%2FP%3E%0A%3COL%3E%0A%3CLI%3E%3CFONT%20size%3D%222%22%3EThe%20Form%20Recognizer%20service%20end%20point%20and%20key%3C%2FFONT%3E%3C%2FLI%3E%0A%3CLI%3E%3CFONT%20size%3D%222%22%3ECreate%20a%20connection%20to%20the%20Azure%20Blob%20Storage%20Container%3C%2FFONT%3E%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22pic03.png%22%20style%3D%22width%3A%20626px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F316910i96D5F01A5B524FB0%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22pic03.png%22%20alt%3D%22Figure%203%3A%26nbsp%3BOCR%20Tool%20Project%20Creation%22%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3EFigure%203%3A%26nbsp%3BOCR%20Tool%20Project%20Creation%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CFONT%20size%3D%222%22%3EWhile%20step%201%20was%20easy%20using%20the%20endpoint%20and%20key%2C%20step%202%20was%20more%20complex.%20First%2C%20I%20had%20to%20ensure%20the%20Resource%20Sharing%20(CORS)%20setting%20was%20correctly%20set%20on%20the%20blob%20storage%20account%2C%20then%20I%20had%20to%20ensure%20I%20generated%20the%20SAS%20URL%20%3CU%3Eat%20the%20container%20level%3C%2FU%3E%20and%20not%20at%20the%20storage%20account%20level.%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22pic04.png%22%20style%3D%22width%3A%20626px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F316911iE6074E87BEC4E5FC%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22pic04.png%22%20alt%3D%22Figure%204%3A%20Azure%20Blob%20Storage%20CORS%20setting%22%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3EFigure%204%3A%20Azure%20Blob%20Storage%20CORS%20setting%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CFONT%20size%3D%222%22%3EAzure%20Blob%20Container%20Connection%20Settings%20were%20set%20as%20below%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22pic05.png%22%20style%3D%22width%3A%20626px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F316912i5D9592BF1B0FE265%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22pic05.png%22%20alt%3D%22Figure%205%3A%20OCR%20Tool%20Azure%20Blob%20Storage%20Connection%20settings%22%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3EFigure%205%3A%20OCR%20Tool%20Azure%20Blob%20Storage%20Connection%20settings%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CFONT%20size%3D%222%22%3EOnce%20the%20connectivity%20to%20the%20Form%20Recognizer%20service%20and%20the%20Blob%20Storage%20container%20was%20established%2C%20the%20documents%20automatically%20showed%20up%20in%20the%20labeling%20area.%20The%20tool%20was%20also%20smart%20enough%20to%20create%20bounding%20boxes%20and%20highlighted%20all%20text%20in%20yellow.%20All%20I%20had%20to%20do%20was%20create%20a%20tag%20on%20the%20top%20right%20corner%2C%20click%20on%20the%20relevant%20text%20segment%2C%20and%20click%20on%20the%20tag%20again%20to%20assign%20that%20tag%20to%20the%20text%20segment.%20The%20tagging%20process%20was%20very%20simple%20and%20took%20less%20than%20five%20minutes%20to%20tag%20all%20the%20pictures.%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22pic06.png%22%20style%3D%22width%3A%20624px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F316914i48D7B0487A8293DE%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22pic06.png%22%20alt%3D%22Figure%206%3A%20OCR%20Labeling%20Tool%20before%20Tag%20creation%22%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3EFigure%206%3A%20OCR%20Labeling%20Tool%20before%20Tag%20creation%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CFONT%20size%3D%222%22%3E%3CEM%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22pic07.png%22%20style%3D%22width%3A%20624px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F316915iE04033BFE006C24D%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22pic07.png%22%20alt%3D%22Figure%207%3A%20OCR%20Labeling%20Tool%20after%20Tag%20creation%20and%20assignment%22%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3EFigure%207%3A%20OCR%20Labeling%20Tool%20after%20Tag%20creation%20and%20assignment%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FEM%3E%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CFONT%20size%3D%222%22%3EOnce%20I%20had%205%20documents%20labeled%2C%20I%20clicked%20on%20the%20Train%20icon%20and%20a%20model%20was%20created%20instantly.%20Given%20that%20I%20only%20had%20a%20few%20images%20to%20train%20on%2C%20the%20training%20process%20was%20only%20a%20few%20seconds.%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CFONT%20size%3D%222%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22pic08.png%22%20style%3D%22width%3A%20624px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F316916iD20AD289A4D3A27F%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22pic08.png%22%20alt%3D%22Figure%208%3A%20Training%20results%22%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3EFigure%208%3A%20Training%20results%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH5%20id%3D%22toc-hId-1746171186%22%20id%3D%22toc-hId-1747005523%22%3E%3CFONT%20size%3D%224%22%3E3.%20Testing%20and%20Deployment%3C%2FFONT%3E%3C%2FH5%3E%0A%3CP%3E%3CFONT%20size%3D%222%22%3ENow%20it%20was%20time%20to%20test%20out%20my%20new%20model%20to%20see%20if%20it%20recognizes%20other%20vaccination%20cards.%20I%20had%20set%20aside%20a%20couple%20of%20images%20from%20the%20training%20process%20to%20validate%20the%20model.%20The%20OCR%20tool%20also%20helps%20with%20testing%20the%20model%20hosted%20on%20the%20Azure%20Form%20Recognizer%20service.%20All%20I%20had%20to%20do%20was%20click%20on%20the%20%E2%80%98Analyze%E2%80%99%20menu%20item%20and%20upload%20an%20image%20from%20my%20local%20disk.%20The%20model%20performed%20amazingly%20well%20and%20was%20able%20to%20pick%20out%20the%20vaccine%20brand%20name%20even%20though%20certain%20parts%20of%20the%20card%20were%20hidden%20by%20a%20finger%20and%20the%20vaccine%20brand%20was%20handwritten%20instead%20of%20printed.%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CFONT%20size%3D%222%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22pic09.png%22%20style%3D%22width%3A%20626px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F316919iBC676D599A2CDCB9%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22pic09.png%22%20alt%3D%22Figure%209%3A%20OCR%20Analyzes%20a%20new%20vaccination%20card%22%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3EFigure%209%3A%20OCR%20Analyzes%20a%20new%20vaccination%20card%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CFONT%20size%3D%222%22%3EThe%20model%20was%20spot-on%20so%20far%2C%20but%20I%20was%20curious%20to%20see%20if%20this%20model%20could%20identify%20a%20fake%20vaccination%20card%2C%20such%20as%20that%20of%20this%20recently%20reported%20case%20of%20a%20traveler%20to%20Hawaii%3F%20I%20put%20the%20model%20to%20the%20test%2C%20and%20the%20results%20were%20mixed.%20For%20one%2C%20this%20model%20was%20not%20able%20to%20pick%20up%20the%20CDC%20logo%20text%20and%20the%20vaccine%20brand%20name%20correctly%20as%20this%20card%20looks%20characteristically%20different%20from%20a%20standard%20vaccination%20card.%20In%20that%20sense%2C%20it%20was%20able%20to%20flag%20that%20this%20card%20looks%20different%20and%20needs%20to%20be%20examined%20further%20to%20confirm%20the%20veracity%20of%20the%20card.%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22pic10.png%22%20style%3D%22width%3A%20624px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F316921i216646863E765F86%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22pic10.png%22%20alt%3D%22Figure%2010%3A%20Fake%20Vaccination%20card%22%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3EFigure%2010%3A%20Fake%20Vaccination%20card%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH5%20id%3D%22toc-hId--61283277%22%20id%3D%22toc-hId--60448940%22%3E%3CFONT%20size%3D%224%22%3EConclusion%3C%2FFONT%3E%3C%2FH5%3E%0A%3CP%3E%3CFONT%20size%3D%222%22%3EThe%20model%20performed%20incredibly%20well%20even%20though%20we%20built%20the%20model%20with%20less%20than%20ten%20images.%20One%20way%20to%20enhance%20the%20performance%20of%20the%20model%20would%20be%20train%20separate%20models%20for%20different%20kinds%20of%20vaccination%20cards%20(handwritten%2C%20printed%20stickers%2C%20non-USA%20etc.)%20and%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fapplied-ai-services%2Fform-recognizer%2Fconcept-custom%3Ftabs%3Dfott%23create-a-composed-model%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ecompose%3C%2FA%3E%20a%20hybrid%20model%20to%20handle%20all%20types%20of%20cards%20globally.%20Going%20back%20to%20the%20commercial%20real%20estate%20company%20that%20wanted%20to%20implement%20this%20solution%3A%20they%20tested%20out%20Azure%20Form%20Recognizer%20and%20found%20it%20to%20be%20better%20than%20an%20off%20the%20shelf%20RPA%20product%20they%20also%20tested.%20They%20are%20currently%20working%20on%20building%20a%20system%20to%20read%20vaccination%20cards%20of%20their%20employees%20to%20record%20their%20vaccination%20status.%20Overall%2C%20this%20was%20a%20quick%20and%20easy%20way%20to%20build%20a%20model%20to%20help%20organizations%20responsible%20for%20verifying%20vaccination%20status.%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH5%20id%3D%22toc-hId--1868737740%22%20id%3D%22toc-hId--1867903403%22%3E%3CFONT%20size%3D%224%22%3EDo%20it%20yourself%3A%26nbsp%3B%3C%2FFONT%3E%3CFONT%20size%3D%222%22%3ETry%20out%20Azure%20Form%20Recognizer%20for%20your%20own%20organization%E2%80%99s%20unique%20use%20cases!%20Check%20out%20the%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fapplied-ai-services%2Fform-recognizer%2Fquickstarts%2Fget-started-with-form-recognizer%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Equick%20start%20guide%3C%2FA%3E%20for%20a%20step%20by%20step%20guide.%3C%2FFONT%3E%3C%2FH5%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-2839701%22%20slang%3D%22en-US%22%3E%3CP%3ELeverage%20Azure%20AI's%20Computer%20Vision%20Service%2C%20Form%20Recognizer%2C%20to%20build%20a%20vaccination%20card%20verifier%20quickly%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2839701%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAzure%20Machine%20Learning%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ECognitive%20Services%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EComputer%20Vision%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EForm%20Recognizer%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Co-Authors
Version history
Last update:
‎Oct 13 2021 10:58 AM
Updated by: