broken(retinaface): Added drawing for bounding box

This commit is contained in:
uttarayan21
2025-08-05 02:10:14 +05:30
parent 9fd0993cc3
commit 74c603dc37
4 changed files with 26 additions and 20 deletions

View File

@@ -235,12 +235,13 @@ impl<T: Num, const D: usize> AxisAlignedBoundingBox<T, D> {
}
impl<T: Num> Aabb2<T> {
pub fn from_x1y1x2y2(x1: T, x2: T, y1: T, y2: T) -> Self
pub fn from_x1y1x2y2(x1: T, y1: T, x2: T, y2: T) -> Self
where
T: core::ops::SubAssign,
{
let point1 = Point2::new(x1, y1);
let point2 = Point2::new(x2, y2);
dbg!(point1, point2);
Self::from_min_max_vertices(point1, point2)
}
pub fn new_2d(point1: Point2<T>, point2: Point2<T>) -> Self