GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Vision changes by blowmage · Pull Request #696 · googleapis/google-cloud-ruby

Conversation

@blowmage

@blowmage blowmage commented May 18, 2016

Copy link
Copy Markdown
Contributor

Implement some requested changes to the existing Vision implementation. Including renaming Analysis to Annotation and adding support for default max results when giving a truthy value to #annotate.

require "gcloud"
gcloud = Gcloud.new

vision = gcloud.vision

annotation = vision.annotate "path/to/faces.jpg", faces: true
# As opposed to having to pass in the numeric value
# annotation = vision.annotate "path/to/faces.jpg", faces: 10

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
blowmage added 2 commits May 17, 2016 14:57
@blowmage
Rename Analysis to Annotation
87c9c4b
Received feedback that analysis and analyses were not as preferred as
annotation and annotations. Rename class, update code examples and docs.
@blowmage
Allow common annotations to use default max values
f1cf742
Add configuration for setting the default max results values.
Allow truthy values to #annotate to use the default max result values.
@blowmage blowmage added type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design. api: vision Issues related to the Cloud Vision API. labels May 18, 2016
@blowmage blowmage added this to the Vision milestone May 18, 2016
@blowmage blowmage assigned quartzmo May 18, 2016
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label May 18, 2016
blowmage added 3 commits May 18, 2016 12:37
@blowmage
Update recommended params in Vision docs
4c8ba36
We want to encourage users to use boolean flags instead of setting max result
values in every method call. A custom max result value can be given, but should
be presented as a secondary option to using the boolean flag.

Update method signatures to prioritize boolean flags as default values.
@blowmage
Add boolean flag tests
fc37753
@blowmage
Remove circular require warning
0913986
@quartzmo

quartzmo commented May 18, 2016

Copy link
Copy Markdown
Member

I think changing the syntax from faces: 10 to faces: true is a huge improvement in usability. It considerably lowers the friction to trying out the Vision service. For bulk (production) users, setting global configuration is also better. Win-win in my opinion.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@quartzmo
quartzmo merged commit 038176a into googleapis:vision May 18, 2016
This was referenced May 18, 2016
Initial Vision usage docs for discussion googleapis/google-cloud-python#1809
Closed
Vision guide and Image::Context updates #697
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@quartzmo quartzmo

Labels

api: vision Issues related to the Cloud Vision API. cla: yes This human has signed the Contributor License Agreement. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.

Projects

None yet

Milestone

Vision

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@blowmage @quartzmo @googlebot
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.