0

I need to run the code on this repository: https://github.com/KirillLykov/oni2avi

I have OpenCV 3.1.0 installed.

When I build the code with cmake, I get the following error:

"opencv_contrib is required but was not found"

How can I solve this problem?

usr1234567
  • 21,601
  • 16
  • 108
  • 128
yusuf
  • 3,591
  • 8
  • 45
  • 86
  • For those who will have problems with this code on github and read this post - try opening an issue on the project page, may be I will help you. – Kirill Lykov Dec 19 '16 at 14:11

2 Answers2

1

Download opencv_contrib from github and in cmake set variable OPENCV_EXTRA_MODULES_PATH to FullPathOPENCVCONTRIB/modules. rebuild opencv

If it does not work you can try to delete contrib dependancy in CMakelists.txt :

find_package(OpenCV COMPONENTS core highgui video imgproc contrib REQUIRED)

LBerger
  • 593
  • 2
  • 12
1

After getting extra modules for OpenCV from contrib repository, change

find_package(OpenCV COMPONENTS core highgui video imgproc contrib REQUIRED)

to

find_package(OpenCV COMPONENTS core highgui video imgproc rgbd REQUIRED)
Tunaki
  • 132,869
  • 46
  • 340
  • 423
Nana
  • 26
  • 1