I have OpenCV 3.0.0 configured on Visual Studio 2013.
It gives the error :
'Cannot open source file "opencv2/face.hpp'
Does it not come with pre-built library in opencv 3.0.0?
So how shall I solve the problem?
Face Recognition is an extra module and not included as standard with OpenCV.
The repo for all the extra modules can be found here:
https://github.com/itseez/opencv_contrib
You can rebuild OpenCV and include it along with any other extra modules you need, instructions are given in the readme.
Related
I am a beginner in OpenCV2.3 on Windows7 and Visual Studio2010 and finding a tough time(confused rather due to several version available in google) in installing the blob library. I am aware that there are several posts on SO itself dealing with this question. So, kindly bear with this question. These are the steps that I did.
Downloaded the library from Grossman's blob detection library
Extracted the zipped folder
Created a New Visual Studio 2010 blank project C:\Users\Admin\Documents\Visual Studio 2010\Projects\Blob after reading Link1
Copied the two .cpp files from Step(1) under Source folder and copied the include.h under Header folder in VS2010. Then, I included the Additional Libraries and Other Dependencies which we normally do to run any OpenCV program.
This is where I am lost >> Followed Link2. In my version of Cmake2.8.7 under Where is the source code I have C:/OpenCV2.3/opencv/opencv and under Where to build libraries, I have C:/Users/Shreya/Downloads/OpenCV2.3. What should be done now?
Would be highly grateful for a detailed explanation.
Recently I decided to make a switch from OpenCV 2.1 to Opencv 2.4. I am having problems in configuring it with opencv. The details are as follows:-
Installed and extracted opencv in folder( opencv2.4).
Created a new folder "BIN" inside (opencv2.4). Used CMAKE to extract all data in BIN.
While using CMAKE I did not select QT, TBB, IPP options.
I added path to System environment i.e. C:\opencv2.4\build\x64\vc10\bin;
I used the solution in "BIN" folder and compiled first with Debug and then with Release options.
Now I started a new VS2010 project.
In project properties; C++ -> General
In project properties;Linker-> General I did
In project properties;Linker-> Input I did
I finally copied all .dll files in my debug folder.
When I run program, I am getting following error.
I dont know what wrong I am doing. Somehow I think I am not linking the library properly. Plz guide me in this regard . . .
There are extensive tutorials coming with the official OpenCV installation. They explain in great detail, with a lot of screenshots, how you configure Visual Studio with OpenCV. You can read the documentation online. I'll link the two tutorials relevant to this question:
Installation in Windows
http://docs.opencv.org/doc/tutorials/introduction/windows_install/windows_install.html
How to build applications with OpenCV inside the Microsoft Visual Studio
http://docs.opencv.org/doc/tutorials/introduction/windows_visual_studio_Opencv/windows_visual_studio_Opencv.html
You miss the opencv_legacy242.. lib. Add it and try again. Some functionality has moved to legacy in latest release
You may also try follow videos on this subject. They help a lot. Those from a reliable source of course. I know there's one on opencv.org website.
I am trying to use the gloox library (C++) to create a Windows XMPP application. It seems simple enough, except I don't know how to import gloox into Visual Studio 2010 so I can include it in my application project.
I've looked at the instructions provided in the read-me (shown below), but when I try to compile the library, I get this error:
Cannot open source file: 'src\tlsgnutlsserver.cpp': No such file or directory
Instructions provided in the read-me file:
Building gloox on MSVC++
use the included project file or create your own
adjust include + library paths if necessary
to receive any debug output you should use the LogSink facilities (this is not win32-specific)
build
Does anyone have experience using Gloox with VS10? If yes, can you please help me out? Thanks!
I assume you're using the official 1.0 tarball? I had the same problem (missing source file) and had to acquire the source from SVN instead. I used the 1.0 branch.
I encountered a few other build problems, namely
the release build configuration was set to build an Application (.exe) instead of Dynamic library (.dll) (Project->Properties->General->Configuration Type)
I needed to add DLL_EXPORT to the preprocessor definitions (Project->Properties->Configuration Properties->C/C++ ->Properties->Preprocessor)
src\atomicrefcount.cpp needed to be added to the project's source files. (Project->Add Existing Item)
This worked for me in express editions of both VC++ 2010 and VC++ 2008.
Hopefully it helps you as well.
I am trying to use the DevIl image library in Windows in my project, using MSVS2010. I have downloaded the sdk "DevIL 1.7.8 SDK for 32-bit Windows" from http://openil.sourceforge.net/download.php and put in a folder where all my others libraries are. I have configured my project to include its headers and to link with the .lib provided. I have copied the dll provided to the folder my .exe is. It compiles and links with no problem but when i try to execute it i have an error popup saying something like "procedure entry point _ilGetData#0 could not be located in DevIl.dll" (translation from spanish). I have followed the same steps as in all libraries i am using with no problems, so i donĀ“t know where the problem is.
Thanks for you help.
I believe the problem is that the binaries were built with an older version of Visual Studio... you may have to build the library yourself.
HI
I switched from visual studio 2008 to 2010,
now I have problem linking my lib files from opencv 1.1
I've added required libs and .h files.
but I get following error:
"Error 53 error LNK1181: cannot open input file 'cv.lib.obj' C:\Users..\SOLOUTION_NAME\PROJECT_NAME\LINK"
This is not really a solution to linking issues but OpenCV is now in version 2.1 in release thanks to work by WillowGarage. The new builds use CMake based system and are much friendlier. Why don't you make a switch to a more up-to-date version. It offers many more functions especially in feature recognition using SIFT/HOG etc.