Ask Your Question
0

object has no attribute 'DIST_L2'

asked 2014-03-26 21:24:11 -0600

Dong gravatar image

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

edit retag flag offensive close merge delete

Comments

I see same issue with OpenCV version 2.4.8 distributed with ROS Jade.

Did you find a solution?

dcconner gravatar imagedcconner ( 2016-04-02 20:04:23 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
1

answered 2016-04-04 07:46:59 -0600

dcconner gravatar image

See answer on question 91808

cv2.cv.CV_DIST_L2 with older OpenCV installations such as 2.4.8

edit flag offensive delete link more

Question Tools

Stats

Asked: 2014-03-26 21:24:11 -0600

Seen: 1,367 times

Last updated: Apr 04 '16