pub struct CropHint {
pub bounding_poly: Option<BoundingPoly>,
pub confidence: Option<f32>,
pub importance_fraction: Option<f32>,
}Expand description
Single crop hint that is used to generate a new crop when serving an image.
This type is not used in any activity, and only used as part of another schema.
Fields§
§bounding_poly: Option<BoundingPoly>The bounding polygon for the crop region. The coordinates of the bounding box are in the original image’s scale.
confidence: Option<f32>Confidence of this being a salient region. Range [0, 1].
importance_fraction: Option<f32>Fraction of importance of this salient region with respect to the original image.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CropHint
impl<'de> Deserialize<'de> for CropHint
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Part for CropHint
Auto Trait Implementations§
impl Freeze for CropHint
impl RefUnwindSafe for CropHint
impl Send for CropHint
impl Sync for CropHint
impl Unpin for CropHint
impl UnwindSafe for CropHint
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