Skip to content

mschrayms/Node-OCR-Example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Node.JS Azure Cognitive Service Optical Character Recognition (OCR) Example.

This project is a demonstration of using Azure Cognitive Services Optical Character Recognition (OCR). When prompted enter the path of an image that contains text. That will be processed and the OCR service will return back found results as text.

Requirements

Create the infrastructure needed.

This demo relies on , Azure Computer Vision. Specifically you need an access key to interact with the service. You can create an Azure Free Account to try this demo.

Configure Access key

  • In the src folder of this repo, create a file called .env with the following structure
OcrKey="<COMPUTER_VISION_KEY>"
UriBase='<URI_BASE>'
ReadResultLimit='<readResultLimit>'

Description of Variables:

Key Purpose
OcrKey Cognitive services computer vision key
UriBase Url for the OCR service
ReadResultLimit Number of retries to read the result from the OCR Service (optional, defaults to 3)

Running the Demo

  • Clone the repo.
  • npm install
  • npm start

References

About

Node OCR Example

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •