OpenCV 3.0.0 (June 2015) built from source on Ubuntu 14.04:
import cv2
# Initiate STAR detector
orb = cv2.ORB_create()
# find the keypoints with ORB
keypoints = orb.detect(image_bgr, None)
# compute the descriptors with ORB
keypoints, descriptors = orb.compute(image_bgr, keypoints)
I've read that the patented algorithms like SURF, etc. are now in the xfeatures module that must be built separately from opencv_contrib. But they also use the new DETECTORNAME_create()
syntax, like cv2.xfeatures.SURF_create()
.