Struct aws_sdk_rekognition::types::Point
source · #[non_exhaustive]pub struct Point {
pub x: Option<f32>,
pub y: Option<f32>,
}
Expand description
The X and Y coordinates of a point on an image or video frame. The X and Y values are ratios of the overall image size or video resolution. For example, if an input image is 700x200 and the values are X=0.5 and Y=0.25, then the point is at the (350,50) pixel coordinate on the image.
An array of Point
objects makes up a Polygon
. A Polygon
is returned by DetectText
and by DetectCustomLabels
Polygon
represents a fine-grained polygon around a detected item. For more information, see Geometry in the Amazon Rekognition Developer Guide.
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.x: Option<f32>
The value of the X coordinate for a point on a Polygon
.
y: Option<f32>
The value of the Y coordinate for a point on a Polygon
.
Implementations§
Trait Implementations§
source§impl PartialEq<Point> for Point
impl PartialEq<Point> for Point
impl StructuralPartialEq for Point
Auto Trait Implementations§
impl RefUnwindSafe for Point
impl Send for Point
impl Sync for Point
impl Unpin for Point
impl UnwindSafe for Point
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