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.
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.
- 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>'
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) |
- Clone the repo.
npm install
npm start