Using Google’s Vision API, we can detect and extract text from images. However, there are two different type of features that supports text and character recognition – TEXT_DETECTION and DOCUMENT_TEXT_DETECTION. In this tutorial we will get started with how to use the TEXT_DETECTION feature to extract text from an image in Python.

The Vision API TEXT_DETECTION method detect and extract text from an image. For example, if a photo contains signs, the API can detect and extract the information and output to a JSON file.



Sample Python Script