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 — Initial Vision usage docs for discussion by daspecster · Pull Request #1809 · googleapis/google-cloud-python

Conversation

@daspecster

@daspecster daspecster commented May 18, 2016 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor

Here is a rough outline of the Vision usage RST.

Originally mentioned here.

The usage here essentially implies direct conversion of the responses to objects.
I think we have room here to add helper methods which could add value.

Let's discuss!

Sorry, something went wrong.

Uh oh!

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

All reactions
@daspecster daspecster added do not merge Indicates a pull request not ready for merge, due to either quality or timing. api: vision Issues related to the Cloud Vision API. labels May 18, 2016
@daspecster daspecster added this to the Vision Alpha milestone May 18, 2016
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label May 18, 2016
theacodes
theacodes reviewed May 18, 2016
View reviewed changes
Comment thread docs/vision-usage.rst Outdated

.. doctest::

>>> images = (('./image.jpg', [vision.FeatureTypes.LABEL_DETECTION,

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

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

@theacodes

theacodes commented May 18, 2016

Copy link
Copy Markdown
Contributor

/cc @jerjou

All reactions

Sorry, something went wrong.

Uh oh!

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

jerjou
jerjou reviewed May 18, 2016
View reviewed changes
Comment thread docs/vision-usage.rst Outdated
>>> annotated_images = []
>>> for image, feature_types in images:
... annotated_images.append(
... vision_client.annotate(

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

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

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

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

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

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

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

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

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

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

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

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

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

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

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

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

@jgeewax

jgeewax commented May 18, 2016

Copy link
Copy Markdown
Contributor

Can you take a look at our Vision docs for Ruby that do things slightly differently? https://quartzmo.github.io/gcloud-ruby/#/docs/master/gcloud/vision

All reactions

Sorry, something went wrong.

Uh oh!

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

@daspecster

daspecster commented May 18, 2016

Copy link
Copy Markdown
Contributor Author

@jgeewax I like their examples!

Are you saying to look at their docs as an example for the usage layout or for how their API is defined...or both I suppose?

I can condense this down a bit. I wanted to layout the cases here so we could discuss the API surface.

All reactions

Sorry, something went wrong.

Uh oh!

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

@quartzmo

quartzmo commented May 18, 2016

Copy link
Copy Markdown
Member

@jgeewax @daspecster I'm working on updating our Vision docs demo with googleapis/google-cloud-ruby#696 and another pending PR, just FYI.

daspecster reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

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

@daspecster

daspecster commented May 18, 2016

Copy link
Copy Markdown
Contributor Author

One thing that I'm not sure about in gcloud-ruby is that the way they do the multiple images example. I think it actually would cost more since there would be multiple API requests?

However I guess since the charging is based on the feature types that in their example it wouldn't make any difference?

analyses = vision.annotate do |annotate|
   annotate.annotate face_image, faces: 10, labels: 10
   annotate.annotate landmark_image, landmarks: 10
   annotate.annotate text_image, text: true
end

In that case I guess the only part in question is request overhead. I think the batching discussion will get there though.

All reactions

Sorry, something went wrong.

Uh oh!

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

@quartzmo

quartzmo commented May 18, 2016

Copy link
Copy Markdown
Member

We have changed our API to accept booleans as well as max results, so when updated, most examples will use this new syntax:

annotation = vision.annotate image, faces: true, labels: true
All reactions

Sorry, something went wrong.

Uh oh!

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

@daspecster

daspecster commented May 18, 2016

Copy link
Copy Markdown
Contributor Author

@quartzmo, I like changing the max_results to true, since with some feature types rarely if ever would more than one result be returned.

I could take that out here and just make the default max_results=1 and then not that in the docs but leave it out of most of the examples.

All reactions

Sorry, something went wrong.

Uh oh!

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

@quartzmo

quartzmo commented May 18, 2016

Copy link
Copy Markdown
Member

@daspecster The batch example you mention above results in a single API request. Nothing happens until the block execution completes.

All reactions

Sorry, something went wrong.

Uh oh!

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

@daspecster

daspecster commented May 18, 2016

Copy link
Copy Markdown
Contributor Author

@quartzmo, I see now. Thanks!

All reactions

Sorry, something went wrong.

Uh oh!

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

@quartzmo

quartzmo commented May 19, 2016

Copy link
Copy Markdown
Member

@daspecster We released our Vision support today in case you want to try it.

All reactions

Sorry, something went wrong.

Uh oh!

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

@daspecster

daspecster commented May 20, 2016

Copy link
Copy Markdown
Contributor Author

@quartzmo thanks! I'll give it a go this weekend.

All reactions

Sorry, something went wrong.

Uh oh!

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

@tseaver tseaver mentioned this pull request May 23, 2016
Initial vision API addition. #1803
Closed
6 tasks
dhermes
dhermes reviewed May 23, 2016
View reviewed changes
Comment thread docs/vision-usage.rst Outdated

- In addition to any authentication configuration, you should also set the
:envvar:`GCLOUD_PROJECT` environment variable for the project you'd like
to interact with. If you are Google App Engine or Google Compute Engine

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

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

@dhermes

dhermes commented May 23, 2016

Copy link
Copy Markdown
Contributor

General comment: Though there is only one method provided by the backend API, we can and should have many methods in our API, matching the concepts at the level you provide in each docs subsection.

All reactions

Sorry, something went wrong.

Uh oh!

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

daspecster added 2 commits May 23, 2016 23:52
@daspecster
Initial Vision usage docs for discussion
bf38cf3
@daspecster
Update usage examples to batch.
196e229
@daspecster
daspecster force-pushed the vision-usage branch from f43179d to 196e229 Compare May 24, 2016 03:52
@daspecster

daspecster commented May 27, 2016

Copy link
Copy Markdown
Contributor Author

@dhermes @tseaver, the doc was updated with convenience methods like detect_labels() etc.
Not sure why it days they were added 9 days ago though? I pushed it on one of those github outage days.

If you guys want to take a look at it again and let me know what you think that would be awesome!

All reactions

Sorry, something went wrong.

Uh oh!

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

@daspecster

daspecster commented May 31, 2016

Copy link
Copy Markdown
Contributor Author

@dhermes @tseaver, just wanted to try and keep this alive. Let me know if you have any comments! If not then I'll start working on implementing this Thursday(June 2nd).

Thanks!

All reactions

Sorry, something went wrong.

Uh oh!

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

@tseaver

tseaver commented May 31, 2016

Copy link
Copy Markdown
Contributor

LGTM to go forward with the surface as described.

daspecster reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

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

@daspecster

daspecster commented May 31, 2016 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor Author

Closing since we shouldn't have a usage doc with no surface methods available yet.

Reopen if we want to chat more about any of this!

All reactions

Sorry, something went wrong.

Uh oh!

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

@daspecster daspecster closed this May 31, 2016
@daspecster

daspecster commented Jun 20, 2016

Copy link
Copy Markdown
Contributor Author

/cc @jgeewax

All reactions

Sorry, something went wrong.

Uh oh!

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

@dhermes dhermes mentioned this pull request Aug 19, 2016
Add Vision API usage documentation. #2148
Merged
@daspecster
daspecster deleted the vision-usage branch January 24, 2017 15:17
parthea pushed a commit that referenced this pull request Nov 26, 2025
@nbayati
feat: Add trust boundary support for external accounts. (#1809)
abbf629
* feat: Add trust boundary support for external accounts.

* Add trust boundary support to external account authorized users.

* Fix lint issues

* Implement additional unit tests for external account authorized user.

* fix formatting issue

* Add a unit test with invalid audiance

* add missing unit tests
parthea pushed a commit that referenced this pull request Nov 26, 2025
@release-please
chore(main): release 2.42.0 (#1819)
ec80b4e
🤖 I have created a release *beep* *boop*
---


##
[2.42.0](googleapis/google-auth-library-python@v2.41.1...v2.42.0)
(2025-10-24)


### Features

* Add trust boundary support for external accounts.
([#1809](googleapis/google-auth-library-python#1809))
([36ecb1d](googleapis/google-auth-library-python@36ecb1d))


### Bug Fixes

* Read scopes from ADC json for impersoanted cred
([#1820](googleapis/google-auth-library-python#1820))
([62c0fc8](googleapis/google-auth-library-python@62c0fc8))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
parthea added a commit that referenced this pull request Mar 6, 2026
@parthea @Linchin
@chalmerlowe @gcf-owl-bot
fix: add google-auth as a direct dependency (#1809)
1a7d458
* fix: add google-auth as a direct dependency

* update constraints

* fix(deps): Require `google-api-core>=1.34.1, >=2.11.0`

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

---------

Co-authored-by: Lingqing Gan <[email protected]>
Co-authored-by: Chalmer Lowe <[email protected]>
Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
parthea pushed a commit that referenced this pull request Apr 1, 2026
@chelsea-lin
chore: implement compile_readtable (#1809)
d7dbbb8
* use mocks.create_bigquery_session

* chore: implement compile_readtable
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

No one assigned

Labels

api: vision Issues related to the Cloud Vision API. cla: yes This human has signed the Contributor License Agreement. do not merge Indicates a pull request not ready for merge, due to either quality or timing.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

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

8 participants

@daspecster @theacodes @jgeewax @quartzmo @dhermes @tseaver @jerjou @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.