Open CV

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 12

Sumandeep Banerjee Research Scholar Dept.

of E & ECE, IIT Kharagpur

Topics to be discussed
Introduction to Open CV Downloading and Installing OpenCV Configuring OpenCV for Visual C++ 2005 Configuring OpenCV for Visual C++ 6.0 OpenCVDemo project

Introduction to OpenCV
OpenCV is an open source computer vision library

originally developed by Intel Corporation. OpenCV provides easy to use APIs for Image Processing / Computer Vision / Machine Learning algorithms OpenCV also provides support for
Basic GUI for loading / saving / viewing images / videos being

processed Real-time mono / stereo video capture and subsequent processing

The library code is highly optimized for native C/C++

development

Installing OpenCV
OpenCV is supported in both Windows and Linux

platforms This tutorial will only discuss installation / configuration for the Windows platform using Microsoft VC++ as the preferred development environment This tutorial assumes intermediate level of familiarity with C/C++ programming on MS VC++ IDE The OpenCV 1.0 for windows can be downloaded from the following location
http://sourceforge.net/projects/opencvlibrary/files/opencv-

win/1.0/OpenCV_1.0.exe/download

Install OpenCV using the downloaded executable

Configuring OpenCV on VC++ 2005


Start Microsoft Visual Studio 2005

Open menu item Tools->Option


Select Projects and Solutions ->VC++ Directories from the left hand side panel Select drop down box Show directories for->
Include files

Add path C:\...\OpenCV\cv\include in the list Add path C:\...\OpenCV\cxcore\include in the list Add path C:\...\OpenCV\otherlibs\highgui in the list Library files Add path C:\...\OpenCV\lib in the list The above mentioned steps are to be done only once when first using OpenCV

Create a new VC++ project as Win32 console application Open menu item Project->Project Name Properties

Select Configuration Properties->Linker->Input->Additional Dependencies


Add cv.lib cxcore.lib highgui.lib to the list This step to be done for every project that uses OpenCV

OpenCVDemo Project
OpenCVDemo project demonstrates the basics of using

OpenCV library to
Load a sample image from a file Perform 5X5 Gaussian Filtering

Display both input and output frame using the GUI

OpenCVDemo\OpenCVDemo.sln

Configuring OpenCV on VC++ 6.0


To be added later

Thank you

You might also like