What does cvHoughCircle return if no circle is detected. I want to use it in a if condition.. And if no circle is detected.. hard code it.
Thanks!
What does cvHoughCircle return if no circle is detected. I want to use it
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The C++ function
cv::HoughCircleshas a void return.In the example from the OpenCV documentation, they use the value of
circles.size()to know how many circles were found. (circlesis the second argument toHoughCircles, where the output is stored.)However, if you really want to use the C
cvHoughCircles, it returns a pointer to aCvSeq(documentation). You can check it’s->totalmember to see how many circles were returned.