We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
.pkl file is composed of frames, so you can decode video to frames, then save frames to .pkl file
Originally posted by @huangjun12 in #571 (comment)
The text was updated successfully, but these errors were encountered:
import cv2 import pickle cap = cv2.VideoCapture('your_video.mp4') frames = [] while True: ret, frame = cap.read() if ret: frames.append(frame) else: break with open('frames.pkl', 'wb') as f: pickle.dump(frames, f)
have a try
Sorry, something went wrong.
jerrywgz
No branches or pull requests
Originally posted by @huangjun12 in #571 (comment)
The text was updated successfully, but these errors were encountered: