[][src]Struct gcp_client::google::cloud::vision::v1p4beta1::ReferenceImage

pub struct ReferenceImage {
    pub name: String,
    pub uri: String,
    pub bounding_polys: Vec<BoundingPoly>,
}

A ReferenceImage represents a product image and its associated metadata, such as bounding boxes.

Fields

name: String

The resource name of the reference image.

Format is:

projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID.

This field is ignored when creating a reference image.

uri: String

Required. The Google Cloud Storage URI of the reference image.

The URI must start with gs://.

bounding_polys: Vec<BoundingPoly>

Optional. Bounding polygons around the areas of interest in the reference image. If this field is empty, the system will try to detect regions of interest. At most 10 bounding polygons will be used.

The provided shape is converted into a non-rotated rectangle. Once converted, the small edge of the rectangle must be greater than or equal to 300 pixels. The aspect ratio must be 1:4 or less (i.e. 1:3 is ok; 1:5 is not).

Trait Implementations

impl Clone for ReferenceImage[src]

impl Debug for ReferenceImage[src]

impl Default for ReferenceImage[src]

impl Message for ReferenceImage[src]

impl PartialEq<ReferenceImage> for ReferenceImage[src]

impl StructuralPartialEq for ReferenceImage[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]