feat: Added bounding-box crate
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user