Struct google_vision1::api::Image
source · pub struct Image {
pub content: Option<Vec<u8>>,
pub source: Option<ImageSource>,
}
Expand description
Client image to perform Google Cloud Vision API tasks over.
§Activities
This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).
- annotate images (none)
- async batch annotate images (none)
Fields§
§content: Option<Vec<u8>>
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: Option<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.