- Introduction to Image Processing and OpenCV
- Downloading OpenCV
- Introduction to Python
- OpenCV in Python
- Interfacing with Arduino
- Code for Virtual Steering and Ball Following
Introduction to Image Processing:
Image Processing is basically a form of signal processing for which input is an image and output is either an image or any set of parameters of the image. In this tutorial we’ll be dealing with Digital Image Processing (other types include analog and optical image processing). The image can be treated as a two-dimensional signal and hence various signal processing techniques can be applied on it.Some of which include Edge detection, Color detection, Dilation,Erosion etc.
Some of the basic concepts to be aware of before proceeding any further:
An image can be considered as a 2-D matrix of pixels. The pixel intensity would either be 1 or 0 for a black and white image and varies from 0 to 255 for a greyscale image if it is an 8-bit image( 8bpp(bits per pixel)) .On the other hand a color image is a just a combination of 3 2-d matrixes with each pixel intensity varying from 0 to 255 for an 8bpp image.
OpenCV (Open Source Computer Vision) is an open source library developed by Intel, used for real time image processing. It is completely cross-platform (Windows,Linux,Mac) and is free to use under open-source BSD license.
You can follow this link for downloading and installing Opencv in Ubuntu:
Python is a dynamic,interpreted language.Unlike C/C++ you need not declare the type of variables, functions in the source code.All the source files use ‘.py’ extension.
Installing Python in Ubuntu :
- To update the software packages installed on your system :
sudo apt-get update
- To install a new software package :
sudo apt-get install python
- To install a new python modules:
sudo apt-get python-scipy
If you ,for whatever reason, can’t install with the help of the above method
- Untar/Extract the downloaded package
- Navigate to the downloaded directory
- Configure (./configure)
- Make (make)
- Install (make install)
*Note:if you face any permission denial from the terminal prepend your command with sudo Ex: sudo make install