Recognize a Photo of a Business Card & Extract Key Information with JavaScript

With the help of OCR APIs, it’s easy to ask our business applications to do new and exciting things.

Our Business Card OCR API will allow your app to easily recognize and extract key information from a photograph of a business card automatically. It’s a simple & easy API to implement, and we’ve provided ready-to-run code in JavaScript to help structure your API call. Just follow instructions below, and make sure you have a Cloudmersive API key handy before you finish (head to our website and register for a free account to receive one).

Let’s start off by installing the jQuery library — we can do so by running the below command:

bower install jquery

After that, let’s next include the below code snippets. Make sure you include your image file where indicated:

var form = new FormData();
form.append("imageFile", fileInput.files[0], "file");
var settings = {
"url": "https://api.cloudmersive.com/ocr/photo/recognize/business-card",
"method": "POST",
"timeout": 0,
"headers": {
"Content-Type": "multipart/form-data",
"Apikey": "YOUR-API-KEY-HERE"
},
"processData": false,
"mimeType": "multipart/form-data",
"contentType": false,
"data": form
};
$.ajax(settings).done(function (response) {
console.log(response);
});

It’s really that easy — you’re all done, no more code required.

--

--

--

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

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

A Deep Dive Into Weak Memory Management in JavaScript

Creating an animated wishlist component for Vue Storefront

The “this” Keyword in JavaScript

Convert JPG to Words in Node.JS using OCR

Why does IE10 automatically set the natural size of the image on the width and height attributes…

How to Write Your Own Strapi Upload Provider

How to Check Text Input for XSS Attacks in Node.JS

https://youtu.be/mtNfIbM_5uo

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
Cloudmersive

Cloudmersive

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

More from Medium

How to Lookup EAN Barcode Value & Return Product Data with JavaScript

Take The First Step Towards Web Design While Touring CERN Virtually

Why We Use Django At Keleno

ODOO Remote Procedure Calling