Skip to content

Add Vision safe search detection.#2319

Merged
daspecster merged 1 commit intogoogleapis:masterfrom
daspecster:vision-safe-search
Sep 15, 2016
Merged

Add Vision safe search detection.#2319
daspecster merged 1 commit intogoogleapis:masterfrom
daspecster:vision-safe-search

Conversation

@daspecster
Copy link
Copy Markdown
Contributor

This adds Safe Search detection to the Vision API.

Safe Search isn't an EntityAnnotation based call so a new SafeSearchAnnotation was created.

@daspecster daspecster added the api: vision Issues related to the Cloud Vision API. label Sep 15, 2016
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Sep 15, 2016
@daspecster
Copy link
Copy Markdown
Contributor Author

@tseaver this one should be good to take a look at.

Then the last API addition is #2320.

Copy link
Copy Markdown
Contributor

@tseaver tseaver left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@daspecster daspecster merged commit 731a2cc into googleapis:master Sep 15, 2016
@dhermes dhermes mentioned this pull request Sep 19, 2016
@daspecster daspecster deleted the vision-safe-search branch January 24, 2017 15:17
parthea pushed a commit that referenced this pull request Apr 1, 2026
This PR fix the _get_anywidget_bundle method. Previously, when the
underlying widget's _repr_mimebundle_ method returned a (data, metadata)
tuple, the code was only extracting the data portion and discarding the
metadata. This resulted in the widget not rendering correctly in
environments like Colab, which rely on this metadata.

The change corrects this by properly unpacking the tuple into
widget_repr and widget_metadata. The method now preserves the metadata
and returns it along with the data, ensuring that the necessary
information for widget rendering is passed on.

We also revert commit 4df3428dde83a57ed183b5441b7d9af7ddab1a17 to
reapply "refactor: Migrate DataFrame display to use IPython's
repr_mimebundle() protocol for anywidget mode
(googleapis/python-bigquery-dataframes#2271)"


A testcase is added to verify this new change. We also verified at
colab: screen/AzGa5RMTJnMH5NH

Fixes #<466155761> 🦕
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.

3 participants