Skip to content

Commit

Permalink
fixed func name typo (#1236)
Browse files Browse the repository at this point in the history
objdetect: fixed func name typo
  • Loading branch information
diegohce authored Oct 3, 2024
1 parent 455063d commit bfb119b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
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

0 comments on commit bfb119b

Please sign in to comment.