Struct aws_sdk_rekognition::types::RegionOfInterest
source · #[non_exhaustive]pub struct RegionOfInterest {
pub bounding_box: Option<BoundingBox>,
pub polygon: Option<Vec<Point>>,
}Expand description
Specifies a location within the frame that Rekognition checks for objects of interest such as text, labels, or faces. It uses a BoundingBox or Polygon to set a region of the screen.
A word, face, or label is included in the region if it is more than half in that region. If there is more than one region, the word, face, or label is compared with all regions of the screen. Any object of interest that is more than half in a region is kept in the results.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.bounding_box: Option<BoundingBox>The box representing a region of interest on screen.
polygon: Option<Vec<Point>> Specifies a shape made up of up to 10 Point objects to define a region of interest.
Implementations§
source§impl RegionOfInterest
impl RegionOfInterest
sourcepub fn bounding_box(&self) -> Option<&BoundingBox>
pub fn bounding_box(&self) -> Option<&BoundingBox>
The box representing a region of interest on screen.
source§impl RegionOfInterest
impl RegionOfInterest
sourcepub fn builder() -> RegionOfInterestBuilder
pub fn builder() -> RegionOfInterestBuilder
Creates a new builder-style object to manufacture RegionOfInterest.
Trait Implementations§
source§impl Clone for RegionOfInterest
impl Clone for RegionOfInterest
source§fn clone(&self) -> RegionOfInterest
fn clone(&self) -> RegionOfInterest
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for RegionOfInterest
impl Debug for RegionOfInterest
source§impl PartialEq for RegionOfInterest
impl PartialEq for RegionOfInterest
source§fn eq(&self, other: &RegionOfInterest) -> bool
fn eq(&self, other: &RegionOfInterest) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for RegionOfInterest
Auto Trait Implementations§
impl RefUnwindSafe for RegionOfInterest
impl Send for RegionOfInterest
impl Sync for RegionOfInterest
impl Unpin for RegionOfInterest
impl UnwindSafe for RegionOfInterest
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Creates a shared type from an unshared type.