我有些困惑如何在openCV Python中使用广义Hough变换。当我使用灰度图像的ROI设置模板时,它显示了以下错误:
Incorrect type of self (must be 'GeneralizedHough' or its derivative)
这是我的示例代码:
alg = cv.GeneralizedHoughGuil()
# Simple create template with 1 channel black images with size 5x5
template = np.zeros((5,5))
alg.setTemplate(template)