[][src]Struct google_vision1::ReferenceImage

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

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

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).

Fields

bounding_polys: Option<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).

name: Option<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: Option<String>

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

The URI must start with gs://.

Trait Implementations

impl Clone for ReferenceImage[src]

impl Debug for ReferenceImage[src]

impl Default for ReferenceImage[src]

impl<'de> Deserialize<'de> for ReferenceImage[src]

impl RequestValue for ReferenceImage[src]

impl ResponseResult for ReferenceImage[src]

impl Serialize 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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

impl<T, U> Into<U> for T where
    U: From<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<T> Typeable for T where
    T: Any