mirror of
https://github.com/EyeTrackVR/EyeTrackVR.git
synced 2025-11-04 14:39:42 +08:00
14 lines
250 B
Python
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() |