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": "",
"method": "POST",
"timeout": 0,
"headers": {
"Content-Type": "multipart/form-data",
"processData": false,
"mimeType": "multipart/form-data",
"contentType": false,
"data": form
$.ajax(settings).done(function (response) {

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



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


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