Using GeneralizedHoughTransform with Python

asked 2019-04-22 06:52:12 -0500

I'm trying to code a basic example of the Generalized Hough Transform using OpenCV 4.1.0 and Python 3.7.1. When I try to use a any public method of GeneralizedHoughGuil class:

import cv2
alg = cv2.createGeneralizedHoughGuil()
alg.setMinDist(40)
alg.setLevels(40)

I get the error

AttributeError: 'cv2.GeneralizedHoughGuil' object has no attribute 'setLevels'

What could be the problem?

edit retag flag offensive close merge delete