How to use the Google Vision API for text detection from base64 encoded image?
问题 I am having a base64 encoded image. imageData = 'data:image/png;base64,iVBORw0rrfwfwHReger32QRQWr...' How I should proceed for text detection with google cloud vision python library? My Code looks like : from google.cloud import vision client = vision.Client() imageData = 'data:image/png;base64,iVBORw0rrfwfwHReger32QRQWr...' image = client.image(content=imageData) texts = image.detect_text() print texts[0].description 回答1: Use the Cloud Client library for Python vision as demonstrated here.