I'm trying to read an image, and I found that both following sentences are okay, so what's the difference?
import matplotlib.pyplot as plt img = plt.imread("1.jpg")
or
import matplotlib.image as mpimg img = mpimg.imread('1.jpg')
https://stackoverflow.com/questions/67030411/whats-the-difference-between-mpimg-imread-and-plt-imread-when-i-read-an-image-w April 10, 2021 at 10:58AM
没有评论:
发表评论