Created
August 9, 2025 14:41
-
-
Save ctralie/ae0fef418daa342a2cde25d7d4cbfdb4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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