refactor: replace bbox::BBox with bounding_box::Aabb2 across codebase
Some checks failed
build / checks-matrix (push) Has been cancelled
build / checks-build (push) Has been cancelled
build / codecov (push) Has been cancelled
docs / docs (push) Has been cancelled

This commit is contained in:
uttarayan21
2025-08-22 18:14:58 +05:30
parent 4b4d23d1d4
commit dab7719206
14 changed files with 587 additions and 363 deletions

View File

@@ -3,7 +3,7 @@
use super::codecs::CvDecoder;
use super::error::ErrorReason;
use crate::NdCvError;
use crate::{conversions::NdCvConversion, NdAsImage};
use crate::{NdAsImage, conversions::NdCvConversion};
use error_stack::*;
use ndarray::Array;
use std::path::Path;
@@ -51,3 +51,11 @@ where
Self::from_mat(input)
}
}
#[test]
fn decode_image() {
use crate::codec::codecs::*;
let img = std::fs::read("/Users/fs0c131y/Projects/face-detector/assets/selfie.jpg").unwrap();
let decoder = CvDecoder::Jpeg(CvJpegDecFlags::new().with_ignore_orientation(true));
let _out = ndarray::Array3::<u8>::decode(img, &decoder).unwrap();
}