Ask Your Question

Revision history [back]

Template for Generalized Hough Transform

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))
alg.setTemplate(template)