Fix Google Vision path to api key (#794)

This commit is contained in:
blastentwice 2024-06-04 06:33:59 -07:00 committed by GitHub
parent 61215a2c44
commit 0ac802edfc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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"]
)