From 0ac802edfcd3317991c08990a57b06a5f7f69172 Mon Sep 17 00:00:00 2001 From: blastentwice <81999440+blastentwice@users.noreply.github.com> Date: Tue, 4 Jun 2024 06:33:59 -0700 Subject: [PATCH] Fix Google Vision path to api key (#794) --- LunaTranslator/LunaTranslator/ocrengines/googlecloudvision.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LunaTranslator/LunaTranslator/ocrengines/googlecloudvision.py b/LunaTranslator/LunaTranslator/ocrengines/googlecloudvision.py index 4df3bfce..47fff7a6 100644 --- a/LunaTranslator/LunaTranslator/ocrengines/googlecloudvision.py +++ b/LunaTranslator/LunaTranslator/ocrengines/googlecloudvision.py @@ -8,7 +8,7 @@ class OCR(baseocr): # https://github.com/dmotz/thing-translator/blob/d1fec3f38d24e973af49766669f9ee00bd9e98a8/src/effects/snap.js # https://cloud.google.com/vision/docs/ocr?hl=zh-cn # https://cloud.google.com/vision/docs/reference/rest/v1/AnnotateImageResponse#EntityAnnotation - self.checkempty(["googlecloudvision"]) + self.checkempty(["key"]) ocr_url = ( "https://vision.googleapis.com/v1/images:annotate?key=" + self.config["key"] )