Ask Your Question
0

install contrib_master modules in openCV 3.1.0

asked 2016-07-02 00:55:38 -0600

trav gravatar image

updated 2016-07-02 00:57:02 -0600

I am looking for clear instructions from someone how to configure this properly and with success. I have the master_contrib folder on my desktop and the standard openCV 3.1.0 located on my desktop as well. How do I successfully add the master_contrib modules to the standard openCV folder? I am using Mac OSX

edit retag flag offensive close merge delete

Comments

Here you go, courtesy of berak: http://answers.opencv.org/question/97...

atv gravatar imageatv ( 2016-07-02 04:54:12 -0600 )edit

What IDE are you using? It is way easier than most make it. Build with Cmake, configure usr and local folders in Xcode, copy paste files from the build/lib folder into Xcode. Done, no MacPorts or Homebrew needed.

jmbapps gravatar imagejmbapps ( 2016-07-02 08:20:06 -0600 )edit

You can use brew for the whole thing.

visit: http://www.learnopencv.com/install-op...

Also please read the comments section for any issues.

if you insist on building from source. You need absolute path to opencv_contrib for this setting:

-D OPENCV_EXTRA_MODULES_PATH=absolute-path-to-desktop/opencv_contrib/modules

EdwinS gravatar imageEdwinS ( 2016-07-02 09:08:25 -0600 )edit

You can use brew, i used it, but even with the opencv_contrib option i only got a subset of modules installed. I had to compile it from source.

atv gravatar imageatv ( 2016-07-03 02:50:07 -0600 )edit

@jmbapps I'm using Qt, I have Cmake etc

Alright thanks guys I'm still pluging away at this reading etc.

trav gravatar imagetrav ( 2016-07-03 22:40:46 -0600 )edit

UPDATE:

I have added the modules via copy and paste from the opencv_contrib_master to the openCv 3.1.0 original photo but when I go into opencv/build/lib folder and look at all my modules I don't see any of my modules I want from opencv_contrib_master this is essentially all I need to figure out and everything will be working fine, if someone can kindly explain how to get these extra modules in here clearly and clean that'll be great and I'm sure ill be on my way just going in circles here with this

trav gravatar imagetrav ( 2016-07-04 23:55:04 -0600 )edit

2 answers

Sort by » oldest newest most voted
0

answered 2016-07-06 00:48:46 -0600

trav gravatar image

Travis's easy as pie method to keep your hair enact..

Re-install up to date openCV main folder via zip etc..

download the opencv_contrib_master ( 3rd party )

create build folder inside openCV main

copy all modules from contrib folder and paste them into our main openCV

run Cmake as per normal (GUI WAY) have source code of main openCV and create build binaries in our build folder we created

Finished, breath

This seems to work if I encounter any problems I will update this answer but as of now its working, this was way more complicated then it should have ever been or made to seem, this is blatantly simple don't overthink it like I did please

edit flag offensive delete link more

Comments

Fine job! No MacPorts or Homebrew needed. Excellent!

jmbapps gravatar imagejmbapps ( 2016-07-06 07:54:28 -0600 )edit
0

answered 2016-07-04 15:12:03 -0600

jmbapps gravatar image

updated 2016-07-05 07:14:16 -0600

The key in Xcode is to configure your Search Paths correctly. QT looks similar to Xcode so maybe this will help. In the build/lib folder none of these libraries are added with CMake build, so I just copy/paste those lib's from CMake build into project. Here are some pics of the Header and Library Search Paths config and where I add libraries with copy/paste. Hope this helps. I suppose I could have grouped all the lib's in a folder to make it neater...but I add a little chaos on purpose to break my OCD habit of over organizing. ;o) Search Paths

Lib's not added at build

edit flag offensive delete link more

Comments

Hey thanks for your input. I understand the logic behind this and yes they are very similar with slight differences but that major problem I am having is a clear defined way how to add extra modules that are not the standard modules with openCV 3.1.0 rather I want the opencv contrib_master which is different in the sense of adding modules to the actual opencv

trav gravatar imagetrav ( 2016-07-04 23:51:52 -0600 )edit

Anytime! Sorry it didnt help much. Good luck! I just built the Mac/Linux framework with CMake. Never tried to build the contrib_master.

jmbapps gravatar imagejmbapps ( 2016-07-05 07:13:32 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2016-07-02 00:55:38 -0600

Seen: 1,603 times

Last updated: Jul 06 '16