Ask Your Question

Revision history [back]

Do This Thing:::

import cv2 import numpy as np

cap = cv2.VideoCapture(0) fps=0 #for decreasing fps

while True: ret,frame=cap.read() if fps>=10: cv2.imshow('frame drop',frame) fps=0 fps+=1 if(cv2.waitKey(1) & 0xFF==ord('q')): break

cap.release() cv2.destroyAllWindows()

This code will help you to drop frames