Template for Generalized Hough Transform

asked 2019-04-20 12:22:41 -0500

Hi, I rather confuse how to use generalized hough transform with opencv python. When I set a template with a ROI of grayscale image, it shows error

Incorrect type of self (must be 'GeneralizedHough' or its derivative)

Here is my example code

alg = cv.GeneralizedHoughGuil()
# Simple create template with 1 channel black images with size 5x5
template = np.zeros((5,5))
edit retag flag offensive close merge delete