feat: Added bounding-box crate

This commit is contained in:
uttarayan21
2025-07-15 18:53:16 +05:30
parent 69c768ab0d
commit dc61c6045a
17 changed files with 2848 additions and 27 deletions

View File

@@ -19,12 +19,15 @@ pub fn main() -> Result<()> {
.attach_printable("Failed to create face detection model")?;
let image = image::open(detect.image).change_context(Error)?;
let image = image.into_rgb8();
let array = image.into_ndarray()
let array = image
.into_ndarray()
.change_context(errors::Error)
.attach_printable("Failed to convert image to ndarray")?;
model.detect_faces(array)
let output = model
.detect_faces(array)
.change_context(errors::Error)
.attach_printable("Failed to detect faces")?;
output.print(20);
}
cli::SubCommand::List(list) => {
println!("List: {:?}", list);