Vision Image#

Image#

Image represented by either a URI or byte stream.

class google.cloud.vision.image.Image(image_source, client)[source]#

Bases: object

Image representation containing information to be annotate.

Parameters:
  • image_source (str) – A string which can a Google Cloud Storage URI, or a byte stream of the image.
  • client (Client) – Instance of Vision client.
as_dict()[source]#

Generate dictionary structure for request

content#

Base64 encoded image content

source#

Google Cloud Storage URI