📜  python读取png文件-Python代码示例

📅  最后修改于: 2022-03-11 14:45:30.343000             🧑  作者: Mango

代码示例1
# Import OpenCV Library
import cv2

# Read the PNG Image in BGR format
img = cv2.imread(".png")

# Print the Shape of image as it is a Numpy Array
print("Image Shape:", img.shape)