OpenCV is an open-source cross-platform computer vision library having interfaces in different languages like C++, Java, Python. In this post, we are going to look at some of the basic functionality offered by OpenCV. Let's start with understanding some basics on images. In simpler terms, an image can be represented in a 2-D matrix of pixels. As an example, if we have to represent number 1, box/pixel which is displaying black text can be represented by 0 and others by 1. This is known as Binary Image or 2-level image . Gray Scale Image : An image having 256 levels i.e. an 8 bit gray scale image means 2^8 levels from black (0) to white (255). In grayscale images, 2-dimensional matrix will have values between 0-255. Colored Image : A colored image will have three gray scale images representing intensity of Red, Green and Blue channels. Installing OpenCV : We can install OpenCV using pip install opencv-python Reading Images : import cv2 import numpy as np # Reading Images