diff --git a/objdetect.go b/objdetect.go index 9a18d38e..5b78186d 100644 --- a/objdetect.go +++ b/objdetect.go @@ -398,7 +398,7 @@ func (fd *FaceDetectorYN) GetInputSize() image.Point { return image.Pt(int(sz.width), int(sz.height)) } -func (fd *FaceDetectorYN) GetMNSThreshold() float32 { +func (fd *FaceDetectorYN) GetNMSThreshold() float32 { t := C.FaceDetectorYN_GetNMSThreshold(fd.p) return float32(t) } diff --git a/objdetect_test.go b/objdetect_test.go index a3a33962..33ecf5da 100644 --- a/objdetect_test.go +++ b/objdetect_test.go @@ -235,7 +235,7 @@ func TestFaceDetectorYN(t *testing.T) { } fd.SetInputSize(sz) - t1 := fd.GetMNSThreshold() + t1 := fd.GetNMSThreshold() fd.SetNMSThreshold(t1) t2 := fd.GetScoreThreshold() @@ -272,7 +272,7 @@ func TestFaceDetectorYNWithParams(t *testing.T) { } fd.SetInputSize(sz) - t1 := fd.GetMNSThreshold() + t1 := fd.GetNMSThreshold() fd.SetNMSThreshold(t1) t2 := fd.GetScoreThreshold() @@ -315,7 +315,7 @@ func TestFaceDetectorYNFromBytes(t *testing.T) { } fd.SetInputSize(sz) - t1 := fd.GetMNSThreshold() + t1 := fd.GetNMSThreshold() fd.SetNMSThreshold(t1) t2 := fd.GetScoreThreshold() @@ -357,7 +357,7 @@ func TestFaceDetectorYNFromBytesWithParams(t *testing.T) { } fd.SetInputSize(sz) - t1 := fd.GetMNSThreshold() + t1 := fd.GetNMSThreshold() fd.SetNMSThreshold(t1) t2 := fd.GetScoreThreshold()