Send feedback
Class Image (3.10.2) Stay organized with collections
Save and categorize content based on your preferences.
Version latest keyboard_arrow_down
Image
(
mapping
=
None
,
*
,
ignore_unknown_fields
=
False
,
**
kwargs
)
Client image to perform Google Cloud Vision API tasks over.
content
bytes
Image content, represented as a stream of bytes. Note: As
with all bytes
fields, protobuffers use a pure binary
representation, whereas JSON representations use base64.
Currently, this field only works for BatchAnnotateImages
requests. It does not work for AsyncBatchAnnotateImages
requests.
source
google.cloud.vision_v1.types.ImageSource
Google Cloud Storage image location, or publicly-accessible
image URL. If both content
and source
are provided
for an image, content
takes precedence and is used to
perform the image annotation request.
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License
, and code samples are licensed under the Apache 2.0 License
. For details, see the Google Developers Site Policies
. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-28 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[],[],null,["# Class Image (3.10.2)\n\nVersion latestkeyboard_arrow_down\n\n- [3.10.2 (latest)](/python/docs/reference/vision/latest/google.cloud.vision_v1.types.Image)\n- [3.10.0](/python/docs/reference/vision/3.10.0/google.cloud.vision_v1.types.Image)\n- [3.9.0](/python/docs/reference/vision/3.9.0/google.cloud.vision_v1.types.Image)\n- [3.8.1](/python/docs/reference/vision/3.8.1/google.cloud.vision_v1.types.Image)\n- [3.7.4](/python/docs/reference/vision/3.7.4/google.cloud.vision_v1.types.Image)\n- [3.6.0](/python/docs/reference/vision/3.6.0/google.cloud.vision_v1.types.Image)\n- [3.5.0](/python/docs/reference/vision/3.5.0/google.cloud.vision_v1.types.Image)\n- [3.4.5](/python/docs/reference/vision/3.4.5/google.cloud.vision_v1.types.Image)\n- [3.3.1](/python/docs/reference/vision/3.3.1/google.cloud.vision_v1.types.Image)\n- [3.2.0](/python/docs/reference/vision/3.2.0/google.cloud.vision_v1.types.Image)\n- [3.1.4](/python/docs/reference/vision/3.1.4/google.cloud.vision_v1.types.Image)\n- [3.0.0](/python/docs/reference/vision/3.0.0/google.cloud.vision_v1.types.Image)\n- [2.8.0](/python/docs/reference/vision/2.8.0/google.cloud.vision_v1.types.Image)\n- [2.7.3](/python/docs/reference/vision/2.7.3/google.cloud.vision_v1.types.Image)\n- [2.6.3](/python/docs/reference/vision/2.6.3/google.cloud.vision_v1.types.Image)\n- [2.5.0](/python/docs/reference/vision/2.5.0/google.cloud.vision_v1.types.Image)\n- [2.4.4](/python/docs/reference/vision/2.4.4/google.cloud.vision_v1.types.Image)\n- [2.3.2](/python/docs/reference/vision/2.3.2/google.cloud.vision_v1.types.Image)\n- [2.2.0](/python/docs/reference/vision/2.2.0/google.cloud.vision_v1.types.Image)\n- [2.1.0](/python/docs/reference/vision/2.1.0/google.cloud.vision_v1.types.Image)\n- [2.0.0](/python/docs/reference/vision/2.0.0/google.cloud.vision_v1.types.Image)\n- [1.0.2](/python/docs/reference/vision/1.0.2/google.cloud.vision_v1.types.Image)\n- [0.42.0](/python/docs/reference/vision/0.42.0/google.cloud.vision_v1.types.Image)\n- [0.41.0](/python/docs/reference/vision/0.41.0/google.cloud.vision_v1.types.Image)\n- [0.40.0](/python/docs/reference/vision/0.40.0/google.cloud.vision_v1.types.Image)\n- [0.39.0](/python/docs/reference/vision/0.39.0/google.cloud.vision_v1.types.Image)\n- [0.38.1](/python/docs/reference/vision/0.38.1/google.cloud.vision_v1.types.Image) \n\n Image(mapping=None, *, ignore_unknown_fields=False, **kwargs)\n\nClient image to perform Google Cloud Vision API tasks over."]]