Automation of video recording on booting of raspberry pi3

偶尔善良 提交于 2019-12-05 11:53:02

As suggested by Mark Setchell in the comments, it worked correctly after removing imshow(), waitkey().

If two files are generated that means crontab works fine. it also means that video not generated due to wrong format spelling .avi change it to .AVI and try once

fourcc = cv2.cv.CV_FOURCC('D', 'I', 'V', 'X')
videoOut = cv2.VideoWriter('output1.AVI', fourcc, 20, (640, 480), 1)
videoOut2 = cv2.VideoWriter('output2.AVI', fourcc, 20, (640, 480), 1)
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!