#[non_exhaustive]pub struct ReferenceImage {
pub name: String,
pub uri: String,
pub bounding_polys: Vec<BoundingPoly>,
/* private fields */
}Expand description
A ReferenceImage represents a product image and its associated metadata,
such as bounding boxes.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: StringThe 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: StringRequired. 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).
Implementations§
Source§impl ReferenceImage
impl ReferenceImage
pub fn new() -> Self
Sourcepub fn set_bounding_polys<T, V>(self, v: T) -> Self
pub fn set_bounding_polys<T, V>(self, v: T) -> Self
Sets the value of bounding_polys.
Trait Implementations§
Source§impl Clone for ReferenceImage
impl Clone for ReferenceImage
Source§fn clone(&self) -> ReferenceImage
fn clone(&self) -> ReferenceImage
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more