mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2024-12-29 16:44:13 +08:00
Fix Google Vision path to api key (#794)
This commit is contained in:
parent
61215a2c44
commit
0ac802edfc
@ -8,7 +8,7 @@ class OCR(baseocr):
|
|||||||
# https://github.com/dmotz/thing-translator/blob/d1fec3f38d24e973af49766669f9ee00bd9e98a8/src/effects/snap.js
|
# 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/ocr?hl=zh-cn
|
||||||
# https://cloud.google.com/vision/docs/reference/rest/v1/AnnotateImageResponse#EntityAnnotation
|
# https://cloud.google.com/vision/docs/reference/rest/v1/AnnotateImageResponse#EntityAnnotation
|
||||||
self.checkempty(["googlecloudvision"])
|
self.checkempty(["key"])
|
||||||
ocr_url = (
|
ocr_url = (
|
||||||
"https://vision.googleapis.com/v1/images:annotate?key=" + self.config["key"]
|
"https://vision.googleapis.com/v1/images:annotate?key=" + self.config["key"]
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user