Tell me more ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

I am trying to detect circle in a image using opencv python using the follwoing code:

    circles = cv2.HoughCircles(frame, cv2.cv.CV_HOUGH_GRADIENT, 2, 10, np.array([]), 20, 60, width/10)[0]

The type of frane is:

<iplimage(nChannels=1 width=1280 height=720 widthStep=1280 )>

When I am running this code, getting the following error:

circles = cv2.HoughCircles(frame, cv2.cv.CV_HOUGH_GRADIENT, 2, 10, np.array([]), 20, 60, width/10)[0]
TypeError: image is not a numpy array, neither a scalar

Any suggestion from my friends? Thank you inadvance

share|improve this question

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.