Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork56.4k
fix findContours in SimpleBlobDetector#24433
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:4.x
Are you sure you want to change the base?
Uh oh!
There was an error while loading.Please reload this page.
Conversation
| minConvexity (inclusive) and maxConvexity (exclusive). | ||
| Default values of parameters are tuned to extract dark circular blobs. | ||
| @note Don't disable the param filterByArea with dark blobs and white backgound, findContours() find extra contour in this case. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
I propose to extract parameters description from brief section and move to each parameter. It fixes doxygen documentation and add help messages to IDE. Also I propose to rephrase the sentence: "filterByArea should be true for black blobs on white background as findContours expects background to be black and adds extra contours for the case."
| The function retrieves contours from the binary image using the algorithm @cite Suzuki85 . The contours | ||
| are a useful tool for shape analysis and object detection and recognition. See squares.cpp in the | ||
| OpenCV sample directory. | ||
| OpenCV sample directory, tutorial @ref tutorial_py_contours_begin} or @ref tutorial_find_contours. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
extra } in the reference.
| @note In OpenCV, finding contours is like finding white object from black background. So remember, | ||
| object to be found should be white and background should be black. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
I propose to remove note and extend function description:
Non-zero pixels are treated as 1's. Zeropixels remain 0's, so the image is treated as binary.Zero values (black color) is used as background.asmorkalov commentedNov 9, 2023
@AleksandrPanov Friendly reminder. |
AleksandrPanov commentedNov 16, 2023
AleksandrPanov commentedNov 16, 2023
|


Uh oh!
There was an error while loading.Please reload this page.
commented problem from#24388
TODO: need to fix a bug
Pull Request Readiness Checklist
See details athttps://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request
Patch to opencv_extra has the same branch name.