RoboCV Module 2: Introduction to OpenCV and MATLAB

2,293 views

Published on

These are the slides of the RoboCV Workshop organized by roboVITics on August 11th-12th, 2012 in TT311 Smart Classroom, VIT University, Vellore.

The workshop was delivered by the following people:
1. Mayank Prasad, President of roboVITics
2. Akash Kashyap, President of TEC - The Electronics Club of VIT
3. Akshat Wahi, Asst. Project Manager of roboVITics

Published in: Technology
0 Comments
2 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
2,293
On SlideShare
0
From Embeds
0
Number of Embeds
218
Actions
Shares
0
Downloads
1
Comments
0
Likes
2
Embeds 0
No embeds

No notes for slide

RoboCV Module 2: Introduction to OpenCV and MATLAB

  1. 1. INTRODUCTION TOOPENCV AND MATLAB Module 2 © roboVITics | Mayank Prasad, 2012 1
  2. 2. OUTLINE Introduction to OpenCV and MATLAB Why OpenCV? Installing and Running OpenCV & MATLAB in Windows Hello World with images using OpenCV and MATLAB © roboVITics | Mayank Prasad, 2012 2
  3. 3. WHAT IS OPENCV ? OpenCV (Open Source Computer Vision Librar y) is a library of programming functions mainly aimed at real-time computer vision Developed by Intel, and now supported by Willow Garage and Itseez It is free for use under the open source BSD license The library is cross-platform. It focuses mainly on real -time image processing. © roboVITics | Mayank Prasad, 2012 3
  4. 4. WHAT IS MATLAB ? MATLAB (matrix laboratory) is a numerical computing environment and 4G programming language Developed by MathWorks, MATLAB Allows matrix manipulations, plotting of functions and data, implementation of algorithms, creation of user interfaces, and interfacing with programs written in other languages, including C, C++, Java, and F ortran. Several toolboxes used for engineering tasks Image Processing Toolbox used here © roboVITics | Mayank Prasad, 2012 4
  5. 5. WHY CHOOSE OPENCV? Specific – built exclusively for IP applications Speed – at least 4-5 times faster than other interfaces Ef ficiency – uses less system resources Optimized – highly optimized routines available Cross Platform – supports C, C++, python Open Source – open source and free of cost © roboVITics | Mayank Prasad, 2012 5
  6. 6. Our People will help INSTALLING AND you out. PleaseRUNNING OPENCV AND refer to the MATLAB supporting document shared in the folder © roboVITics | Mayank Prasad, 2012 6
  7. 7. INSTALLING MATLABInstallation Run the setup file Click „Yes‟ or „Next‟ wherever necessary ;) Provide the license key and the license file when asked for Click „Finish‟, reboot your system, and you are good to go!Now run it Now double click on the MATLAB R2011a icon on your desktop You should see the MATLAB command window window in front of you! © roboVITics | Mayank Prasad, 2012 7
  8. 8. CONFIGURING OPENCV Install the superpack version of OpenCV provided. You can download the latest version from Sourceforge. Installation will merely extract all the build files into a folder. Copy that folder into C: drive and rename it exactly as “OpenCV2.3.1” Open Visual Studio C++. Download and install it if you don‟t have it. Next open the text file provided during the workshop named “Config OpenCV” Follow the instructions given there. The instructions are for configuring OpenCV2.3.1 in Windows with Visual C++ IDE. © roboVITics | Mayank Prasad, 2012 8
  9. 9. HelloHELLO WORLD World with Images © roboVITics | Mayank Prasad, 2012 9
  10. 10. HELLO WORLD WITH IMAGES Hello World is the simplest application that you can build using any programming languages. When learning C, it is displaying some text on the screen. In case of images, it will be displaying an image on the screen Just do as your instructor is doing in front of you. Algorithm is as smooth as butter!  Initialize everything  Load an image  Show it in a window © roboVITics | Mayank Prasad, 2012 10
  11. 11. PROGRAMMING Related to C CONCEPTS © roboVITics | Mayank Prasad, 2012 11
  12. 12. C++ PROGRAMMING BASICS – REVISITED  Nature of the Code  Code, Files, Compile, Executable  Variables and Data Types These are the  Simple Types concepts that you  int, float, char, ASCII, bool/boolean, string, byte, long will require while  Arrays programming in  Type-Casting OpenCV. So revise  Operators them!  Control Statements  if-else, for, while, do-while, continue, break  Functions  Defining and Declaring Functions  Passing parameters/arguments  Naming a function  Function Overloading  Structures and Structure Variables  Classes and Objects  Scope  Pointers © roboVITics | Mayank Prasad, 2012 12
  13. 13. DELVING DEEPER INTO OPENCV UP NEXT Module 3 © roboVITics | Mayank Prasad, 2012 13
  14. 14. CONTACTS Mayank Prasad President, roboVITi cs mayank@roboviti cs.in Akshat Wahi Asst. Project Manager, roboVITi cs +91 909 250 3053 akshat@core.robovitics.in Akash Kashyap President, TEC – The Electronics Club of VIT akash130791@gmail .com © roboVITics | Mayank Prasad, 2012 14

×