How to read image in Python using skimage

You can read an image in Python using skimage by following the given code. If you want to learn Computer Vision then I will highly recommend you to read This book.

How to read image in Python using skimage
How to read image in Python using skimage

Step 1

If the scikit-image library is not installed, then first install it using this code.

pip install scikit-image

Step 2

The image should be in the same folder in which the code file is running. Otherwise, add the location before the image name.

# Import the required module
from skimage import io
import matplotlib.pyplot as plt

# Read the image 
image = io.imread('man.jpg')

# Display the image
plt.imshow(image)

Output:

Output

Free Learning Resources

Leave a Comment

Your email address will not be published.