我尝试使用pythonglob读取文件夹中的所有图像。 代码如下:
for file in glob.glob("\*.jpg"): image=cv2.imread(file);
It is working pretty well, but I need to to read two images at a time in one iteration of the glob loop i.e. the two consecutive images. In simple terms i need
image[i]
andimage[i+1]
.
这就是你要找的吗?在
相关问题 更多 >
编程相关推荐