Opencv Tutorial: 28 November 2005
Opencv Tutorial: 28 November 2005
Part I Using OpenCV with Microsoft Visual Studio .net 2003 28 November 2005
Gavin S Page
gsp8334@cs.rit.edu
OpenCV
What is OpenCV?
(from the documentation)
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 this means You can take advantage of high speed implementations of functions commonly used in Computer Vision/Image Processing.
28 November 2005 Gavin S Page gsp8334@cs.rit.edu 2
OpenCV
How to obtain the library Available on Sourceforge
http://sourceforge.net/projects/opencvlibrary/
28 November 2005
Gavin S Page
gsp8334@cs.rit.edu
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 2005
Gavin S Page
gsp8334@cs.rit.edu
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 2005 Gavin S Page gsp8334@cs.rit.edu 6
Open the Properties Pane Right Click the name of the project and select Properties
(Tutorial in this case)
28 November 2005
Gavin S Page
gsp8334@cs.rit.edu
28 November 2005
Gavin S Page
gsp8334@cs.rit.edu
28 November 2005
Gavin S Page
gsp8334@cs.rit.edu
Testing the First Program The enclosed code can be cut and pasted into the file created in the project space to test OpenCV
28 November 2005 Gavin S Page
gsp8334@cs.rit.edu
10
Or by pressing F5 or <Ctrl>-F5
Output of Program
28 November 2005
Gavin S Page
gsp8334@cs.rit.edu
11
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. From here you can explore the documentation to review the functions available. There are also a number of tutorials on the web including: http://www.site.uottawa.ca/~laganier/tutorial/opencv+directshow/cvision.htm http://www.softintegration.com/products/thirdparty/opencv/demos/ Or you can just search for them
You should also join the OpenCV Community located at: http://groups.yahoo.com/group/OpenCV/ 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.
28 November 2005
Gavin S Page
gsp8334@cs.rit.edu
12
Revision History
Initial Creation: 28 November 2005
28 November 2005
Gavin S Page
gsp8334@cs.rit.edu
13