我想知道如何编写一个代码来读取5-10秒的视频,并每5毫秒拍摄一次镜头。
感谢你,
发布于 2022-05-02 11:09:13
import pyautogui
import time
i = 0
t = time.time()
while True:
time.sleep(.005)
myScreenshot = pyautogui.screenshot()
myScreenshot.save(f'image{i}.png')
i+=1
if time.time()-t>=10: # Instead of 10s write the time of your video in second.
break
https://stackoverflow.com/questions/72085766
复制相似问题