What is Image Processing?

Image processing is any form of processing for which the input is an image or a series of images or videos, such as photographs or frames of video. The output of image processing can be either an image or a set of characteristics or parameters related to the image.

SciPy

SciPy builds on the NumPy array object and is part of the NumPy stack which includes tools like Matplotlib, pandas and an expanding set of scientific computing libraries.

Let’s start with the basics.

First install SciPy library using command

pip install scipy

Let’s see how we can read an image and display an image using SciPy and python.

1) Reading and Displaying an Image

Let’s see the syntax for reading an image in our IDE. You just need scipy and matplotlib to display the image

Syntax

from scipy import misc
import matplotlib. pyplot as plt
image = misc. imread ("C:/Users/Desktop/cute-baby-animals-1558535060.jpg")
plt. imshow (image)
plt. show ()

#python #scipy #machine-learning #developer

How to Read and Display an Image using SciPy and Python
1.80 GEEK