I am working on object detection but the real time detection is very slow. So to avoid processing each and every frames I just want to take first 5 frames from each 30 frame