how can i setup open cv in matlab 2014 a when getting these errors?

I'm using Windows 7 (64bit) with Matlab R2014a and I'm trying to use OpenCV 3.1.0 functions in Matlab.
I first did mex -setup, then I chose the compiler 'Microsoft Windows SDK 7.1 (C++)' (detected by Matlab after patching it), added mexopencv folder and subfolders to path and finally run mexopencv.make.
the following error appears:
Error using mexopencv.make>pkg_config (line 316)
OpenCV library path not found: C:\opencv\build\x64\vc10\lib
Error in mexopencv.make>mex_options (line 256)
[cv_cflags, cv_libs] = pkg_config(opts);
Error in mexopencv.make (line 81)
mex_flags = mex_options(opts);
I also tried with OpenCV 2.9.0 but the error remains same
My OpenCV folder contain following folders in the C:\opencv\build\x64
vc12
vc14
Please help me
thanks

4 Comments

Which interface package are you using? I see several in the File Exchange, some of which are R2014b or later, some of which are R2010b
i am using R2014a i tried open cv interface but it is compatible on with matlab R 2015
Did you create you own .h file and try to use loadlibrary() ? Did you download someone's mex routines to use as the interface to OpenCV ? The official Mathworks OpenCV interface was not available in R2014a so it is not possible for you to be using that. Are you using one of the File Exchange contributions?
Is it https://github.com/kyamagu/mexopencv that you are using?
i did use mexopencv and added itno path but after that only getting the same errors so i uninstalled r2014a and installed r2014b using it with opencv interface.

Sign in to comment.

Answers (0)

Asked:

on 24 Jun 2017

Commented:

on 5 Jul 2017

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!