HOW TO extract printed text (OCR) using the Azure Computer Vision REST API & JavaScript

The Azure documentation provides an excellent Quickstart example to extract printed text with optical character recognition (OCR) from an image by using Computer Vision's REST API which is part of Cognitive Services. Unlike in the Computer Vision API home page demo, the code sample just shows the raw JSON & not the extracted text in a readable format in the Preview tab
I adapted the code sample from Computer Vision API documentation to show extracted text -

The OCR results are more accurate in the Computer Vision API home page demo than that returned using v2.0 of the Computer Vision's REST API as the former uses the Recognize Text interface while latter uses OCR operation

Comments

Popular posts from this blog

Maven Crash Course - Learn Power Query, Power Pivot & DAX in 15 Minutes

"Data Prep & Exploratory Data Analysis" course by Maven Analytics

Oracle Cloud Infrastructure 2024 Generative AI Professional Course & Certification Exam (1Z0-1127-24)