Skip to content

Instantly share code, notes, and snippets.

@ctralie
Created August 9, 2025 14:41
Show Gist options
  • Save ctralie/ae0fef418daa342a2cde25d7d4cbfdb4 to your computer and use it in GitHub Desktop.
Save ctralie/ae0fef418daa342a2cde25d7d4cbfdb4 to your computer and use it in GitHub Desktop.
import cv2
cap = cv2.VideoCapture("Circle.webm")
ret = True
frames = []
while ret and cap.isOpened():
ret, frame = cap.read()
if ret:
frames.append(frame / 255.0)
frames = np.array(frames)
print(frames.shape)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment