Skip to content

Commit 8c33a06

Browse files
author
remi Taylor
authored
Merge pull request #86 from GoogleCloudPlatform/vision-docs
Adds notes for fixing missing "project" field
2 parents ca91692 + 339c664 commit 8c33a06

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

vision/README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff 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+
1830
Run 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+

0 commit comments

Comments
 (0)