Deep Learning OCR on Document and Receipt Photos with Node.JS

Here we shall demonstrate a very simple way to use Node.JS to perform Deep Learning Optical Character Recognition (OCR). This will allow us to extract the text from a photograph automatically. For example:

Image for post
Image for post

First, we add Cloudmersive’s OCR API to our package.json:

"dependencies": {
"cloudmersive-ocr-api-client": "^1.1.7"

All we have to do now is call imageOcrPhotoToText:

var CloudmersiveOcrApiClient = require('cloudmersive-ocr-api-client');
var defaultClient = CloudmersiveOcrApiClient.ApiClient.instance;

All done! You can now convert any document or receipt photo into text instantly.

Written by

There’s an API for that. Cloudmersive is a leader in Highly Scalable Cloud APIs.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store