Skip to content
Open
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 main.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ func main() {
// Only Apply NMS when there are at least one box
indices := make([]int, len(boxes))
if len(boxes) > 0 {
gocv.NMSBoxes(boxes, confidences, float32(*threshold), float32(*nms), indices)
indices = gocv.NMSBoxes(boxes, confidences, float32(*threshold), float32(*nms))
}

// Resize indices to only include those that have values other than zero
Expand Down