내가 구글 클라우드 platform.I에서 무료 평가판에 가입 한 지금은 액세스해야 .I이 JSON 파일 also.I이Python 프로그램에서 Google Cloud Vision API에 액세스하는 방법은 무엇입니까?
pip install --upgrade google-api-python-client
pip install google-cloud
를 사용하여 필요한 패키지를 설치있어 프로젝트와 의 OAuth 2.0 클라이언트 ID를 생성 내 파이썬 program.My 코드 구글에서 이미지 API에서 텍스트 추출 내가 구글 API에 액세스 할 수 위의 코드에서 이러한 credintials을 통합하는 JSON 파일, 클라이언트 ID, 클라이언트 secret.How이 (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
입니까?