Ask Your Question
0

Sample requires nonfree module to run

asked 2017-04-07 03:43:31 -0500

rabi gravatar image

updated 2018-10-20 20:41:54 -0500

Hi , I am try to match object using Features2D + Homography module. and try to run the code from opencv documentation . Here is that

But error code is showing as "The sample requires nonfree module that is not available in your OpenCV distribution I have downloaded opencv 3.1 with contrib on ubuntu 16.04 OS

Please tell how to run the code .

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2017-04-07 03:52:36 -0500

updated 2017-04-07 03:55:33 -0500

In OpenCV 3, the nonfree modules are in opencv_contrib repository. You will thus need to build OpenCV from scratch if you actually want that functionality and activate the opencv_xfeatures2d module. Take a look at this installation tutorial on how to do so.

Also you should use the tutorials in the OpenCV 3 documentation, because using feature detectors has changed quite a bit, using a more uniform interface. Take a look here: http://docs.opencv.org/master/d7/dff/...

edit flag offensive delete link more

Comments

1

I have already installed opencv in same manner as the above tutorial . However your code is working fine

rabi gravatar imagerabi ( 2017-04-07 04:17:16 -0500 )edit
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2017-04-07 03:43:31 -0500

Seen: 406 times

Last updated: Apr 07 '17