Deep Learning OCR on Document and Receipt Photos with PHP

Today we will be looking at how to employ Deep Learning OCR (optical character recognition) to extract text from photographs.

Image for post
Image for post

First we will install Cloudmersive’s OCR API Client by executing this in Composer’s command line:

composer require cloudmersive/cloudmersive_ocr_api_client

Now call imageOcrPhotoToText, as you see here:

require_once(__DIR__ . '/vendor/autoload.php');

And that’s all you have to do! Note that there is support for a wide selection of languages, including German, Chinese, and Spanish.

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