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