OpenCV : Computer Vision Library in Python

!pip install opencv
import cv2
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
cv2.__version__
img = cv2.imread("/content/drive/MyDrive/python/opencv.jpg")img
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)
from google.colab.patches import cv2_imshowcv2_imshow(img)
plt.imshow(img, cmap='gray', interpolation='bicubic')plt.xticks([])plt.yticks([])plt.show()
Matplotlib Image

--

--

--

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Using AI to Detect Social Distancing Violations

How I am learning Deep Learning

Fruit Drawing Classification Web-App

Part 1: Theoretical Core of Image Processing that Interprets Drone Imagery

Analytical Jacobian IK

Theseus, the magnetic mouse

Using NLP to Detect Fake News 📰

How to create a Face Recognition Model using FaceNet Keras?

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Akshar Rastogi

Akshar Rastogi

More from Medium

Histogram of an Image with python

Object Detection with OpenCV

Angle Finder using OpenCv and Python

OpenCV using Python