Skip to content

Commit

Permalink
Tidy up README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
kaneshin committed Mar 5, 2016
1 parent 938e080 commit 63b4203
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ $ go get github.com/kaneshin/pigeon
# Default Detection is LabelDetection.
$ pigeon assets/lenna.jpg
$ pigeon -face gs://bucket_name/lenna.jpg
$ pigeon -label https://httpbin.org/image/jpeg
```

![pigeon-cmd](https://raw.githubusercontent.com/kaneshin/pigeon/master/assets/pigeon-cmd.gif)
Expand Down Expand Up @@ -82,12 +83,12 @@ import "github.com/kaneshin/pigeon/credentials"
func main() {
// Initialize vision service by a credentials json.
creds := credentials.NewApplicationCredentials("credentials.json")
config := NewConfig().WithCredentials(creds)

// creds will set a pointer of credentials object using env value of
// "GOOGLE_APPLICATION_CREDENTIALS" if pass empty string to argument.
// creds := credentials.NewApplicationCredentials("")
// config := NewConfig().WithCredentials(creds)

config := NewConfig().WithCredentials(creds)

client, err := pigeon.New(config)
if err != nil {
Expand Down

0 comments on commit 63b4203

Please sign in to comment.