SHORT
You need to have the same version in opencv and opencv_contrib (... / opencv_contrib / modules / ... belongs to an independent repo).
Either the same release, or the last commit in the BOTH repositories.
Check which version you have and move the other one. In your case, I think you need to change the version of opencv_contrib and then go to the release using git or download it from github .
git checkout <number_opencv_version ie 3.2.0>
Long
I think Ken Lee that you do not have the same version in the repositories.
As Matt mentioned in the open problem , there is a problem with calling ocv_download because the version is not the one that was used when opencv-3.1, so it fails because the parameter is not expected.
This happens to me when I used opencv 3.1.0 and the latest version of opencv_contrib. You can change the cmake files one by one, but itโs easier to get the correct version in each repo.
source share