[][src]Struct tensorflow_proto::tflite::evaluation::object_detection_result::object_instance::NormalizedBoundingBox

pub struct NormalizedBoundingBox {
    pub normalized_top: Option<f32>,
    pub normalized_bottom: Option<f32>,
    pub normalized_left: Option<f32>,
    pub normalized_right: Option<f32>,
}

Defines the bounding box for a detected object. Next ID: 5

Fields

normalized_top: Option<f32>

All boundaries defined below are required. Each boundary value should be normalized with respect to the image dimensions. This helps evaluate detections independent of image size. For example, normalized_top = top_boundary / image_height.

normalized_bottom: Option<f32>normalized_left: Option<f32>normalized_right: Option<f32>

Implementations

impl NormalizedBoundingBox[src]

pub fn normalized_top(&self) -> f32[src]

Returns the value of normalized_top, or the default value if normalized_top is unset.

pub fn normalized_bottom(&self) -> f32[src]

Returns the value of normalized_bottom, or the default value if normalized_bottom is unset.

pub fn normalized_left(&self) -> f32[src]

Returns the value of normalized_left, or the default value if normalized_left is unset.

pub fn normalized_right(&self) -> f32[src]

Returns the value of normalized_right, or the default value if normalized_right is unset.

Trait Implementations

impl Clone for NormalizedBoundingBox[src]

impl Debug for NormalizedBoundingBox[src]

impl Default for NormalizedBoundingBox[src]

impl Message for NormalizedBoundingBox[src]

impl PartialEq<NormalizedBoundingBox> for NormalizedBoundingBox[src]

impl StructuralPartialEq for NormalizedBoundingBox[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.