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.