EyeTrackVR/InceptionNet/pythoneye.py
2022-04-21 18:42:11 -07:00

14 lines
250 B
Python

import cv2
# Opens the Video file
cap= cv2.VideoCapture('raw.mp4')
i=0
while(cap.isOpened()):
ret, frame = cap.read()
if ret == False:
break
cv2.imwrite('kang'+str(i)+'.jpg',frame)
i+=1
cap.release()
cv2.destroyAllWindows()