google-cloud
latest

google-cloud

  • Shared Core Modules
  • Configuration
  • Authentication
  • Long-Running Operations

Datastore

  • Client
  • Entities
  • Keys
  • Queries
  • Transactions
  • Batches
  • Helpers

Storage

  • Client
  • Blobs / Objects
  • Buckets
  • ACL
  • Batches

Pub/Sub

  • Using the API
  • Client
  • Topics
  • Subscriptions
  • Message
  • IAM Policy

BigQuery

  • Using the API
  • Client
  • Datasets
  • Jobs
  • Tables
  • Query
  • Schemas

Cloud Bigtable

  • Using the API
  • Base for Everything
  • Instance Admin API
  • Table Admin API
  • Data API
  • Client
  • Instance
  • Cluster
  • Table
  • Column Families
  • Bigtable Row
  • Bigtable Row Filters
  • Row Data

Resource Manager

  • Overview
  • Client
  • Projects

DNS

  • Using the API
  • Client
  • Managed Zones
  • Resource Record Sets
  • Change Sets

Stackdriver Logging

  • Using the API
  • Python logging handler transports
  • Client
  • Logger
  • Entries
  • Metrics
  • Sinks
  • Python Logging Module Handler
  • Python Logging Handler Sync Transport
  • Python Logging Handler Threaded Transport
  • Python Logging Handler Sync Transport

Stackdriver Error Reporting

  • Using the API
  • Client

Stackdriver Monitoring

  • Using the API
  • Client
  • Metric Descriptors
  • Monitored Resource Descriptors
  • Groups
  • Time Series Query
  • Time Series
  • Label Descriptors

Translate

  • Using the API
  • Client

Vision

  • Using the Vision API
  • Vision Client
  • Vision Image Properties
  • Vision Entity
  • Vision Feature
  • Vision Face
  • Vision Image
  • Vision Safe Search
    • Safe Search Annotation

Natural Language

  • Using the API
  • Client
  • Document
  • Natural Language Response Classes

Speech

  • Using the API
  • Client
  • Speech Encoding
  • Speech Metadata
  • Speech Operation
  • Speech Transcript

External Links

  • GitHub
  • Issues
  • Stack Overflow
  • PyPI
google-cloud
  • Docs »
  • Vision Safe Search
  • Edit on GitHub

Vision Safe Search#

Safe Search Annotation#

Safe search class for information returned from annotating an image.

class google.cloud.vision.safe.SafeSearchAnnotation(adult_likelihood, spoof_likelihood, medical_likelihood, violence_likelihood)[source]#

Bases: object

Representation of a SafeSearchAnnotation.

Parameters:
  • adult_likelihood (Likelihood) – Likelihood that image contains adult material.
  • spoof_likelihood (Likelihood) – Likelihood that image is a spoof.
  • medical_likelihood (Likelihood) – Likelihood that image contains medical material.
  • violence_likelihood (Likelihood) – Likelihood that image contains violence.
adult#

Represents the adult contents likelihood for the image.

Return type:Likelihood
Returns:Likelihood of the image containing adult content.
classmethod from_api_repr(response)[source]#

Factory: construct SafeSearchAnnotation from Vision API response.

Parameters:response (dict) – Dictionary response from Vision API with safe search data.
Return type:SafeSearchAnnotation
Returns:Instance of SafeSearchAnnotation.
medical#

Likelihood this is a medical image.

Return type:Likelihood
Returns:The Likelihood that the image is medical in origin.
spoof#

The likelihood that an obvious modification was made to the image.

Return type:Likelihood
Returns:The Likelihood that an obvious modification was made to the image’s canonical version to make it appear funny or offensive.
violence#

Likeliehood that this image contains violence.

Return type:Likelihood
Returns:The Likelihood that the image contains violence.
Next Previous

© Copyright 2014, Google. Revision 8c50e41f.

Built with Sphinx using a theme provided by Read the Docs.