Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed func name typo #1236

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion objdetect.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down
8 changes: 4 additions & 4 deletions objdetect_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ func TestFaceDetectorYN(t *testing.T) {
}
fd.SetInputSize(sz)

t1 := fd.GetMNSThreshold()
t1 := fd.GetNMSThreshold()
fd.SetNMSThreshold(t1)

t2 := fd.GetScoreThreshold()
Expand Down Expand Up @@ -272,7 +272,7 @@ func TestFaceDetectorYNWithParams(t *testing.T) {
}
fd.SetInputSize(sz)

t1 := fd.GetMNSThreshold()
t1 := fd.GetNMSThreshold()
fd.SetNMSThreshold(t1)

t2 := fd.GetScoreThreshold()
Expand Down Expand Up @@ -315,7 +315,7 @@ func TestFaceDetectorYNFromBytes(t *testing.T) {
}
fd.SetInputSize(sz)

t1 := fd.GetMNSThreshold()
t1 := fd.GetNMSThreshold()
fd.SetNMSThreshold(t1)

t2 := fd.GetScoreThreshold()
Expand Down Expand Up @@ -357,7 +357,7 @@ func TestFaceDetectorYNFromBytesWithParams(t *testing.T) {
}
fd.SetInputSize(sz)

t1 := fd.GetMNSThreshold()
t1 := fd.GetNMSThreshold()
fd.SetNMSThreshold(t1)

t2 := fd.GetScoreThreshold()
Expand Down
Loading