Google-cloud-vision-api:有关如何将Google Cloud API与Node.js +绘图结合使用的教程,以更好地理解

时间:2021-05-03 06:56:17
【文件属性】:
文件名称:Google-cloud-vision-api:有关如何将Google Cloud API与Node.js +绘图结合使用的教程,以更好地理解
文件大小:16.83MB
文件格式:ZIP
更新时间:2021-05-03 06:56:17
tutorial JavaScript Google Cloud Vision API 由于来自Google的文档只是纯文字,没有很多带插图的结果图片,因此我编写了一些有关如何使用Node.js使用Google Cloud API的教程,以更好地理解。 要求: 已安装 安装Google Cloud API。 npm init npm install --save @google-cloud/vision 获取您的Google Cloud帐户。 您将需要激活您的。 转到并登录。导航至APIs & Services 。 单击Create credentials -> Service account key ->选择JSON格式并填写所需的信息。 你.json credetial文件将全自动下载。 将环境变量GOOGLE_APPLICATION_CREDENTIALS设置为包含您的服务帐户密钥的.json文件的文件路径。
【文件预览】:
Google-cloud-vision-api-master
----images()
--------trump.jpg(1.17MB)
--------landmark.jpg(46KB)
--------text2.jpg(70KB)
--------volder.jpg(64KB)
--------text.jpg(108KB)
--------putin.jpg(72KB)
--------feelings.jpg(45KB)
--------landmark.png(637KB)
--------me.png(508KB)
--------headwear.jpg(22KB)
----package.json(635B)
----readme.md(5KB)
----package-lock.json(109KB)
----.gitignore(26B)
----output_images()
--------text2.png(605KB)
--------landmark.png(374KB)
--------trump.png(11.43MB)
--------putin.png(680KB)
--------landmark_detail.png(393KB)
--------me.png(459KB)
--------feelings.png(225KB)
--------text_detection_console.png(14KB)
----scripts()
--------landmarkDetection.js(3KB)
--------test.js(457B)
--------otherFaceDetection.js(3KB)
--------example.js(477B)
--------faceDetection.js(3KB)
--------feelingDetection.js(4KB)
--------textDetection.js(3KB)

网友评论