OpenCV : Computer Vision Library in Python
Computer Vision is the field in artificial intelligence that deals with the interpretation and understanding of images as computational data by computers. Using computer vision , computers can identify and recognize images for various practical uses such as face unlocks, autonomous vehicles, etc.

OpenCV-Python makes use of Numpy, which is a highly optimized library for numerical operations. All the OpenCV array structures are converted to and from Numpy arrays. This also makes it easier to integrate with other libraries that use Numpy such as SciPy and Matplotlib.
Installing OpenCV
!pip install opencv
Importing OpenCV
import cv2
Importing other Libraries
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
Checking Version
cv2.__version__
Reading Image
img = cv2.imread("/content/drive/MyDrive/python/opencv.jpg")img
This displays the image in array.
array([[[197, 174, 158],
[198, 175, 159],
[199, 176, 160],
...,
[148, 120, 86],
[148, 120, 86],
[148, 120, 86]],
[[167, 161, 156],
[155, 149, 144],
[146, 140, 135],
...,
[ 38, 50, 62],
[ 43, 55, 67],
[ 46, 58, 70]]], dtype=uint8)
In google colab we have to run some specific commands because using the usual one opens up jupyter session which colab dose not allows.
from google.colab.patches import cv2_imshowcv2_imshow(img)

Let show image in a matplotlib graph
plt.imshow(img, cmap='gray', interpolation='bicubic')plt.xticks([])plt.yticks([])plt.show()

Thankyou!