Recent content by Roopesh R

  1. R

    Using mmap (python function) to load many frames of a video into memory (using opencv) (1000+ frames)

    import numpy as np import cv2 cap = cv2.VideoCapture('sample_video.mp4') if cap.isOpened() == False: print('Error opening videofile') list_frame = [] while cap.isOpened(): ret, frame = cap.read() list_frame .append(frame) # list of frame cannot store many frames (like 1000+) I...
Top