Skip to content

Repository files navigation

azurePythonOcrFunction

Various Azure Functions written in Python, Node.js that use Azure Cognitive Services OCR, Azure Storage, Selenium

diagram

  • jcDashboardScreenshotHttpTrigger1 Python - http trigger function. Calls nodeJs Selenium screen shot function and saves image result to blob storage container.

  • jcPythonDashboardHttpTrigger1 Python - http trigger function. Durable Function uses fan-out fan-in function pattern to process multiple data regions specified in json stored in Env-var in parallel. Does OCR analysis on each region of image URL (can be any url eg blob storage, internet) and store OCR result text in Azure Table.

    { "dataImages": [ { "name": "totalCases", "x1": 76, "y1": 91, "x2": 342, "y2": 159, "number": 1 }, ... ] }

Fan out fan in pattern diagram

  • jcPythonOcrFromImgBytesFunc Python - http trigger function. Demonstrates using Azure Cognitive Services Computer Vision (OCR) on a specified region of an image (x1,y1,x2,y2) stored in a specified URL location. Returning text found in region by OCR.

  • jcPythonOcrFunc Python - http trigger function. Demonstrates how to use Azure Cognitive Services Computer Vision (OCR) on an image located at input parameter URL location and return text found by OCR

  • jcPythonTimerUrlImageDownload Python - timer function. Downloads jpg from url in function (env/kv var) and saves to storage account.

About

John Carmichael wrote Azure Functions using Python, Azure Cognitive Services OCR, Azure Storage, etc.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages