Skip to content

Conversation

@okofish
Copy link
Contributor

@okofish okofish commented May 25, 2016

Add support for ImageContext "hints" in the detect function, removing the need to construct an AnnotateImageRequest if you want to use this functionality.

No tests were added because this doesn't seem to be a "testable" feature, but let me know if I should.

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label May 25, 2016
@stephenplusplus
Copy link
Contributor

Thank you for this! I think it would be nice to have a test added. It would basically look like this one: https://github.com/okofish/gcloud-node/blob/f5e92621e67bb339de704e500eeff8e8971bed00/test/vision/index.js#L314.

* `logos`, `properties`, `safeSearch`, `text`.
* @param {boolean=} options.verbose - Use verbose mode, which returns a less-
* simplistic representation of the annotation (default: `false`).
* @param {object=} options.imageContext - An `ImageContext`. See an

This comment was marked as spam.

@stephenplusplus stephenplusplus added the api: vision Issues related to the Cloud Vision API. label May 26, 2016
@okofish
Copy link
Contributor Author

okofish commented May 26, 2016

OK, I alphabetized the doc lines and added a test.

features: {
type: 'LABEL_DETECTION'
},
imageContext: imageContext

This comment was marked as spam.

This comment was marked as spam.

@stephenplusplus
Copy link
Contributor

Thanks for making the updates. Just waiting for Travis to finish running the tests, then I'll merge it in.

@coveralls
Copy link

coveralls commented May 26, 2016

Coverage Status

Changes Unknown when pulling 2f59a47 on okofish:master into * on GoogleCloudPlatform:master*.

@coveralls
Copy link

coveralls commented May 26, 2016

Coverage Status

Changes Unknown when pulling 7c3208e on okofish:master into * on GoogleCloudPlatform:master*.

@stephenplusplus stephenplusplus merged commit 7ff0a5b into googleapis:master May 26, 2016
@stephenplusplus
Copy link
Contributor

Thanks again!

@okofish
Copy link
Contributor Author

okofish commented May 26, 2016

No problem, glad to help out!

miguelvelezsa pushed a commit that referenced this pull request Jul 23, 2025
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
miguelvelezsa pushed a commit that referenced this pull request Jan 28, 2026
* Add descriptions for some query parameters

* Eliminate the extra space

* Add a description to all the alias parameters

* Add documentation for property parameters

* Add descriptions for the aggregation argument

* Add property params to these objects

* Add descriptions for data types

* Fix the broken links

* Add documentation for the addExcludeFromIndexes

* Buffer description

* Add a description for entity filters

* Add parameters documentation for the `and` and `or

* Add descriptions for the filter object

* Add some parameter documentation for the client

* 🦉 Updates from OwlBot post-processor

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

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: vision Issues related to the Cloud Vision API. cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants