Gavin S Page OpenCV Tutorial Part I Using OpenCV with Microsoft Visual Studio.net 2003 28 November 2005.

Slides:



Advertisements
Similar presentations
®® Microsoft Windows 7 Windows Tutorial 3 Personalizing Your Windows Environment.
Advertisements

SOFTWARE PRESENTATION ODMS (OPEN SOURCE DOCUMENT MANAGEMENT SYSTEM)
Win8 on Intel Programming Course Desktop : Perceptual Computing Cédric Andreolli Intel.
Introduction to OpenCV Dr. Chung-Hao Chen Haole Guo Sep 2011.
The Microsoft View: Module 1: Getting Started. Copyright Course 2559B, Introduction to Visual Basic®.NET Programming with Microsoft®.NET. Lecture 1 Microsoft.
Your First C++ Program Aug 27, /27/08 CS 150 Introduction to Computer Science I C++  Based on the C programming language  One of today’s most.
Macros Tutorial Week 20. Objectives By the end of this tutorial you should understand how to: Create macros Assign macros to events Associate macros with.
CS 1400 Using Microsoft Visual Studio 2005 if you don’t have the appropriate appendix.
Chapter 2: The Visual Studio.NET Development Environment Visual Basic.NET Programming: From Problem Analysis to Program Design.
Using Visual C++ and Pelles C
Tutorial on Visual Studio express Introduction Visual Studio Express Editions are a new line of Microsoft development Tools. This line of products.
Beginning Programming with the Visual Studio.NET Environment.
2. Introduction to the Visual Studio.NET IDE 2. Introduction to the Visual Studio.NET IDE Ch2 – Deitel’s Book.
®® Microsoft Windows 7 Windows Tutorial 6 Searching for Information and Collaborating with Others.
Microsoft Visual Basic 2005 CHAPTER 8 Using Procedures and Exception Handling.
September 2008 IT Software Development Guide.
Microsoft Visual Basic 2005 CHAPTER 12 Cell Phone Applications and Web Services.
1 ENG236: ENG236: C++ Programming Environment (2) Rocky K. C. Chang THE HONG KONG POLYTECHNIC UNIVERSITY.
OpenCV Open source C omputer V ision library By: Bahare Torkaman Fall 2010.
OPENCV TUTORIAL OpenCV Windows 7 Microsoft Visual C++ Express 2010.
1 INF160 IS Development Environments AUBG, COS dept Lecture 06 Title: Dev Env: Code::Blocks (Extract from Syllabus) Reference:
© Copyright 1992–2005 by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. Tutorial 2 - HelloWorld Application: Introduction to.
Programming with Microsoft Visual Basic 2012 Chapter 12: Web Applications.
Computing IV Visual C Introduction with OpenCV Example Xinwen Fu.
XP New Perspectives on Browser and Basics Tutorial 1 1 Browser and Basics Tutorial 1.
Java Programming, 3e Concepts and Techniques Chapter 3 Section 65 – Manipulating Data Using Methods – Java Applet.
IT 211 Project Integration and Deployment Lab #11.
CS Tutorial 1 Getting Started with Visual Studio 2012 (Visual Studio 2010 are no longer available on MSDNAA, please choose Visual Studio 2012 which.
Thank you for your decision to try vTreePro Practice Tree Software! Your satisfaction is very important to us. Please feel free to send us an if.
Detect Candle.  Open VC++ Directories configuration: Tools > Options > Projects and Solutions > VC++ Directories  Choose "Show directories for: Include.
Intro to C++. Getting Started with Microsoft Visual Studios Open Microsoft Visual Studios 2010 Click on file Click on New Project Choose Visual C++ on.
Section 4.1 Format HTML tags Identify HTML guidelines Section 4.2 Organize Web site files and folder Use a text editor Use HTML tags and attributes Create.
Computer Programming for Engineers Introduction to Programming in C Language on Visual C Platform Intro. Comp. Prog. C-Language1.
2. Introduction to the Visual Studio.NET IDE. Chapter Outline Overview of the Visual Studio.NET IDE Overview of the Visual Studio.NET IDE Menu Bar and.
Lecture Set 1 Part C: Understanding Visual Studio and.NET – Applications, Solutions, Projects (no longer used – embedded in Lecture Set 2A)
Microsoft Visual Basic 2005 ENRICHMENT CHAPTER Visual Studio Tools for Office.
Introduction to the Visual Studio.NET IDE (LAB 1 )
Program Design and Coding
Microsoft Visual Basic 2012 CHAPTER THREE Program Design and Coding.
Microsoft Visual Basic 2010 CHAPTER THREE Program Design and Coding.
Computer Science I How to Configure Visual Studio.NET 2003 for C++ Colin Goble.
ZONG Wen Department of Computer Science and Engineering The Chinese University of Hong Kong
Lecture Set 2 Part A: Creating an Application with Visual Studio – Solutions, Projects, Files.
Lesson 11: Looking at Files and Folders what a file or folder is on the computer how to recognize a file or folder on the desktop how to recognize the.
Using Microsoft Visual Studio 2005 Original by Suma Rao Revised by John G. McMahon ( 9/6/2008 )
Microsoft Outlook 2010 Chapter 3 Managing Contacts and Personal Contact Information with Outlook.
Programming with Visual Studio 2005.NET A short review of the process.
Programming with Visual Studio.NET A short review of the process.
Information and Communication Technology Sayed Mahbub Hasan Amiri Dhaka Residential Model College Higher Secondary.
1 Getting Started with C++. 2 Objective You will be able to create, compile, and run a very simple C++ program on Windows, using Visual Studio 2008.
LAB#1 CSC st semster H King Saud University College of Applied studies and Community Service Csc 1101.
Computer Science I Programming in Java (programming using Processing IN Java, using IntelliJ IDE) Classwork/Homework: copy your Processing projects over.
HTML Basics. HTML Coding HTML Hypertext markup language The code used to create web pages.
Cs423-cotter1 Windows Operating Environment. cs423-cotter2 Windows Operating Environment 32 bit operating environment – Windows XP Microsoft Visual Studio.net,.net2005,
Object-Oriented Application Development Using VB.NET 1 Chapter 2 The Visual Studio.NET Development Environment.
Lecture Set 2 Part A: Creating an Application with Visual Studio – Solutions, Projects, Files 8/10/ :35 PM.
1 Getting Started with C++ Part 1 Windows. 2 Objective You will be able to create, compile, and run a very simple C++ program on Windows, using Microsoft.
Open project in Microsoft Visual Studio → build program in “Release” mode.
XP Tutorial 3 New Perspectives on Microsoft Windows XP 1 Microsoft Windows XP Organizing Files with Windows Explorer Tutorial 3.
C Programming Lecture 3 : C Introduction 1 Lecture notes : courtesy of Woo Kyun and Chang Byung-Mo.
1 8/30/06CS150 Introduction to Computer Science 1 Your First C++ Program.
How to install JavaCV in Eclipse. Make sure to download and install all these before you proceed Eclipse for Java EE developers (current is Juno)
Microsoft Expression Web - Illustrated Unit A: Getting Started With Microsoft Expression Web.
XP New Perspectives on Creating Web Pages With Word Tutorial 1 1 Creating Web Pages With Word Tutorial 1.
Visual Basic.NET Comprehensive Concepts and Techniques Chapter 6 Looping and Multiple Forms.
Tutorial 1 Writing Your First C++ Program CSC1110C Introduction to Computer Programming By Paul Pun Acknowledgement: Special thanks to Dr. Michael Fung.
OpenCV Tutorial Part I Using OpenCV with Microsoft Visual Studio .net November 2005 Gavin S Page
1. Open Visual Studio 2008.
ms vısual studıo 2008-Introductıon TUTORIAL
Double click Microsoft Visual Studio 2010 on the Computer Desktop
Presentation transcript:

Gavin S Page OpenCV Tutorial Part I Using OpenCV with Microsoft Visual Studio.net November 2005

Gavin S Page 2 OpenCV OpenCV means Intel® Open Source Computer Vision Library. It is a collection of C functions and a few C++ classes that implement some popular Image Processing and Computer Vision algorithms. What is OpenCV? (from the documentation) Cross-Platform API of C functions FREE for commercial and non- commercial uses The key features (from the documentation) You can take advantage of high speed implementations of functions commonly used in Computer Vision/Image Processing. What this means

28 November 2005Gavin S Page 3 OpenCV Available on Sourceforge (Or use your favorite search engine) How to obtain the library Download and Install the Executable How to install the library (On Windows)

28 November 2005Gavin S Page 4 Configuring MSVS.net 2k3 Upon loading Visual Studio it is recommended that you adjust the profile to that of “Visual C++ Developer.” This will help keep things straight when I reference keyboard shortcuts later on.

28 November 2005Gavin S Page 5 Configuring MSVS.net 2k3 Create a “Win32 Console Project” Make it an “Empty Project” by selecting the box under “Application Settings” A project is initially created by selecting: File -> New -> Project Creating the Project

28 November 2005Gavin S Page 6 Configuring MSVS.net 2k3 Right Click the “Source Files” Folder under the project name (“Tutorial” in this case) Add -> Add new Item Create the First File Select “C++ file” and give it a name Creating a file makes it possible to set “Additional Include Directives” in the C/C++ pane under the project properties.

28 November 2005Gavin S Page 7 Configuring MSVS.net 2k3 In order to build projects using OpenCV the required libraries and directives must be included in the project’s properties Right Click the name of the project and select “Properties” (“Tutorial” in this case) Open the Properties Pane

28 November 2005Gavin S Page 8 Configuring MSVS.net 2k3 Under the C/C++ tab select “General” Set Additional Include Directives Select the “Additional Include Directives” Add the full path to each of the folders which contain “.h” files required to use OpenCV Be sure to include trailing “\” C:\Program Files\OpenCV\cvaux\include\ C:\Program Files\OpenCV\cxcore\include\ C:\Program Files\OpenCV\cv\include\ C:\Program Files\OpenCV\otherlibs\highgui\ C:\Program Files\OpenCV\otherlibs\cvcam\include\ Utilized Directives

28 November 2005Gavin S Page 9 Configuring MSVS.net 2k3 Under the Linker tab select “Input” Set Additional Dependencies Select the “Additional Dependencies” "C:\Program Files\OpenCV\lib\cv.lib“ "C:\Program Files\OpenCV\lib\cvaux.lib“ "C:\Program Files\OpenCV\lib\cxcore.lib“ "C:\Program Files\OpenCV\lib\cvcam.lib“ "C:\Program Files\OpenCV\lib\highgui.lib" Utilized Dependencies Add the full path to each of the “.lib” files required to use OpenCV Be sure to keep the paths in quotes

28 November 2005Gavin S Page 10 Testing MSVS.net 2k3 Now that the environment is configured it would be a good idea to test it to make sure that a program will correctly build and run. #include /* This will pop up a small box with "Hello World" as the Gavin 28 November 2005 */ int main( int argc, char** argv ) { //declare for the height and width of the image int height = 320; int width = 240; //specify the point to place the text CvPoint pt = cvPoint( height/4, width/2 ); //Create an 8 bit, 3 plane image IplImage* hw = cvCreateImage(cvSize(height, width), 8, 3); //initialize the font CvFont font; cvInitFont( &font, CV_FONT_HERSHEY_COMPLEX, 1.0, 1.0, 0, 1, CV_AA); //place the text on the image using the font cvPutText(hw, "Hello World", pt, &font, CV_RGB(150, 0, 0) ); //create the window container cvNamedWindow("Hello World", 0); //display the image in the container cvShowImage("Hello World", hw); //hold the output windows cvWaitKey(0); return 0; } The enclosed code can be cut and pasted into the file created in the project space to test OpenCV Testing the First Program

28 November 2005Gavin S Page 11 Testing MSVS.net 2k3 Output of Program The program is built by selecting: Build -> Build Solution Or by pressing “F7” Building the Program The program is run by selecting: Debug -> {Start||Start without Debugging} Or by pressing “F5” or “ -F5” Running the Program

28 November 2005Gavin S Page 12 At this point you should have a working OpenCV project. If the program is not working you should go back and carefully recheck the steps. You should also join the OpenCV Community located at: As of today there are >15000 members available to answer questions. There is also a searchable message board where you can look up previous queries. From here you can explore the documentation to review the functions available. There are also a number of tutorials on the web including: cvision.htm s/ Or you can just search for them

28 November 2005Gavin S Page 13 Revision History Initial Creation: 28 November 2005