Skip to content

Commit

Permalink
Added note on additional gvision check.
Browse files Browse the repository at this point in the history
  • Loading branch information
laurejt committed Oct 2, 2024
1 parent 9d41fc6 commit ac605ec
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/corppa/ocr/gvision_ocr.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 "
Expand Down

0 comments on commit ac605ec

Please sign in to comment.