(Advanced) Recognize a Photo of a Form, Extract Key Fields using Stored Templates in Python

In a prior article, we covered how you can use the Cloudmersive OCR API to recognize & store key information from a business form with some customization options. In this article, we’re going to cover the Advanced version of this API, which enables you to use template definitions stored in Cloudmersive Configuration. After following the steps below to connect with the API in Python, you can configure stored templates by logging into the Cloudmersive Management Portal and navigating to Settings > API Configuration > Create Bucket.

First, run this command for Python SDK installation:

After that, you can run the below code to call the function & use the API. In the second snippet, you’ll be asked to supply your Cloudmersive API key (if you don’t have a Cloudmersive Account yet, you can easily make a free account by visiting the Cloudmersive website).



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.