feat: Added a manual implementation of nms
This commit is contained in:
@@ -27,7 +27,9 @@ pub fn main() -> Result<()> {
|
||||
let output = model
|
||||
.detect_faces(
|
||||
array.clone(),
|
||||
FaceDetectionConfig::default().with_threshold(detect.threshold),
|
||||
FaceDetectionConfig::default()
|
||||
.with_threshold(detect.threshold)
|
||||
.with_nms_threshold(detect.nms_threshold),
|
||||
)
|
||||
.change_context(errors::Error)
|
||||
.attach_printable("Failed to detect faces")?;
|
||||
|
||||
Reference in New Issue
Block a user