OpenCV Tutorial
By
Prof. Amitav Biswas
(MBA,MCA, B.Sc. (H) in Computer Science)
Teacher/ HOD, Computer Sci. Dept.,
Behala College & Vivekananda College
1
Python: What is OpenCV?
OpenCV is a Python open-source library, which is
used for computer vision in Artificial intelligence,
Machine Learning, face recognition, etc.
OpenCV is a huge open-source library for computer
vision, machine learning, and image processing.
OpenCV supports a wide variety of programming
languages like Python, C++, Java, etc. It can
process images and videos to identify objects, faces,
or even the handwriting of a human.
2
Python: What is OpenCV?
When it is integrated with various libraries, such as
Numpy which is a highly optimized library for
numerical operations, then the number of weapons
increases in your Arsenal i.e whatever operations
one can do in Numpy can be combined with
OpenCV.
In OpenCV, the CV is an abbreviation form of a
computer vision, which is defined as a field of study
that helps computers to understand the content of
the digital images such as photographs and videos. 3
Python: What is OpenCV?
Computer vision allows the computer to perform the
same kind of tasks as humans with the same
efficiency. There are a two main task which are
defined below:
Object Classification - In the object classification,
we train a model on a dataset of particular objects,
and the model classifies new objects as belonging to
one or more of your training categories.
4
Python: What is OpenCV?
Object Identification - In the object identification,
our model will identify a particular instance of an
object - for example, parsing two faces in an image
and tagging one as Virat Kohli and other one as
Rohit Sharma.
5
Python: History
OpenCV stands for Open Source Computer Vision
Library, which is widely used for image recognition
or identification. It was officially launched in 1999 by
Intel. It was written in C/C++ in the early stage, but
now it is commonly used in Python for the computer
vision as well.
The first alpha version of OpenCV was released for
the common use at the IEEE Conference on
Computer Vision and Pattern Recognition in 2000,
and between 2001 and 2005, five betas were
released. The first 1.0 version was released in 2006. 6
Python: History
The second version of the OpenCV was released in
October 2009 with the significant changes. The
second version contains a major change to the C++
interface, aiming at easier, more type-safe, pattern,
and better implementations. Currently, the
development is done by an independent Russian
team and releases its newer version in every six
months.
7
Python: History
The second version of the OpenCV was released in
October 2009 with the significant changes. The
second version contains a major change to the C++
interface, aiming at easier, more type-safe, pattern,
and better implementations. Currently, the
development is done by an independent Russian
team and releases its newer version in every six
months.