I put my code below. If I write plt.imshow(img_temp) and break without animation it works fine.However,If I write animation also,it does not animate only shows
plt.imshow(img_temp)