我正在尝试将图像导入到一个 numpy 数组中。我有这样的东西,但没有给我我需要的东西,似乎无法在网上找到答案。
import easygui as eg
import cv2
openfiles1 = eg.fileopenbox("Select the files to stack", multiple=True)
stack = np.array([])
for item in openfiles1:
pic = cv2.imread(item)
stack =np.dstack(pic)
白衣非少年
天涯尽头无女友
随时随地看视频慕课网APP
相关分类