Ask Your Question

Revision history [back]

OpenCV-Python buld problem with HoughCircles function

the code is: hougharr=opencv.CreateMemStorage(0)#64k result=opencv.HoughCircles(edge,hougharr,opencv.CV_HOUGH_GRADIENT,2,edge.width/10)

and the error code is: TypeError: Argument 'circle_storage' must be CvMat. Use fromarray() to convert numpy arrays to CvMat

AND

the code is: hougharr=opencv.CreateMemStorage(0)#64k opencv.fromarray(hougharr) result=opencv.HoughCircles(edge,hougharr,opencv.CV_HOUGH_GRADIENT,2,edge.width/10)

and the error code is: TypeError: object does not have array interface

What should I do to correct the mistakes?

OpenCV-Python buld build problem with HoughCircles function

the The code is: is:

hougharr=opencv.CreateMemStorage(0)#64k
result=opencv.HoughCircles(edge,hougharr,opencv.CV_HOUGH_GRADIENT,2,edge.width/10)

result=opencv.HoughCircles(edge,hougharr,opencv.CV_HOUGH_GRADIENT,2,edge.width/10)

and the error code is: is:

TypeError: Argument 'circle_storage' must be CvMat. Use fromarray() to convert numpy arrays to CvMatCvMat

ANOTHER PROBLEM:

ANDThe code is:

the code is:

hougharr=opencv.CreateMemStorage(0)#64k
opencv.fromarray(hougharr)
result=opencv.HoughCircles(edge,hougharr,opencv.CV_HOUGH_GRADIENT,2,edge.width/10)

result=opencv.HoughCircles(edge,hougharr,opencv.CV_HOUGH_GRADIENT,2,edge.width/10)

and the error code is: is:

TypeError: object does not have array interface

interface

What should I do to correct the mistakes?