Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

Compiling and configuring the OpenCV library for use with Visual Studio 2010

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
26,631
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Jan 21, 2011

This video tutorial shows how to build OpenCV with TBB (threading building blocks) support for Visual Studio 2010. When building is finished, I also demonstrate how to configure Visual Studio 2010 so you can compile and run programs that use OpenCV. I used OpenCV 2.1.0 because OpenCV 2.2.0 contains a bug on windows 7 when using the webcam. This is not fixed yet in the downloadable package from the OpenCV website.

I hope it helps,
Christophe Hesters ( http://www.toefel.nl )

Download the source code here: http://toefel.nl/wp-content/uploads/2011/02/OpenCVConfiguration.zip

Face Detection and and Face Recognition using OpenCV is demonstrated here:
http://www.youtube.com/watch?v=yFSPnu6_TZY

Category:

Howto & Style

Tags:

License:

Standard YouTube License

Link to this comment:

Share to:

Uploader Comments (toefel18)

  • when installing Cmake do you need to add CMake to the system PATH or not?

  • @pressgreen I would recommend it, so you can run cmake from the commandline in the directory of your project. Not sure if it is necessary if you work with the GUI only.

  • is it the same with compiling and configuring OpenCV in Visual Studio 2010 EXPRESS? i can't seem to compile it properly. i always get some errors with TBB and the steps for fixing it in the video is not in EXPRESS. thanks in advanced!

  • @jedsumulong I don't know for sure, but I think it should work fine with EXPRESS. I don't know why you get errors.

  • ok i was following fine up until 6:30. what file is he opening? i cant find a "OpenCVConfiguration" file in the directories. can somebody either tell me what file to open or what im doing wrong? thanks in advance.

    P.S. great vid, best ive found so far

  • @ProjectEvaVideos Hey thanks for your comment. I was opening just a test project I created myself, I named the solution OpenCVConfiguration because I was demonstrating how to configure OpenCV in VS2010. I just created a main.cpp file and you can copy the code in that file from the video, it's very simple code that compiles only if VS is configured correctly. You can modify and create property pages for each project, that's what the video does to configure OpenCV. Hope this helps!

Top Comments

  • Which sick openCV nut did invent this complicated routine? no wonder open Source software will never get rid of their 20 year old user-repulsing reputation.

    Thanks for that fuck.

  • Why the fuck does this have to be so complicated? It pisses me off how developers, especially open source developers, are incapable of making human-friendly software. Just because you spent time on it does not mean you should make everyone regret not making their own library from scratch.

see all

All Comments (62)

Sign In or Sign Up now to post a comment!
  • If you are getting errors, try and re-config without the tbb checked. and start build process again

  • @SerCondor me too

  • @SerCondor I solved a problem. If somebody was bothering with same thing, here is an explanation: It is not enough to generate files with CMake, because it just create solution files for MVS2010. It is necessary to build project, and then Debug and Release folders get full with libraries. Reason why i was stuck at this step is old version of TBB, which didn't allowed proper build. So don't forget to download LATEST version of it. 

  • Hm, after i finished with Generating in CMake, Release folder didn't appear at C:\\openCV/build/lib. There is just a Debug folder, but with only 2 files inside: cvhaartraining.lib and cvhaartraining.pdb. And yet in your Debug folder there are a bunch of them...why is so? thanks

  • Thank you!

  • I cant see the LINKER tab when i try to do the configOpenCV step.

    all the rest is okay though

  • Hello guys, I hope one of you can help me. Every time I click to „Build Solution“ I get 13 errors. It can not open the libraries (for example „tbb_debug.lib“ )and I dont know why. I've added the folder “include” of the „tbb30_20101215oss“ to the „Include Directories“ and the folder „lib“ to the “Library Directories”. And the libs are in the folders.

    I already tried the shown „tbb30_20101215oss“ and the new „tbb40_20111003oss“ but it is everytime the same.

    many thanks

    Klaus

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more