Ask Your Question

Revision history [back]

object has no attribute 'DIST_L2'

When I run the example of Image Segmentation with Watershed Algorithm(link is listed below), this has error "object has no attribute 'DIST_L2'" dist_transform = cv2.distanceTransform(opening, cv2.DIST_L2, 5)

What's wrong with it? Thanks

http://docs.opencv.org/trunk/doc/py_tutorials/py_imgproc/py_watershed/py_watershed.html#image-segmentation-with-watershed-algorithm