-
Notifications
You must be signed in to change notification settings - Fork 867
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
Fix the problem that the non-maximum suppression return position is 0 #999
base: release
Are you sure you want to change the base?
Conversation
…ramsStream Signed-off-by: deadprogram <[email protected]>
For the same target, when the length of boxes and indices is 2, after the NMSBoxes method, the length of the returned indices is also 2, and the values in the indices are all 0. At this time, one of the boxes cannot be removed, and the appropriate target detection is retained. frame, so return the length of indicesVector to extract a suitable target detection frame |
Hello @Hexert thanks for looking into this. Seems to me the correct solution is to set the size/values of the slice returned with For example: ...
indices = make([]int, indicesVector.length)
for i := 0; i < int(indicesVector.length); i++ {
indices[i] = int(ptr[i])
}
return Generally speaking we almost never add another param to a function signature that does not exist in the OpenCV function itself. The same solution would also be needed for Also, the branch for PRs is normally against |
Cuda convert to params
No description provided.