Ask Your Question

object has no attribute 'DIST_L2'

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

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

edit retag flag offensive close merge delete


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 -0500 )edit

1 answer

Sort by ยป oldest newest most voted

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

dcconner gravatar image

See answer on question 91808 with older OpenCV installations such as 2.4.8

edit flag offensive delete link more

Question Tools


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

Seen: 1,042 times

Last updated: Apr 04 '16