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

1 min readMay 18, 2022


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.




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