From 076bf44d40302e682c9be655d0770068c48dcd3c Mon Sep 17 00:00:00 2001 From: diegohce Date: Thu, 3 Oct 2024 11:46:09 -0300 Subject: [PATCH 1/2] fixed func name typo --- objdetect.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) } From 42e9139e4b193fb946807abec782d6609821762b Mon Sep 17 00:00:00 2001 From: diegohce Date: Thu, 3 Oct 2024 11:52:13 -0300 Subject: [PATCH 2/2] fixed func name typo in tests --- objdetect_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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()