Move the yolo model bits in a separate file. (#602)

* Move the yolo model bits in a separate file.

* Improve the drawing.

* Bugfix.
This commit is contained in:
Laurent Mazare
2023-08-25 12:47:55 +01:00
committed by GitHub
parent 8bc5fffa45
commit 97909e5068
5 changed files with 806 additions and 749 deletions

View File

@ -6,7 +6,14 @@ pub struct Bbox {
pub xmax: f32,
pub ymax: f32,
pub confidence: f32,
pub keypoints: Vec<(f32, f32, f32)>,
pub keypoints: Vec<KeyPoint>,
}
#[derive(Debug, Clone, Copy, PartialEq)]
pub struct KeyPoint {
pub x: f32,
pub y: f32,
pub mask: f32,
}
/// Intersection over union of two bounding boxes.