File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,18 @@ To run the sample, first install dependencies:
1515
1616 bundle install
1717
18+ If you haven't already, configure default credentials for using the
19+ [ Cloud SDK] ( https://cloud.google.com/sdk/ ) :
20+
21+ gcloud auth login
22+ gcloud init
23+
24+ Next, set the configured project by setting the * GOOGLE_CLOUD_PROJECT*
25+ environment variable to the project name set in the
26+ [ Google Cloud Platform Developer Console] ( https://console.cloud.google.com ) :
27+
28+ export GOOGLE_CLOUD_PROJECT="YOUR-PROJECT-ID"
29+
1830Run the sample:
1931
2032 bundle exec ruby vision_samples.rb
@@ -33,3 +45,4 @@ Example:
3345 ruby vision_samples.rb labels /path/to/cat.jpg
3446 ruby vision_samples.rb landmark /path/to/grand-canyon.jpg
3547 ruby vision_samples.rb faces /path/to/faces.jpg output-image.jpg
48+
You can’t perform that action at this time.
0 commit comments