Ich habe für das kostenlose Probe in Google Cloud platform.I erstellt ein Projekt und OAuth 2.0-Client-IDs .Ich habe eine JSON-Datei also.i benötigten Pakete installiert mitWie Zugriff auf Google Cloud Vision API in Python-Programm?
pip install --upgrade google-api-python-client
pip install google-cloud
Jetzt muss ich Zugang haben unterschrieben Textextraktion von Bild-API von google in meinem python program.My Code ist (here)
from google.cloud import vision
client = vision.Client()
with open('./image.jpg', 'rb') as image_file:
image = client.image(content=image_file.read())
texts = image.detect_text()
print texts[0].description
ich JSON-Datei habe, Client-ID, Client-secret.How diese credintials in obigem Code zu integrieren google api zugreifen?