Read and Write Image

Read image Using Opencv Python

Import Package

import cv2 # to read an image
import numpy as np # for array manipulation
import matplotlib.pyplot as plt # for display an image

file_name=’im.png’ # file name
x=cv2.imread(file_name) # Read an image
plt.imshow(x) # display an image

Leave a comment

Design a site like this with WordPress.com
Get started