#Google Vision for OCR
This is a step by step guide to using Google Vision to identify and recognize text in document images. There are lots of ways to OCR, this is just the best method that I have found so far.
The general documentation for Vision can be found here: https://cloud.google.com/vision/
Before using any of the scripts below, you'll need to create a Google Cloud account. You'll also need to create a project, enable the Vision and Natural Language APIs on that project.
In APIs & services
you can create credentials in the credentials tab. Select service account key
, your project name, JSON and then click on create
.
A file should download to your machine. If you get stuck there's more information here: https://cloud.google.com/docs/authentication/api-keys
Move the JSON key to a safe place and remember the path to that file. I find it helpful to navigate in the terminal
to the directory containing the file and then enter pwd
. This will show the location of the file (suc