Struct google_vision1::api::ReferenceImage
source · pub struct ReferenceImage {
pub bounding_polys: Option<Vec<BoundingPoly>>,
pub name: Option<String>,
pub uri: Option<String>,
}
Expand description
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).
- locations products reference images create projects (request|response)
- locations products reference images get projects (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§
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