Member-only story

OCR using C++

Michael Haephrati
3 min readJan 30, 2021

--

Github Repo

Introduction

During our day to day development we needed to perform OCR (Optical Character Recognition) on scanned images, screenshots and other forms or files. We looked for an SDK which will allow that and examined ABBYY Cloud OCR SDK. They didn’t have any C / C++ code samples so I had to develop ones…

Creating an ABBYY Cloud OCR App

Here are the steps that need to be taken once a trial account was created and verified.

1. Create a new App.

2. Check your email for the Application’s password. You will need both Application ID and Applicaiton Password to start.

You should see these 2 placeholder lines in our code:

#define APP_ID "<Your Application ID>" #define PASSWORD "<Your Application Password"

Replace these strings with your allocated Application ID and Application Password.

Initiating libCurl

First we initiate the Curl object:

curl_global_init(CURL_GLOBAL_ALL); curl = curl_easy_init();

--

--

Michael Haephrati
Michael Haephrati

Written by Michael Haephrati

Michael Haephrati, Co-Founder of Secured Globe, Inc. is an inventor, musician, entrepreneur, and the author of the book Learning C++

No responses yet