我目前試圖用電影製作電影,但找不到有用的東西。如何用python中的圖像製作電影
這是到目前爲止我的代碼:
import time
from PIL import ImageGrab
x =0
while True:
try:
x+= 1
ImageGrab().grab().save('img{}.png'.format(str(x))
except:
movie = #Idontknow
for _ in range(x):
movie.save("img{}.png".format(str(_)))
movie.save()
這實際上並不總是這樣的工作對Ubuntu的https:// github上。 com/ContinuumIO/anaconda-issues/issues/223 –
感謝您發佈此解決方案!它讓我經歷了很多使用其他解決方案的問題。 – MikeyB