First time here? Check out the FAQ!
answered 2018-06-14 16:36:40 -0600
Just for clarity, after you clone opencv contrib as @LBerger recommended, you have to rebuild opencv with the -D OPENCV_EXTRA_MODULES_PATH=<opencv_contrib>/modules option, when running cmake.