feat: output aabbs from retinaface
This commit is contained in:
@@ -14,7 +14,7 @@ pub fn main() -> Result<()> {
|
||||
match args.cmd {
|
||||
cli::SubCommand::Detect(detect) => {
|
||||
use detector::facedet;
|
||||
let model = facedet::FaceDetection::new_from_bytes(RETINAFACE_MODEL)
|
||||
let model = facedet::retinaface::FaceDetection::new_from_bytes(RETINAFACE_MODEL)
|
||||
.change_context(errors::Error)
|
||||
.attach_printable("Failed to create face detection model")?;
|
||||
let image = image::open(detect.image).change_context(Error)?;
|
||||
@@ -27,7 +27,9 @@ pub fn main() -> Result<()> {
|
||||
.detect_faces(array)
|
||||
.change_context(errors::Error)
|
||||
.attach_printable("Failed to detect faces")?;
|
||||
output.print(20);
|
||||
// output.print(20);
|
||||
let aabbs = output.postprocess(Default::default());
|
||||
dbg!(aabbs);
|
||||
}
|
||||
cli::SubCommand::List(list) => {
|
||||
println!("List: {:?}", list);
|
||||
|
||||
Reference in New Issue
Block a user