#[non_exhaustive]pub struct WebDetection {
pub web_entities: Vec<WebEntity>,
pub full_matching_images: Vec<WebImage>,
pub partial_matching_images: Vec<WebImage>,
pub pages_with_matching_images: Vec<WebPage>,
pub visually_similar_images: Vec<WebImage>,
pub best_guess_labels: Vec<WebLabel>,
/* private fields */
}Expand description
Relevant information for the image from the Internet.
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.web_entities: Vec<WebEntity>Deduced entities from similar images on the Internet.
full_matching_images: Vec<WebImage>Fully matching images from the Internet. Can include resized copies of the query image.
partial_matching_images: Vec<WebImage>Partial matching images from the Internet. Those images are similar enough to share some key-point features. For example an original image will likely have partial matching for its crops.
pages_with_matching_images: Vec<WebPage>Web pages containing the matching images from the Internet.
visually_similar_images: Vec<WebImage>The visually similar image results.
best_guess_labels: Vec<WebLabel>The service’s best guess as to the topic of the request image. Inferred from similar images on the open web.
Implementations§
Source§impl WebDetection
impl WebDetection
pub fn new() -> Self
Sourcepub fn set_web_entities<T, V>(self, v: T) -> Self
pub fn set_web_entities<T, V>(self, v: T) -> Self
Sets the value of web_entities.
Sourcepub fn set_full_matching_images<T, V>(self, v: T) -> Self
pub fn set_full_matching_images<T, V>(self, v: T) -> Self
Sets the value of full_matching_images.
Sourcepub fn set_partial_matching_images<T, V>(self, v: T) -> Self
pub fn set_partial_matching_images<T, V>(self, v: T) -> Self
Sets the value of partial_matching_images.
Sourcepub fn set_pages_with_matching_images<T, V>(self, v: T) -> Self
pub fn set_pages_with_matching_images<T, V>(self, v: T) -> Self
Sets the value of pages_with_matching_images.
Sourcepub fn set_visually_similar_images<T, V>(self, v: T) -> Self
pub fn set_visually_similar_images<T, V>(self, v: T) -> Self
Sets the value of visually_similar_images.
Sourcepub fn set_best_guess_labels<T, V>(self, v: T) -> Self
pub fn set_best_guess_labels<T, V>(self, v: T) -> Self
Sets the value of best_guess_labels.
Trait Implementations§
Source§impl Clone for WebDetection
impl Clone for WebDetection
Source§fn clone(&self) -> WebDetection
fn clone(&self) -> WebDetection
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more