【发布时间】:2019-04-21 02:17:25
【问题描述】:
我很困惑如何在 openCV Python 中使用广义霍夫变换。当我使用灰度图像的 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)
【问题讨论】: