refactor: replace bbox::BBox with bounding_box::Aabb2 across codebase
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user