computer vision & opencv intro

Download computer vision & Opencv intro

If you can't read please download the document

Upload: -

Post on 16-Apr-2017

678 views

Category:

Technology


1 download

TRANSCRIPT

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. Learned-Miller, University of Massachusetts

Computer Vision Applications

Computer Vision Fields

Industrial

Medical

entertainment

Security

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 fileMat imread(const string& filename, int flags=1 )

Imwrite save image to a filebool imwrite(const string& filename, InputArray img, const vector& params=vector() )

ImShow show the image in a windowsVoid imshow(const string& winame, InputArray mat)

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)

Opencv Under Ubuntu

How to compile ?

g++ urcodename.cpp -o urcode `pkg-config --cflags --libs opencv`

Configuration under vs10/12