Display sequence of images using matplotlib

后端 未结 3 1966
梦谈多话
梦谈多话 2021-02-01 10:22

I have this simple python script using OpenCV to load images from a folder and display them in a loop. I want to reproduce this effect using matplotlib.

<         


        
3条回答
  •  天涯浪人
    2021-02-01 11:13

    img = None
    for f in files:
        im=pl.imread(f)
        if img is None:
            img = pl.imshow(im)
        else:
            img.set_data(im)
        pl.pause(.1)
        pl.draw()
    

提交回复
热议问题