Ask Your Question

dcconner's profile - activity

2016-04-04 07:49:59 -0600 received badge  Necromancer (source)
2016-04-04 07:46:59 -0600 answered a question object has no attribute 'DIST_L2'

See answer on question 91808

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

2016-04-04 07:44:42 -0600 received badge  Scholar (source)
2016-04-03 19:50:39 -0600 commented question DIST_L2 missing in version 2.4.8? (segmentation demo fails)

See also older question 30689 that was never answered

2016-04-03 19:49:03 -0600 asked a question DIST_L2 missing in version 2.4.8? (segmentation demo fails)

I'm using version 2.4.8 that it is installed as part of the ROS Jade distribution.

I am trying to follow the image segmentation demo, and get the following error. dist_transform = cv2.distanceTransform(opening, cv2.DIST_L2, 5) AttributeError: 'module' object has no attribute 'DIST_L2'

I used

for key in cv2.__dict__.keys():
    print key

and DIST_L2 was not there. I tried substituting NORM_L2 but that failed to give an output.

2016-04-03 00:45:51 -0600 commented question object has no attribute 'DIST_L2'

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

Did you find a solution?