목록windows (1)
Head vs breakz

from google.cloud import vision import os,io os.environ["GOOGLE_APPLICATION_CREDENTIALS"] ='구글에서받은.json' # def detect_text(path): client = vision.ImageAnnotatorClient() with io.open(path, 'rb') as image_file: content = image_file.read() image = vision.types.Image(content=content) response = client.text_detection(image=image) texts = response.text_annotations print(texts) for text in texts: print..
Head/Code
2020. 4. 20. 20:09