使用opencv读取bmp文件
import os
import cv2 as cv
path = 'local directory of your file'
image= cv.imread(os.path.join(path,'image.bmp'),0)
cv.imshow('img',image)
cv.waitKey(0)
使用opencv读取bmp文件
import os
import cv2 as cv
path = 'local directory of your file'
image= cv.imread(os.path.join(path,'image.bmp'),0)
cv.imshow('img',image)
cv.waitKey(0)