Azure JS Cognitive Services

1 min read azure, javascript

Written in 2019. Tools, APIs and prices may have changed since.

Lab note What I wrote down while learning this by building with it. Short by design; the code is in pfeilbr/azure-js-cognitive-services-playground.

learn azure cognitive services

Examples

runHandwrittenOCRForURL() - uses computer vision batchReadFile API to perform handwritten OCR on a image of a form (image sourced from public URL).

Resources

Running

  1. Create new cognitive services computer vision resource
    run az login, then npm run provision
    OR via portal
  2. Copy .env.sample to .env and populate with values via the following steps.
  3. CLIENT_ID, DOMAIN
  4. SUBSCRIPTION_ID
  5. COGNITIVE_SERVICES_ENDPOINT
  6. COGNITIVE_SERVICES_KEY
  7. run npm start

Keep learning

Get new guides and courses by email

An occasional email when I publish a new guide, course or post. No spam, and you can unsubscribe any time.

Sent with Buttondown. I never share your address. Prefer a feed? Use the RSS feed.