import os
import time

def main():
    i = 0
    while i < 1000:
        res = "raspistill -t 1 -o img/"+str(i)+".jpg"
        # os.system(res)
        print(res)
        i += 1
        time.sleep(1)


if __name__ == '__main__':
    main()
Last modification:October 23rd, 2019 at 08:24 pm
如果觉得我的文章对你有用,请随意赞赏