广义Hough变换OpenCV Python的模板

问题描述 投票:0回答:1

我宁愿混淆如何使用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)
opencv hough-transform
1个回答
0
投票

据我所知,在这种情况下唯一的出路是使用CV_EXPORTS_W和CV_WRAP指令重建OpenCV。 answers.opencv topic

最新问题
© www.soinside.com 2019 - 2024. All rights reserved.