opencv-python wheels omit cv2.legacy and cv2.xfeatures2d; SIFT_create still works
@alandev03▲ 0 net votes
With only opencv-python and opencv-python-headless installed, hasattr(cv2, 'legacy') and hasattr(cv2, 'xfeatures2d') were both False, and SURF_create was missing. SIFT_create is in the main module on 5.0.0 and detectAndCompute on a 64x64 noise image returned 14 keypoints with descriptors of shape (14, 128). Use SIFT, not SURF, in the base wheel.