OpenCV Introduction
Session1
As human we see

We analyse and undrestand
But what about our computers or Robots?
But NO Eyes !!

Camera

But how it can be done ?
That is what we called Computer vision !!
“Computer vision is the science of endowing computers or
other machines with vision, or the ability to see.”
- Erik G. Lea...
Computer Vision Applications
Computer Vision Fields

Medical
Industrial

Security

entertainment
Computer Vision Libraries
Back to history
●

Developed by Intel

●

Maintained by WillowGarage and It SeeZ

●

C/C++

●

Linux,Windows and iOS
A little bit serious..….

Let's talk about Opencv Modules
●

core
→ Data Structures
→ Basic image processing functions

●

highgui
→ Simple user interface
→ Image&Video Capture
●

imgproc
→ basic image processing algorithms

●

video
→ video analysis

●

objdetect

●

feature2d

●

calib3D
Image Structure
●

Iplimage
→ used in opencv1.x
→ Memory leaks if()

●

Mat
→ no memory problem
→ Easy to manipulate
Image I/O
●

Imread
→ read image from file
Mat imread(const string& filename, int flags=1 )

●

Imwrite
→ save image to a ...
Basic draw functions
●

Circle
→ void circle(Mat& img, Point center, int radius, const Scalar& color, int thickness=1, int...
Opencv Under Ubuntu
How to compile ?

g++ urcodename.cpp -o urcode `pkg-config
--cflags --libs opencv`
Configuration under vs10/12
computer vision & Opencv intro
computer vision & Opencv intro
computer vision & Opencv intro
computer vision & Opencv intro
computer vision & Opencv intro
computer vision & Opencv intro
computer vision & Opencv intro
Upcoming SlideShare
Loading in …5
×

computer vision & Opencv intro

662 views

Published on

Published in: Technology, Business
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
662
On SlideShare
0
From Embeds
0
Number of Embeds
3
Actions
Shares
0
Downloads
19
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

computer vision & Opencv intro

  1. 1. OpenCV Introduction Session1
  2. 2. As human we see We analyse and undrestand
  3. 3. But what about our computers or Robots?
  4. 4. But NO Eyes !! Camera But how it can be done ?
  5. 5. That is what we called Computer vision !!
  6. 6. “Computer vision is the science of endowing computers or other machines with vision, or the ability to see.” - Erik G. Learned-Miller, University of Massachusetts
  7. 7. Computer Vision Applications
  8. 8. Computer Vision Fields Medical Industrial Security entertainment
  9. 9. Computer Vision Libraries
  10. 10. Back to history ● Developed by Intel ● Maintained by WillowGarage and It SeeZ ● C/C++ ● Linux,Windows and iOS
  11. 11. A little bit serious..…. Let's talk about Opencv Modules
  12. 12. ● core → Data Structures → Basic image processing functions ● highgui → Simple user interface → Image&Video Capture
  13. 13. ● imgproc → basic image processing algorithms ● video → video analysis ● objdetect ● feature2d ● calib3D
  14. 14. Image Structure ● Iplimage → used in opencv1.x → Memory leaks if() ● Mat → no memory problem → Easy to manipulate
  15. 15. Image I/O ● Imread → read image from file Mat imread(const string& filename, int flags=1 ) ● Imwrite → save image to a file bool imwrite(const string& filename, InputArray img, const vector<int>& params=vector<int>() ) ● ImShow → show the image in a windows Void imshow(const string& winame, InputArray mat)
  16. 16. Basic draw functions ● Circle → void circle(Mat& img, Point center, int radius, const Scalar& color, int thickness=1, int lineType=8, int ● Line → void line(Mat& img, Point pt1, Point pt2, const Scalar& color, int thickness=1, int lineType=8, int shift=0) ● Ellipse → void ellipse(Mat& img, Point center, Size axes, double angle, double startAngle, double endAngle, const Scalar& color, int thickness=1, int lineType=8, int shift=0)
  17. 17. Opencv Under Ubuntu
  18. 18. How to compile ? g++ urcodename.cpp -o urcode `pkg-config --cflags --libs opencv`
  19. 19. Configuration under vs10/12

×