From ac605ece03c0d7cdab2323cb3956a96a8c029a6e Mon Sep 17 00:00:00 2001 From: Laure Thompson <602628+laurejt@users.noreply.github.com> Date: Wed, 2 Oct 2024 14:15:20 -0400 Subject: [PATCH] Added note on additional gvision check. --- src/corppa/ocr/gvision_ocr.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/corppa/ocr/gvision_ocr.py b/src/corppa/ocr/gvision_ocr.py index da2a38d..98bcec4 100755 --- a/src/corppa/ocr/gvision_ocr.py +++ b/src/corppa/ocr/gvision_ocr.py @@ -57,7 +57,9 @@ def ocr_image_via_gvision(gvision_client, input_image, out_txt, out_json): The plaintext output and json response of the OCR call are written to out_txt and out_json paths respectively. """ - # Check that Google Cloud Vision Python Client was successfully imported + # TODO: Clean up code duplication. This check is needed, since this method relies on + # both an existing client as well as API calls directly. + # Check that Google Cloud Vision Python Client library was successfully imported if google_vision is None: print( "Error: Python environment does not contain google-cloud-vision "