Tuesday, April 6, 2010

OpenCV and Microsoft Visual Studio 2008

I'll be playing with some image processing. OpenCV is a great option and is open source. For starters I'll be playing with OpenCV in a Visual Studio environment. Instructions for getting everything set up can be found here.


In addition to the initial setup, new Win32 Console projects should have the following additional dependencies added to the Linker > Input configuration properties:


  • cv210.lib
  • cxcore210.lib
  • highgui210.lib
Other tips for running the OpenCV samples that come with the installation as Win32 Console projects:
  • #include "stdafx.h" must be included 
  • Files referenced in the code must be in the Projects/ProjectName/ProjectName directory (and hardcoded file paths will likely need to be modified to reflect their new location)

No comments:

Post a Comment