We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9d6c377 commit c5bbdfdCopy full SHA for c5bbdfd
functions/ocr/app/main.py
@@ -39,7 +39,7 @@ def detect_text(bucket, filename):
39
image = vision.Image(
40
source=vision.ImageSource(gcs_image_uri=f"gs://{bucket}/{filename}")
41
)
42
- text_detection_response = vision_client.text_detection(source=image)
+ text_detection_response = vision_client.text_detection(image=image)
43
annotations = text_detection_response.text_annotations
44
if len(annotations) > 0:
45
text = annotations[0].description
0 commit comments