Opencv_contrib: SURF setHessianThreshold Read-Only?

Created on 11 Sep 2015  路  1Comment  路  Source: opencv/opencv_contrib

I get the following when I attempt to set a Hessian Threshold:

>>> cv2.__version__
'3.0.0'
>>> img = cv2.imread('fly.png',0)
>>> surf = cv2.xfeatures2d.SURF_create(400)
>>> surf.setHessianThreshold = 500
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: 'cv2.xfeatures2d_SURF' object attribute 'setHessianThreshold' is read-only

I'm new to OpenCV, so it could be user error, but I'm not seeing anything about this online.

Thanks.

invalid

Most helpful comment

Figured it out... Needed to use surf.setHessianThreshold(500)

>All comments

Figured it out... Needed to use surf.setHessianThreshold(500)

Was this page helpful?
0 / 5 - 0 ratings