Skip to content

Used the Optical Character Recognition method in Microsoft Azure's Computer Vision API to detect text in an image.

Notifications You must be signed in to change notification settings

MeredithU/detect-text-in-an-image

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Detect Text In An Image Using Microsoft's Computer Vision API

Used the Optical Character Recognition method in Microsoft Azure's Computer Vision API to detect text in an image.

I used Webtask to build a serverless endpoint and built the UI using CodePen.

My UI On CodePen

Tools Used

Setup

In order to run this file locally, you will need to register an account with Microsoft Azure to obtain a subscription key and computer vision api endpoint.

Next, you will need to set up Webtask.

Install the Webtask CLI:

npm install wt-cli -g

Initialize Webtask with your email:

wt init <your_email>

To run this file, take your subscription key and insert it into the below command. It will return a URL for you to use in the browser.

wt create image-text-recognition.js --secret SUBSCRIPTION_KEY=<subscription_key>

Update your computerVisionApiUrl variable, if needed.

Lastly, take the URL from the above command, include an image URL and open up in your browser:

<url>?imageUrl=<imageUrl>

About

Used the Optical Character Recognition method in Microsoft Azure's Computer Vision API to detect text in an image.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published